Pick from upstream: Fix too low contrast when tab is selected
authorMichael Schuster <michael@schuster.ms>
Sun, 1 Dec 2019 19:33:10 +0000 (20:33 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Mon, 9 Dec 2019 20:37:21 +0000 (21:37 +0100)
The low contrast is also a problem with the Dark Mode on macOS.

For reference please see:
- Commit: https://github.com/owncloud/client/commit/413ef5e96d098f45694c261bbc409fcf21e0cb65
- Issue: https://github.com/owncloud/client/issues/7512

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/settingsdialog.cpp

index c96168ca7a14005c5b5ad58c8ccb0e0873e691b9..7ae0626670725455d6157e49383773ae40aa95c0 100644 (file)
@@ -340,10 +340,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());