From 8c88f69f25b30294004758d76eac72b7914e634e Mon Sep 17 00:00:00 2001 From: tobtoht Date: Mon, 16 Oct 2023 21:42:02 +0200 Subject: [PATCH] DocsDialog: fix link color on dark colorschemes --- src/dialog/DocsDialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dialog/DocsDialog.cpp b/src/dialog/DocsDialog.cpp index 6d7e849..762f0c4 100644 --- a/src/dialog/DocsDialog.cpp +++ b/src/dialog/DocsDialog.cpp @@ -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")) {