Code

When the appearance settings on OS X are not changed from the default, the properties...
authorjiho-sf <jiho-sf@users.sourceforge.net>
Sat, 16 Feb 2008 21:15:14 +0000 (21:15 +0000)
committerjiho-sf <jiho-sf@users.sourceforge.net>
Sat, 16 Feb 2008 21:15:14 +0000 (21:15 +0000)
Fixes bug #175967.

packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh

index b94ab67df152fee7a24cdda0fa8669caad8b45c6..f809e4c5065ce7e06d207fe9c9a863d80978cc65 100755 (executable)
@@ -8,17 +8,23 @@
 
 # Appearance setting
 aquaStyle=`defaults read "Apple Global Domain" AppleAquaColorVariant`
-# 1 for aqua, 6 for graphite
+# 1 for aqua, 6 for graphite, inexistant if the default color was never changed
+if [[ "$aquaStyle" == "" ]]; then
+       aquaStyle=1             # set aqua as default
+fi
 
 # Highlight Color setting
 hiliColor=`defaults read "Apple Global Domain" AppleHighlightColor`
-# a RGB value, with components between 0 and 1
+# a RGB value, with components between 0 and 1, also inexistant if it was not changed
+if [[ "$hiliColor" == "" ]]; then
+       hiliColor="0.709800 0.835300 1.000000"  # set blue as default
+fi
 
 # Menu items color
 if [[ aquaStyle -eq 1 ]]; then
-       menuColor="#4a76cd"
+       menuColor="#4a76cd"     # blue
 else
-       menuColor="#7c8da4"
+       menuColor="#7c8da4"     # graphite
 fi
 # Format highlight color as a GTK rgb value
 hiliColorFormated=`echo $hiliColor | awk -F " " '{print "\\\{"$1","$2","$3"\\\}"}'`