mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-25 06:18:24 -05:00
early-access version 2405
This commit is contained in:
parent
9fa6f1f261
commit
f58de3d4bb
@ -1,7 +1,7 @@
|
||||
yuzu emulator early access
|
||||
=============
|
||||
|
||||
This is the source code for early-access 2404.
|
||||
This is the source code for early-access 2405.
|
||||
|
||||
## Legal Notice
|
||||
|
||||
|
@ -766,7 +766,10 @@ void Config::ReadUIValues() {
|
||||
qt_config->beginGroup(QStringLiteral("UI"));
|
||||
|
||||
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();
|
||||
ReadBasicSetting(UISettings::values.enable_discord_presence);
|
||||
ReadBasicSetting(UISettings::values.select_user_on_boot);
|
||||
@ -1304,8 +1307,10 @@ void Config::SaveSystemValues() {
|
||||
void Config::SaveUIValues() {
|
||||
qt_config->beginGroup(QStringLiteral("UI"));
|
||||
|
||||
WriteSetting(QStringLiteral("theme"), UISettings::values.theme,
|
||||
QString::fromUtf8(UISettings::themes[0].second));
|
||||
WriteSetting(
|
||||
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.select_user_on_boot);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user