From f663cb3c148dc96fae553895000323cc796e2731 Mon Sep 17 00:00:00 2001 From: JonKazama-Hellion Date: Tue, 5 May 2026 19:17:59 +0200 Subject: [PATCH] feat(top-tabs): icon glyph prefix in tab label --- HellionChat/Ui/ChatLogWindow.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/HellionChat/Ui/ChatLogWindow.cs b/HellionChat/Ui/ChatLogWindow.cs index 1831587..a197d78 100644 --- a/HellionChat/Ui/ChatLogWindow.cs +++ b/HellionChat/Ui/ChatLogWindow.cs @@ -1360,7 +1360,13 @@ public sealed class ChatLogWindow : Window if (Plugin.WantedTab == tabI) flags |= ImGuiTabItemFlags.SetSelected; - using var tabItem = ImRaii.TabItem($"{tab.Name}{unread}###log-tab-{tabI}", flags); + // v1.2.0 — Icon-Glyph als Prefix vor dem Tab-Namen. + // Strategy A: Codepoint einfach in den Label-String einbauen. + // Funktioniert wenn Dalamuds Default-Font-Atlas FontAwesome- + // Glyphen mit-merged. Falls nicht (Tofu-Square sichtbar), + // wechseln wir auf Strategy B mit separatem Icon-Render. + var icon = TabIconMapping.Resolve(tab); + using var tabItem = ImRaii.TabItem($"{icon.ToIconString()} {tab.Name}{unread}###log-tab-{tabI}", flags); DrawTabContextMenu(tab, tabI); if (!tabItem.Success)