diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-01-17 02:46:30 -0500 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-01-17 02:46:30 -0500 |
commit | 78e233c4600a13caee1cbb41d495b168fc6e1e79 (patch) | |
tree | 1952d0c4936721a71c361d7fad67265f39f2e4b3 /src/yuzu/uisettings.h | |
parent | 789af19c60eb95238292ba273ccbf6aa96ac9682 (diff) |
uisettings: Add enumeration type for themes
Eliminates the usage of a magic number to indicate the default index of the themes array,
Diffstat (limited to 'src/yuzu/uisettings.h')
-rw-r--r-- | src/yuzu/uisettings.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/yuzu/uisettings.h b/src/yuzu/uisettings.h index 402c4556d..f7298ddad 100644 --- a/src/yuzu/uisettings.h +++ b/src/yuzu/uisettings.h @@ -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; |