mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-02 13:27:52 +00:00
38dd6dc190
Long story short, QT doesn't allow the link colors to be set via their stylesheets. There are two ways to work with this, specify the color manually for every link (See the About dialog) The other way is to change the default palette. IsDarkTheme is copy/pasted from src/yuzu/debugger/wait_tree.cpp
28 lines
810 B
C++
28 lines
810 B
C++
// 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{{
|
|
{"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
|