From bc0f44712f820838b68a09c753b70c51dcc6d4a4 Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Tue, 5 May 2026 19:18:18 +0200 Subject: [PATCH] feat(top-tabs): active-tab accent underline pill --- HellionChat/Ui/ChatLogWindow.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/HellionChat/Ui/ChatLogWindow.cs b/HellionChat/Ui/ChatLogWindow.cs index a197d78..9a7fdb8 100644 --- a/HellionChat/Ui/ChatLogWindow.cs +++ b/HellionChat/Ui/ChatLogWindow.cs @@ -1372,6 +1372,20 @@ public sealed class ChatLogWindow : Window if (!tabItem.Success) continue; + // v1.2.0 — Active-Tab-Underline-Pill (2 px Akzent statt Background-Fill). + // Bewusst direkt nach TabItem-Setup; GetItemRectMin/Max referenziert noch + // das Tab. ImGui hat keine native Underline-API, daher direkter DrawList-Pass. + { + var theme = Plugin.ThemeRegistry.Active; + var min = ImGui.GetItemRectMin(); + var max = ImGui.GetItemRectMax(); + const float pillHeight = 2f; + ImGui.GetWindowDrawList().AddRectFilled( + new Vector2(min.X, max.Y - pillHeight), + new Vector2(max.X, max.Y), + ColourUtil.RgbaToAbgr(theme.Colors.Accent)); + } + var hasTabSwitched = Plugin.LastTab != tabI; Plugin.LastTab = tabI;