From 413ef5e96d098f45694c261bbc409fcf21e0cb65 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Thu, 10 Oct 2019 12:33:46 +0200 Subject: [PATCH] Fix too low contrast when tab is selected Issue: #7512 --- src/gui/settingsdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index b96e28814b..1b8023d077 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -311,10 +311,10 @@ void SettingsDialog::accountRemoved(AccountState *s) void SettingsDialog::customizeStyle() { QString highlightColor(palette().highlight().color().name()); - QString altBase(palette().alternateBase().color().name()); + QString highlightTextColor(palette().highlightedText().color().name()); QString dark(palette().dark().color().name()); QString background(palette().base().color().name()); - _toolBar->setStyleSheet(QString::fromLatin1(TOOLBAR_CSS).arg(background, dark, highlightColor, altBase)); + _toolBar->setStyleSheet(QString::fromLatin1(TOOLBAR_CSS).arg(background, dark, highlightColor, highlightTextColor)); Q_FOREACH (QAction *a, _actionGroup->actions()) { QIcon icon = createColorAwareIcon(a->property("iconPath").toString());