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