Files
eden/src/yuzu/uisettings.cpp
T

28 lines
781 B
C++
Raw Normal View History

2022-05-15 02:06:02 +02:00
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2016-01-24 18:34:05 +01:00
#include "yuzu/uisettings.h"
2016-01-24 18:34:05 +01:00
namespace UISettings {
const Themes themes{{
2021-11-13 22:14:30 -05:00
{"Default", "default"},
{"Default Colorful", "colorful"},
{"Dark", "qdarkstyle"},
2020-01-22 21:12:45 +01:00
{"Dark Colorful", "colorful_dark"},
{"Midnight Blue", "qdarkstyle_midnight_blue"},
{"Midnight Blue Colorful", "colorful_midnight_blue"},
}};
2022-04-10 14:04:50 -07: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 10:39:53 -04:00
} // namespace UISettings