mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-12 00:47:49 +00:00
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:
parent
f83f55b337
commit
7721ca7ee7
2 changed files with 17 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue