2016-01-24 11:34:05 -06:00
|
|
|
// Copyright 2016 Citra Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2019-07-29 15:06:33 -05:00
|
|
|
#include "yuzu/uisettings.h"
|
2016-01-24 11:34:05 -06:00
|
|
|
|
|
|
|
namespace UISettings {
|
|
|
|
|
2018-10-04 05:33:17 -05:00
|
|
|
const Themes themes{{
|
2021-11-13 21:14:30 -06:00
|
|
|
{"Default", "default"},
|
|
|
|
{"Default Colorful", "colorful"},
|
2018-10-04 05:33:17 -05:00
|
|
|
{"Dark", "qdarkstyle"},
|
2020-01-22 14:12:45 -06:00
|
|
|
{"Dark Colorful", "colorful_dark"},
|
2020-07-18 08:23:20 -05:00
|
|
|
{"Midnight Blue", "qdarkstyle_midnight_blue"},
|
|
|
|
{"Midnight Blue Colorful", "colorful_midnight_blue"},
|
2018-10-04 05:33:17 -05:00
|
|
|
}};
|
|
|
|
|
2022-04-10 16:04:50 -05:00
|
|
|
bool IsDarkTheme() {
|
|
|
|
const auto& theme = UISettings::values.theme;
|
|
|
|
return theme == QStringLiteral("qdarkstyle") ||
|
|
|
|
theme == QStringLiteral("qdarkstyle_midnight_blue") ||
|
|
|
|
theme == QStringLiteral("colorful_dark") ||
|
|
|
|
theme == QStringLiteral("colorful_midnight_blue");
|
|
|
|
}
|
|
|
|
|
2016-01-24 11:34:05 -06:00
|
|
|
Values values = {};
|
2020-07-22 09:39:53 -05:00
|
|
|
|
2018-10-04 05:33:17 -05:00
|
|
|
} // namespace UISettings
|