summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorJiHO <jiho-sf@users.sourceforge.net>2008-02-16 21:15:14 +0000
committerjiho-sf <jiho-sf@users.sourceforge.net>2008-02-16 21:15:14 +0000
commitdcab7d5727ca3cb9b5cbaa08ca686d5bb328f304 (patch)
tree967351467671289079a77674746a63e9b91827b2 /packaging
parentadd x,y, width and height parameter settings for <filter> node in a separate ... (diff)
downloadinkscape-dcab7d5727ca3cb9b5cbaa08ca686d5bb328f304.tar.gz
inkscape-dcab7d5727ca3cb9b5cbaa08ca686d5bb328f304.zip
When the appearance settings on OS X are not changed from the default, the properties AppleAquaColorVariant and AppleHighlightColor do not exist. Add defaults which correspond to Aqua and blue, the default, flashy, appearance of OS X.
Fixes bug #175967. (bzr r4743)
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"\\\}"}'`