pineapple/src/yuzu/uisettings.cpp

28 lines
781 B
C++
Raw Normal View History

2022-07-27 20:06:50 +02:00
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 16:15:37 +01:00
#include "yuzu/uisettings.h"
namespace UISettings {
const Themes themes{{
2021-11-25 11:41:27 +01:00
{"Default", "default"},
{"Default Colorful", "colorful"},
2020-12-28 16:15:37 +01:00
{"Dark", "qdarkstyle"},
{"Dark Colorful", "colorful_dark"},
{"Midnight Blue", "qdarkstyle_midnight_blue"},
{"Midnight Blue Colorful", "colorful_midnight_blue"},
}};
2022-04-14 08:12:41 +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");
}
2020-12-28 16:15:37 +01:00
Values values = {};
} // namespace UISettings