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