diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/configuration/configure_general.cpp | 2 | ||||
| -rw-r--r-- | src/yuzu/ui_settings.cpp | 8 | ||||
| -rw-r--r-- | src/yuzu/ui_settings.h | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/src/yuzu/configuration/configure_general.cpp b/src/yuzu/configuration/configure_general.cpp index 9292d9a42..f5db9e55b 100644 --- a/src/yuzu/configuration/configure_general.cpp +++ b/src/yuzu/configuration/configure_general.cpp | |||
| @@ -13,7 +13,7 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent) | |||
| 13 | 13 | ||
| 14 | ui->setupUi(this); | 14 | ui->setupUi(this); |
| 15 | 15 | ||
| 16 | for (auto theme : UISettings::themes) { | 16 | for (const auto& theme : UISettings::themes) { |
| 17 | ui->theme_combobox->addItem(theme.first, theme.second); | 17 | ui->theme_combobox->addItem(theme.first, theme.second); |
| 18 | } | 18 | } |
| 19 | 19 | ||
diff --git a/src/yuzu/ui_settings.cpp b/src/yuzu/ui_settings.cpp index 120b34990..a314493fc 100644 --- a/src/yuzu/ui_settings.cpp +++ b/src/yuzu/ui_settings.cpp | |||
| @@ -6,5 +6,11 @@ | |||
| 6 | 6 | ||
| 7 | namespace UISettings { | 7 | namespace UISettings { |
| 8 | 8 | ||
| 9 | const Themes themes{{ | ||
| 10 | {"Default", "default"}, | ||
| 11 | {"Dark", "qdarkstyle"}, | ||
| 12 | }}; | ||
| 13 | |||
| 9 | Values values = {}; | 14 | Values values = {}; |
| 10 | } | 15 | |
| 16 | } // namespace UISettings | ||
diff --git a/src/yuzu/ui_settings.h b/src/yuzu/ui_settings.h index 051494bc5..2d679004f 100644 --- a/src/yuzu/ui_settings.h +++ b/src/yuzu/ui_settings.h | |||
| @@ -15,9 +15,8 @@ namespace UISettings { | |||
| 15 | using ContextualShortcut = std::pair<QString, int>; | 15 | using ContextualShortcut = std::pair<QString, int>; |
| 16 | using Shortcut = std::pair<QString, ContextualShortcut>; | 16 | using Shortcut = std::pair<QString, ContextualShortcut>; |
| 17 | 17 | ||
| 18 | static const std::array<std::pair<QString, QString>, 2> themes = { | 18 | using Themes = std::array<std::pair<const char*, const char*>, 2>; |
| 19 | {std::make_pair(QString("Default"), QString("default")), | 19 | extern const Themes themes; |
| 20 | std::make_pair(QString("Dark"), QString("qdarkstyle"))}}; | ||
| 21 | 20 | ||
| 22 | struct Values { | 21 | struct Values { |
| 23 | QByteArray geometry; | 22 | QByteArray geometry; |