Fix bootstrapper icon ordering

This commit is contained in:
pizzaboxer 2024-06-11 23:58:18 +01:00
parent 2d41d48719
commit c1037f1a94
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8
2 changed files with 14 additions and 1 deletions

View File

@ -4,6 +4,19 @@ namespace Bloxstrap.Extensions
{
static class BootstrapperIconEx
{
public static IReadOnlyCollection<BootstrapperIcon> Selections => new BootstrapperIcon[]
{
BootstrapperIcon.IconBloxstrap,
BootstrapperIcon.Icon2022,
BootstrapperIcon.Icon2019,
BootstrapperIcon.Icon2017,
BootstrapperIcon.IconLate2015,
BootstrapperIcon.IconEarly2015,
BootstrapperIcon.Icon2011,
BootstrapperIcon.Icon2008,
BootstrapperIcon.IconCustom
};
// small note on handling icon sizes
// i'm using multisize icon packs here with sizes 16, 24, 32, 48, 64 and 128
// use this for generating multisize packs: https://www.aconvert.com/icon/

View File

@ -49,7 +49,7 @@ namespace Bloxstrap.UI.ViewModels.Menu
{
_page = page;
foreach (var entry in Enum.GetValues(typeof(BootstrapperIcon)).Cast<BootstrapperIcon>())
foreach (var entry in BootstrapperIconEx.Selections)
Icons.Add(new BootstrapperIconEntry { IconType = entry });
}