From 5a9c2018b0f208ea3c098171e97a6622d3d4a5e3 Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Tue, 5 May 2026 19:09:26 +0200 Subject: [PATCH] feat(sidebar): active-tab vertical accent pill --- HellionChat/Ui/ChatLogWindow.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/HellionChat/Ui/ChatLogWindow.cs b/HellionChat/Ui/ChatLogWindow.cs index 0411add..1831587 100644 --- a/HellionChat/Ui/ChatLogWindow.cs +++ b/HellionChat/Ui/ChatLogWindow.cs @@ -1477,6 +1477,23 @@ public sealed class ChatLogWindow : Window clicked = ImGui.Button($"{icon.ToIconString()}##sidebar-tab-{tabI}", new Vector2(36f, 32f)); } + if (isCurrentTab) + { + // v1.2.0 — Vertikale Akzent-Pill an der linken Window-Kante. + // 3 px breit, halbe Tab-Höhe, vertikal zentriert. ImGui hat keine + // native Pill-API, daher direkter DrawList-Pass. + var min = ImGui.GetItemRectMin(); + var max = ImGui.GetItemRectMax(); + const float pillWidth = 3f; + var pillHeight = (max.Y - min.Y) * 0.5f; + var pillCenterY = (min.Y + max.Y) * 0.5f; + ImGui.GetWindowDrawList().AddRectFilled( + new Vector2(min.X, pillCenterY - pillHeight * 0.5f), + new Vector2(min.X + pillWidth, pillCenterY + pillHeight * 0.5f), + ColourUtil.RgbaToAbgr(theme.Colors.Accent), + 1.5f); // leichter Rounding + } + // Tooltip mit Tab-Name + Unread-Counter beim Hover. if (ImGui.IsItemHovered()) {