mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
3f0cc544cf
Clang versions < 15 have compile issues with explicit instantiation. Disable it for these versions.
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include "yuzu/uisettings.h"
|
|
|
|
#ifndef _CANNOT_EXPLICITLY_INSTANTIATE
|
|
namespace Settings {
|
|
template class Setting<bool>;
|
|
template class Setting<std::string>;
|
|
template class Setting<u16, true>;
|
|
template class Setting<u32>;
|
|
template class Setting<u8, true>;
|
|
template class Setting<u8>;
|
|
template class Setting<unsigned long long>;
|
|
} // namespace Settings
|
|
#endif
|
|
|
|
namespace UISettings {
|
|
|
|
const Themes themes{{
|
|
{"Default", "default"},
|
|
{"Default Colorful", "colorful"},
|
|
{"Dark", "qdarkstyle"},
|
|
{"Dark Colorful", "colorful_dark"},
|
|
{"Midnight Blue", "qdarkstyle_midnight_blue"},
|
|
{"Midnight Blue Colorful", "colorful_midnight_blue"},
|
|
}};
|
|
|
|
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");
|
|
}
|
|
|
|
Values values = {};
|
|
|
|
} // namespace UISettings
|