uisettings: Add enumeration type for themes

Eliminates the usage of a magic number to indicate the default index of the themes array,
This commit is contained in:
Morph
2022-01-17 02:46:30 -05:00
parent 789af19c60
commit 78e233c460
2 changed files with 17 additions and 3 deletions

View File

@ -29,6 +29,15 @@ struct Shortcut {
ContextualShortcut shortcut;
};
enum class Theme {
Default,
DefaultColorful,
Dark,
DarkColorful,
MidnightBlue,
MidnightBlueColorful,
};
using Themes = std::array<std::pair<const char*, const char*>, 6>;
extern const Themes themes;