summaryrefslogtreecommitdiff
path: root/src/yuzu/main.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/main.cpp
parent46da380b571b46d85bf0a6e62ce7a74c9fdce832 (diff)
parentf6695814beb2db2bf9884c22f760476d65753040 (diff)
Merge pull request #8190 from Docteh/palswap
ui: Set Link Color when setting theme
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 62d15f8cd..52879a989 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -3652,6 +3652,14 @@ void GMainWindow::UpdateUITheme() {
setStyleSheet({});
}
+ QPalette new_pal(qApp->palette());
+ if (UISettings::IsDarkTheme()) {
+ new_pal.setColor(QPalette::Link, QColor(0, 190, 255, 255));
+ } else {
+ new_pal.setColor(QPalette::Link, QColor(0, 140, 200, 255));
+ }
+ qApp->setPalette(new_pal);
+
QIcon::setThemeName(current_theme);
QIcon::setThemeSearchPaths(theme_paths);
}