mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 15:54:17 +01:00
Merge pull request #7719 from gidoly/patch-6
Change default theme to Dark colorful
This commit is contained in:
commit
ca2d904770
@ -743,7 +743,10 @@ void Config::ReadUIValues() {
|
|||||||
qt_config->beginGroup(QStringLiteral("UI"));
|
qt_config->beginGroup(QStringLiteral("UI"));
|
||||||
|
|
||||||
UISettings::values.theme =
|
UISettings::values.theme =
|
||||||
ReadSetting(QStringLiteral("theme"), QString::fromUtf8(UISettings::themes[0].second))
|
ReadSetting(
|
||||||
|
QStringLiteral("theme"),
|
||||||
|
QString::fromUtf8(
|
||||||
|
UISettings::themes[static_cast<size_t>(UISettings::Theme::DarkColorful)].second))
|
||||||
.toString();
|
.toString();
|
||||||
ReadBasicSetting(UISettings::values.enable_discord_presence);
|
ReadBasicSetting(UISettings::values.enable_discord_presence);
|
||||||
ReadBasicSetting(UISettings::values.select_user_on_boot);
|
ReadBasicSetting(UISettings::values.select_user_on_boot);
|
||||||
@ -1270,8 +1273,10 @@ void Config::SaveSystemValues() {
|
|||||||
void Config::SaveUIValues() {
|
void Config::SaveUIValues() {
|
||||||
qt_config->beginGroup(QStringLiteral("UI"));
|
qt_config->beginGroup(QStringLiteral("UI"));
|
||||||
|
|
||||||
WriteSetting(QStringLiteral("theme"), UISettings::values.theme,
|
WriteSetting(
|
||||||
QString::fromUtf8(UISettings::themes[0].second));
|
QStringLiteral("theme"), UISettings::values.theme,
|
||||||
|
QString::fromUtf8(
|
||||||
|
UISettings::themes[static_cast<size_t>(UISettings::Theme::DarkColorful)].second));
|
||||||
WriteBasicSetting(UISettings::values.enable_discord_presence);
|
WriteBasicSetting(UISettings::values.enable_discord_presence);
|
||||||
WriteBasicSetting(UISettings::values.select_user_on_boot);
|
WriteBasicSetting(UISettings::values.select_user_on_boot);
|
||||||
|
|
||||||
|
@ -29,6 +29,15 @@ struct Shortcut {
|
|||||||
ContextualShortcut shortcut;
|
ContextualShortcut shortcut;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum class Theme {
|
||||||
|
Default,
|
||||||
|
DefaultColorful,
|
||||||
|
Dark,
|
||||||
|
DarkColorful,
|
||||||
|
MidnightBlue,
|
||||||
|
MidnightBlueColorful,
|
||||||
|
};
|
||||||
|
|
||||||
using Themes = std::array<std::pair<const char*, const char*>, 6>;
|
using Themes = std::array<std::pair<const char*, const char*>, 6>;
|
||||||
extern const Themes themes;
|
extern const Themes themes;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user