mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 02:54:15 +01:00
Merge pull request #1440 from lioncash/array
ui_settings: Place definition of the theme array within the cpp file
This commit is contained in:
commit
e6ee31a8e9
@ -13,7 +13,7 @@ ConfigureGeneral::ConfigureGeneral(QWidget* parent)
|
|||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
for (auto theme : UISettings::themes) {
|
for (const auto& theme : UISettings::themes) {
|
||||||
ui->theme_combobox->addItem(theme.first, theme.second);
|
ui->theme_combobox->addItem(theme.first, theme.second);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,5 +6,11 @@
|
|||||||
|
|
||||||
namespace UISettings {
|
namespace UISettings {
|
||||||
|
|
||||||
|
const Themes themes{{
|
||||||
|
{"Default", "default"},
|
||||||
|
{"Dark", "qdarkstyle"},
|
||||||
|
}};
|
||||||
|
|
||||||
Values values = {};
|
Values values = {};
|
||||||
}
|
|
||||||
|
} // namespace UISettings
|
||||||
|
@ -15,9 +15,8 @@ namespace UISettings {
|
|||||||
using ContextualShortcut = std::pair<QString, int>;
|
using ContextualShortcut = std::pair<QString, int>;
|
||||||
using Shortcut = std::pair<QString, ContextualShortcut>;
|
using Shortcut = std::pair<QString, ContextualShortcut>;
|
||||||
|
|
||||||
static const std::array<std::pair<QString, QString>, 2> themes = {
|
using Themes = std::array<std::pair<const char*, const char*>, 2>;
|
||||||
{std::make_pair(QString("Default"), QString("default")),
|
extern const Themes themes;
|
||||||
std::make_pair(QString("Dark"), QString("qdarkstyle"))}};
|
|
||||||
|
|
||||||
struct Values {
|
struct Values {
|
||||||
QByteArray geometry;
|
QByteArray geometry;
|
||||||
|
Loading…
Reference in New Issue
Block a user