mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Remove special case for Sidebar background color
Intended for macOS Yosemite it has a bug which doesn't allow the Sidebar background color be changed on macOS Sonoma and may be other versions, since the forced color is now default for macOS and Yosemite has been phased out long time ago, let's remove this. Fixes #4459
This commit is contained in:
@@ -467,13 +467,6 @@ GCColor::readConfig()
|
||||
}
|
||||
}
|
||||
}
|
||||
#ifdef Q_OS_MAC
|
||||
// if on yosemite set default chrome to #e5e5e5
|
||||
// TODO dgr
|
||||
if (QSysInfo::productVersion().toFloat() >= 12 | QSysInfo::productVersion().toFloat() < 13) {
|
||||
ColorList[CCHROME].color = QColor(0xe5,0xe5,0xe5);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
QColor
|
||||
@@ -1048,19 +1041,6 @@ GCColor::applyTheme(int index)
|
||||
appsettings->setValue(ColorList[i].setting, colorstring);
|
||||
}
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
// if on yosemite we always set default chrome to #e5e5e5 and flat
|
||||
// TODO dgr
|
||||
qDebug() << "productVersion:" << QSysInfo::productVersion();
|
||||
if (QSysInfo::productVersion().toFloat() >= 12 | QSysInfo::productVersion().toFloat() < 13) {
|
||||
QColor color = QColor(0xe5,0xe5,0xe5);
|
||||
ColorList[CCHROME].color = color;
|
||||
QString colorstring = QString("%1:%2:%3").arg(color.red())
|
||||
.arg(color.green())
|
||||
.arg(color.blue());
|
||||
appsettings->setValue(ColorList[CCHROME].setting, colorstring);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user