From bb6259e14db69fd857bd5ee9862c9d4f7b4a9c08 Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Sat, 2 May 2026 14:24:13 +0200 Subject: [PATCH] fix(auto-tell-tabs): make greeted toggle button more compact and transparent --- ChatTwo/Ui/ChatLogWindow.cs | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index fcf3299..d222db1 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -1334,20 +1334,26 @@ public sealed class ChatLogWindow : Window // Greeted toggle sits left of the selectable so the // click areas stay separate. The icon also doubles // as the visual "I'm done with this person" cue. + // Compact frame padding keeps the icon dezent next + // to the tab name instead of a chunky button block. var greetedIcon = tab.IsGreeted ? FontAwesomeIcon.CheckCircle : FontAwesomeIcon.Check; var greetedTooltip = tab.IsGreeted ? HellionStrings.AutoTellTabs_GreetedTooltip : HellionStrings.AutoTellTabs_UnGreetedTooltip; - if (ImGuiUtil.IconButton(greetedIcon, $"greeted-{tabI}", greetedTooltip)) + using (ImRaii.PushStyle(ImGuiStyleVar.FramePadding, new Vector2(2, 1))) + using (ImRaii.PushColor(ImGuiCol.Button, 0)) { - if (tab.IsGreeted) + if (ImGuiUtil.IconButton(greetedIcon, $"greeted-{tabI}", greetedTooltip)) { - Plugin.AutoTellTabsService.UnmarkGreeted(tab); - } - else - { - Plugin.AutoTellTabsService.MarkGreeted(tab); + if (tab.IsGreeted) + { + Plugin.AutoTellTabsService.UnmarkGreeted(tab); + } + else + { + Plugin.AutoTellTabsService.MarkGreeted(tab); + } } } ImGui.SameLine();