feat(sidebar): hash-color tint for auto-tell tabs to disambiguate parallel conversations

This commit is contained in:
2026-05-05 23:27:41 +02:00
parent ab9ebedeee
commit e6c6c02780
2 changed files with 83 additions and 3 deletions
+19 -3
View File
@@ -1544,9 +1544,25 @@ public sealed class ChatLogWindow : Window
// Dim-Trick ab, da wir keine Selectable mehr nutzen).
var theme = Plugin.ThemeRegistry.Active;
var icon = TabIconMapping.Resolve(tab);
var iconColor = isCurrentTab
? theme.Colors.Accent
: (showGreetedAffordance && tab.IsGreeted ? theme.Colors.TextDim : theme.Colors.TextPrimary);
uint iconColor;
if (isCurrentTab)
{
iconColor = theme.Colors.Accent;
}
else if (showGreetedAffordance && tab.IsGreeted)
{
iconColor = theme.Colors.TextDim;
}
else if (tab.IsTempTab && tab.TellTarget != null && tab.TellTarget.IsSet())
{
// v1.2.0 — Hash-Color-Tint differenziert parallele Auto-Tell-Tabs
// visuell ohne dass User pro Tab manuell ein Custom-Icon setzen muss.
iconColor = AutoTellTabTint.For(tab.TellTarget.Name, tab.TellTarget.World);
}
else
{
iconColor = theme.Colors.TextPrimary;
}
bool clicked;
using (ImRaii.PushColor(ImGuiCol.Button, 0u))