DocsDialog: fix link color on dark colorschemes

This commit is contained in:
tobtoht 2023-10-16 21:42:02 +02:00
parent dee21193ac
commit 8c88f69f25
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View 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")) {