summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2018-10-11 14:36:31 +0200
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2018-10-14 09:49:47 +0000
commitf5204067a02bd0c13500ea6e66bb9211701f96db (patch)
treeb73c997a3d19265fe0b30b92c31ab185cc90db98 /src
parent0a7aebadfbb3534284546aa3ca8612314c08f136 (diff)
qt_mac_createRolePalettes: fix the highlight color for ItemViewPalette role
While this requires from us calling a deprecated method, a (non-deprecated) method we were using gives a wrong color which is too bright/saturated. Task-number: QTBUG-70676 Change-Id: Icebeb53e351caa646c533595ca1a886e5eb6b5b8 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/cocoa/qcocoasystemsettings.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoasystemsettings.mm b/src/plugins/platforms/cocoa/qcocoasystemsettings.mm
index c1711e7cd4..672b0e4f25 100644
--- a/src/plugins/platforms/cocoa/qcocoasystemsettings.mm
+++ b/src/plugins/platforms/cocoa/qcocoasystemsettings.mm
@@ -202,7 +202,7 @@ QHash<QPlatformTheme::Palette, QPalette*> qt_mac_createRolePalettes()
qt_mac_toQBrush([NSColor unemphasizedSelectedTextColor]));
} else {
baseColors = [NSColor controlAlternatingRowBackgroundColors];
- activeHighlightColor = [NSColor selectedControlColor];
+ activeHighlightColor = [NSColor alternateSelectedControlColor];
pal.setBrush(QPalette::Inactive, QPalette::HighlightedText,
pal.brush(QPalette::Active, QPalette::Text));
}