feat(themes): list custom themes in the theme picker
This commit is contained in:
@@ -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))
|
if (locked && ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
|
||||||
|
|||||||
Reference in New Issue
Block a user