From 16f13542f26c5be06692eccb5d57fee2d851b6ec Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 1 Jun 2015 10:50:11 +0100 Subject: [PATCH] Set default chrome on Yosemite .. to match the new UI. --- src/Colors.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Colors.cpp b/src/Colors.cpp index f6fddd04d..421326d90 100644 --- a/src/Colors.cpp +++ b/src/Colors.cpp @@ -186,6 +186,12 @@ void GCColor::setupColors() init[CCALCURRENT].color = QPalette().color(QPalette::Highlight); init[CTOOLBAR].color = QPalette().color(QPalette::Window); +#ifdef Q_OS_MAC + // if on yosemite set default chrome to #e5e5e5 + if (QSysInfo::MacintoshVersion == 12) + init[CCHROME].color = QColor(0xe5,0xe5,0xe5); +#endif + copyArray(init, DefaultColorList); copyArray(init, ColorList); } @@ -277,6 +283,7 @@ GCColor::readConfig() rgb[1].toInt(), rgb[2].toInt()); } else { + // set sensible defaults for any not set... if (ColorList[i].name == "CTOOLBAR") { QPalette def;