pineapple/src/yuzu/uisettings.cpp

29 lines
810 B
C++
Raw Normal View History

2020-12-28 16:15:37 +01:00
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#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