QMacStyle: Remove theme test in palette polish
macOS doesn't use different colors for alternate rows between blue and graphite themes. It's always the same light gray, as seen on Finder, and we're already getting it right. Change-Id: Ic9ff1712ed90728bcc7613d9fe9eeb7a9c90f59b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
2466e17154
commit
03bcf389c0
@ -2261,15 +2261,8 @@ QMacStyle::~QMacStyle()
|
||||
[d->receiver release];
|
||||
}
|
||||
|
||||
void QMacStyle::polish(QPalette &pal)
|
||||
void QMacStyle::polish(QPalette &)
|
||||
{
|
||||
QCFString theme;
|
||||
const OSErr err = CopyThemeIdentifier(&theme);
|
||||
if (err == noErr && CFStringCompare(theme, kThemeAppearanceAquaGraphite, 0) == kCFCompareEqualTo) {
|
||||
pal.setBrush(QPalette::All, QPalette::AlternateBase, QColor(240, 240, 240));
|
||||
} else {
|
||||
pal.setBrush(QPalette::All, QPalette::AlternateBase, QColor(237, 243, 254));
|
||||
}
|
||||
}
|
||||
|
||||
void QMacStyle::polish(QApplication *)
|
||||
|
Loading…
Reference in New Issue
Block a user