summaryrefslogtreecommitdiff
path: root/src/yuzu/uisettings.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-04-13 22:15:31 -0700
committerGitHub <noreply@github.com>2022-04-13 22:15:31 -0700
commit8ae43a1be96c8673a182c2cf92bea4f1c5888adb (patch)
tree9292316010f234bb492fcec47fcfd104e882be5f /src/yuzu/uisettings.cpp
parent46da380b571b46d85bf0a6e62ce7a74c9fdce832 (diff)
parentf6695814beb2db2bf9884c22f760476d65753040 (diff)
Merge pull request #8190 from Docteh/palswap
ui: Set Link Color when setting theme
Diffstat (limited to 'src/yuzu/uisettings.cpp')
-rw-r--r--src/yuzu/uisettings.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/uisettings.cpp b/src/yuzu/uisettings.cpp
index 21683576c..f683b80f7 100644
--- a/src/yuzu/uisettings.cpp
+++ b/src/yuzu/uisettings.cpp
@@ -15,6 +15,14 @@ const Themes themes{{
{"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