]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
DocsDialog: fix link color on dark colorschemes
authortobtoht <tob@featherwallet.org>
Mon, 16 Oct 2023 19:42:02 +0000 (21:42 +0200)
committertobtoht <tob@featherwallet.org>
Mon, 16 Oct 2023 19:42:02 +0000 (21:42 +0200)
src/dialog/DocsDialog.cpp

index 6d7e849bdd5e5378ec678c0b7296e125cd36ee16..762f0c4ceeee3639dc3f91f663b1a09cc057f26d 100644 (file)
@@ -166,6 +166,11 @@ void DocsDialog::filterIndex(const QString &text) {
 }
 
 void DocsDialog::showDoc(const QString &doc, const QString &highlight) {
+    ColorScheme::updateFromWidget(this);
+    QPalette p = qApp->palette();
+    p.setBrush(QPalette::Link, ColorScheme::darkScheme ? ColorScheme::BLUE.asColor() : QColor("blue"));
+    qApp->setPalette(p);
+
     QString resource = doc;
 
     if (!resource.startsWith("qrc")) {