feat(themes): list custom themes in the theme picker

This commit is contained in:
2026-06-15 18:03:39 +02:00
parent 512533ed3a
commit ec92cf2c04
@@ -57,6 +57,25 @@ internal sealed class ThemePicker
}
}
}
// Restore (1.5.6 Appearance.cs:79-88): list custom themes so forked/
// imported themes are selectable, not just built-ins.
var customs = _themes.AllCustom().ToList();
if (customs.Count > 0)
{
if (
ImGui.CollapsingHeader(
$"Custom ({customs.Count})",
ImGuiTreeNodeFlags.DefaultOpen
)
)
{
foreach (var theme in customs)
{
DrawCard(theme.Slug);
}
}
}
}
if (locked && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))