feat(sidebar): per-tell hashed icon variety + unread-dot indicator

This commit is contained in:
2026-05-05 23:36:52 +02:00
parent e6c6c02780
commit b8ed2a1ce5
4 changed files with 79 additions and 4 deletions
+12 -1
View File
@@ -53,7 +53,18 @@ internal static class TabIconMapping
/// </summary>
public static FontAwesomeIcon Resolve(Tab tab)
{
var glyph = TabIconGlyphResolver.ResolveGlyphName(tab);
// v1.2.0 — Auto-Tell-Tabs bekommen ein per-Partner gehashtes
// Icon aus dem Tell-Pool. Damit unterscheiden sich parallele
// Tells nicht nur über die Color (For), sondern auch über die
// Glyph-Form. Berechnung bleibt hier (Dalamud-bound), weil
// TellTarget Dalamud-Imports hat.
string? autoTellGlyph = null;
if (tab.IsTempTab && tab.TellTarget != null && tab.TellTarget.IsSet())
{
autoTellGlyph = AutoTellTabTint.IconFor(tab.TellTarget.Name, tab.TellTarget.World);
}
var glyph = TabIconGlyphResolver.ResolveGlyphName(tab, autoTellGlyph);
return GlyphLookup.TryGetValue(glyph, out var icon)
? icon
: FontAwesomeIcon.Hashtag;