summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh b/packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh
index b94ab67df..f809e4c50 100755
--- a/packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh
+++ b/packaging/macosx/Resources/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/sync_osx_look.sh
@@ -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"\\\}"}'`