mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-22 02:21:27 -07:00
43 lines
1.4 KiB
C#
43 lines
1.4 KiB
C#
using System.Drawing;
|
|
using System.IO;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Imaging;
|
|
|
|
namespace Bloxstrap.Enums
|
|
{
|
|
public enum BootstrapperIcon
|
|
{
|
|
IconBloxstrap,
|
|
Icon2009,
|
|
Icon2011,
|
|
IconEarly2015,
|
|
IconLate2015,
|
|
Icon2017,
|
|
Icon2019,
|
|
Icon2022
|
|
}
|
|
|
|
public static class BootstrapperIconEx
|
|
{
|
|
// 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/
|
|
|
|
public static Icon GetIcon(this BootstrapperIcon icon)
|
|
{
|
|
return icon switch
|
|
{
|
|
BootstrapperIcon.IconBloxstrap => Properties.Resources.IconBloxstrap,
|
|
BootstrapperIcon.Icon2009 => Properties.Resources.Icon2009,
|
|
BootstrapperIcon.Icon2011 => Properties.Resources.Icon2011,
|
|
BootstrapperIcon.IconEarly2015 => Properties.Resources.IconEarly2015,
|
|
BootstrapperIcon.IconLate2015 => Properties.Resources.IconLate2015,
|
|
BootstrapperIcon.Icon2017 => Properties.Resources.Icon2017,
|
|
BootstrapperIcon.Icon2019 => Properties.Resources.Icon2019,
|
|
BootstrapperIcon.Icon2022 => Properties.Resources.Icon2022,
|
|
_ => Properties.Resources.IconBloxstrap
|
|
};
|
|
}
|
|
}
|
|
}
|