From: Michael Schuster Date: Sun, 1 Dec 2019 19:33:10 +0000 (+0100) Subject: Pick from upstream: Fix too low contrast when tab is selected X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~497 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2dae31486a77f1ed99ec9a7f6c29efd71d8c8ada;p=nextcloud-desktop.git Pick from upstream: Fix too low contrast when tab is selected 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 --- diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp index c96168ca7..7ae062667 100644 --- a/src/gui/settingsdialog.cpp +++ b/src/gui/settingsdialog.cpp @@ -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());