mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-23 00:40:58 +01:00
Use Default Colorful theme by default outside of Windows
On OSes with system-wide theming this allows yuzu to follow system style, regardless of its exact coloration, working well with both light and dark system themes. Dark /Colorful, on the other hand, forces dark theme regardless of user preferences set in system settings, making for a poor default. Use Colorful variation to keep in line with icon style of patron-voted Dark Colorful.
This commit is contained in:
parent
ef7c50b276
commit
d63d8bf7f9
2 changed files with 11 additions and 6 deletions
|
@ -745,8 +745,7 @@ void Config::ReadUIValues() {
|
|||
UISettings::values.theme =
|
||||
ReadSetting(
|
||||
QStringLiteral("theme"),
|
||||
QString::fromUtf8(
|
||||
UISettings::themes[static_cast<size_t>(UISettings::Theme::DarkColorful)].second))
|
||||
QString::fromUtf8(UISettings::themes[static_cast<size_t>(default_theme)].second))
|
||||
.toString();
|
||||
ReadBasicSetting(UISettings::values.enable_discord_presence);
|
||||
ReadBasicSetting(UISettings::values.select_user_on_boot);
|
||||
|
@ -1273,10 +1272,8 @@ void Config::SaveSystemValues() {
|
|||
void Config::SaveUIValues() {
|
||||
qt_config->beginGroup(QStringLiteral("UI"));
|
||||
|
||||
WriteSetting(
|
||||
QStringLiteral("theme"), UISettings::values.theme,
|
||||
QString::fromUtf8(
|
||||
UISettings::themes[static_cast<size_t>(UISettings::Theme::DarkColorful)].second));
|
||||
WriteSetting(QStringLiteral("theme"), UISettings::values.theme,
|
||||
QString::fromUtf8(UISettings::themes[static_cast<size_t>(default_theme)].second));
|
||||
WriteBasicSetting(UISettings::values.enable_discord_presence);
|
||||
WriteBasicSetting(UISettings::values.select_user_on_boot);
|
||||
|
||||
|
|
|
@ -48,6 +48,14 @@ public:
|
|||
static const std::array<int, Settings::NativeKeyboard::NumKeyboardMods> default_keyboard_mods;
|
||||
static const std::array<UISettings::Shortcut, 21> default_hotkeys;
|
||||
|
||||
static constexpr UISettings::Theme default_theme{
|
||||
#ifdef _WIN32
|
||||
UISettings::Theme::DarkColorful
|
||||
#else
|
||||
UISettings::Theme::DefaultColorful
|
||||
#endif
|
||||
};
|
||||
|
||||
private:
|
||||
void Initialize(const std::string& config_name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue