[dia] Improving Mac Look'n'feel and font handling. Code copied from Inkscape.
- From: Steffen Macke <sdteffen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] Improving Mac Look'n'feel and font handling. Code copied from Inkscape.
- Date: Sat, 17 Mar 2012 18:38:27 +0000 (UTC)
commit 8dcfab4b1eff9121e2c61213377d7a5bd2419d93
Author: Steffen Macke <sdteffen sdteffen de>
Date: Sat Mar 17 19:37:30 2012 +0100
Improving Mac Look'n'feel and font handling. Code copied from Inkscape.
installer/macosx/dia | 37 ++
installer/macosx/etc/fonts/fonts.conf | 155 ++++++
.../gtk-2.0/Scrollbars/stepper-down.png | Bin 0 -> 465 bytes
.../gtk-2.0/Scrollbars/stepper-left.png | Bin 0 -> 497 bytes
.../gtk-2.0/Scrollbars/stepper-right.png | Bin 0 -> 498 bytes
.../gtk-2.0/Scrollbars/stepper-up.png | Bin 0 -> 463 bytes
.../gtk-2.0/Scrollbars/trough-scrollbar-horiz.png | Bin 0 -> 1014 bytes
.../gtk-2.0/Scrollbars/trough-scrollbar-vert.png | Bin 0 -> 905 bytes
.../gtk-2.0/Scrollbars_1/copy-slider.sh | 7 +
.../gtk-2.0/Scrollbars_1/slider-horiz-prelight.png | Bin 0 -> 5940 bytes
.../gtk-2.0/Scrollbars_1/slider-horiz.png | Bin 0 -> 5940 bytes
.../gtk-2.0/Scrollbars_1/slider-vert-prelight.png | Bin 0 -> 5409 bytes
.../gtk-2.0/Scrollbars_1/slider-vert.png | Bin 0 -> 5409 bytes
.../gtk-2.0/Scrollbars_6/copy-slider.sh | 7 +
.../gtk-2.0/Scrollbars_6/slider-horiz-prelight.png | Bin 0 -> 5864 bytes
.../gtk-2.0/Scrollbars_6/slider-horiz.png | Bin 0 -> 5864 bytes
.../gtk-2.0/Scrollbars_6/slider-vert-prelight.png | Bin 0 -> 5412 bytes
.../gtk-2.0/Scrollbars_6/slider-vert.png | Bin 0 -> 5412 bytes
.../Clearlooks-Quicksilver-OSX/gtk-2.0/pre_gtkrc | 523 ++++++++++++++++++++
19 files changed, 729 insertions(+), 0 deletions(-)
---
diff --git a/installer/macosx/dia b/installer/macosx/dia
index 86a1700..6b7bd42 100755
--- a/installer/macosx/dia
+++ b/installer/macosx/dia
@@ -37,6 +37,7 @@ export DIA_LIB_PATH="$TOP/dia"
export DIA_SHEET_PATH="$TOP/sheets"
export DIA_SHAPE_PATH="$TOP/shapes"
export DIA_XSLT_PATH="$TOP/xslt"
+export DIA_SHAREDIR="$TOP"
export DIA_LOCALE_PATH="$TOP/share/locale"
mkdir -p "${HOME}/.dia-etc"
@@ -54,6 +55,42 @@ export XDG_DATA_DIRS="$TOP/share"
# various configuration files.
ESCAPEDTOP=`echo "$TOP" | sed 's/#/\\\\\\\\#/' | sed 's/&/\\\\\\&/g' | sed 's/|/\\\\\\|/g'`
+# Set GTK theme (only if there is no .gtkrc-2.0 in the user's home)
+if [[ ! -e "$HOME/.gtkrc-2.0" ]]; then
+ # Appearance setting
+ aquaStyle=`defaults read "Apple Global Domain" AppleAquaColorVariant 2>/dev/null`
+ # 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 2>/dev/null`
+ # 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" # blue
+ else
+ menuColor="#7c8da4" # graphite
+ fi
+ # Format highlight color as a GTK rgb value
+ hiliColorFormated=`echo $hiliColor | awk -F " " '{print "\\\{"$1","$2","$3"\\\}"}'`
+
+ # echo $menuColor
+ # echo $hiliColorFormated
+
+ # Modify the gtkrc
+ # - with the correct colors
+ # - to point to the correct scrollbars folder
+ sed 's/OSX_HILI_COLOR_PLACEHOLDER/'$hiliColorFormated'/g' "$DIA_SHAREDIR/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/pre_gtkrc" | sed 's/OSX_MENU_COLOR_PLACEHOLDER/\"'$menuColor'\"/g' | sed 's/AQUASTYLE_PLACEHOLDER/'$aquaStyle'/g' | sed 's|${THEMEDIR}|'"$ESCAPEDTOP/themes/Clearlooks-Quicksilver-OSX/gtk-2.0|g" > "${HOME}/.dia-etc/gtkrc"
+
+ export GTK2_RC_FILES="$HOME/.dia-etc/gtkrc"
+fi
+
# If the AppleCollationOrder preference doesn't exist, we fall back to using
# the AppleLocale preference.
LANGSTR=`defaults read .GlobalPreferences AppleCollationOrder 2>/dev/null`
diff --git a/installer/macosx/etc/fonts/fonts.conf b/installer/macosx/etc/fonts/fonts.conf
new file mode 100644
index 0000000..c8a008d
--- /dev/null
+++ b/installer/macosx/etc/fonts/fonts.conf
@@ -0,0 +1,155 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<!-- /etc/fonts/fonts.conf file to configure system font access -->
+<fontconfig>
+
+<!--
+ DO NOT EDIT THIS FILE.
+ IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
+ LOCAL CHANGES BELONG IN 'local.conf'.
+
+ The intent of this standard configuration file is to be adequate for
+ most environments. If you have a reasonably normal environment and
+ have found problems with this configuration, they are probably
+ things that others will also want fixed. Please submit any
+ problems to the fontconfig bugzilla system located at fontconfig.org
+
+ Note that the normal 'make install' procedure for fontconfig is to
+ replace any existing fonts.conf file with the new version. Place
+ any local customizations in local.conf which this file references.
+
+ Keith Packard
+-->
+
+<!-- Font directory list -->
+
+ <dir>/usr/share/fonts</dir>
+ <dir>/usr/X11R6/lib/X11/fonts</dir>
+ <dir>/opt/local/share/fonts</dir>
+ <!-- <dir>/System/Library/Fonts</dir> -->
+ <dir>/Network/Library/Fonts</dir>
+ <dir>/Library/Fonts</dir>
+ <dir>~/Library/Fonts</dir>
+ <dir>~/.fonts</dir>
+
+<!--
+ Accept deprecated 'mono' alias, replacing it with 'monospace'
+-->
+ <match target="pattern">
+ <test qual="any" name="family">
+ <string>mono</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>monospace</string>
+ </edit>
+ </match>
+
+<!--
+ Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
+-->
+ <match target="pattern">
+ <test qual="any" name="family">
+ <string>sans serif</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+<!--
+ Accept deprecated 'sans' alias, replacing it with 'sans-serif'
+-->
+ <match target="pattern">
+ <test qual="any" name="family">
+ <string>sans</string>
+ </test>
+ <edit name="family" mode="assign">
+ <string>sans-serif</string>
+ </edit>
+ </match>
+
+<!--
+ Load local system customization file
+-->
+ <include ignore_missing="yes">conf.d</include>
+
+<!-- Font cache directory list -->
+
+ <cachedir>~/.fontconfig</cachedir>
+
+ <config>
+<!--
+ These are the default Unicode chars that are expected to be blank
+ in fonts. All other blank chars are assumed to be broken and
+ won't appear in the resulting charsets
+ -->
+ <blank>
+ <int>0x0020</int> <!-- SPACE -->
+ <int>0x00A0</int> <!-- NO-BREAK SPACE -->
+ <int>0x00AD</int> <!-- SOFT HYPHEN -->
+ <int>0x034F</int> <!-- COMBINING GRAPHEME JOINER -->
+ <int>0x0600</int> <!-- ARABIC NUMBER SIGN -->
+ <int>0x0601</int> <!-- ARABIC SIGN SANAH -->
+ <int>0x0602</int> <!-- ARABIC FOOTNOTE MARKER -->
+ <int>0x0603</int> <!-- ARABIC SIGN SAFHA -->
+ <int>0x06DD</int> <!-- ARABIC END OF AYAH -->
+ <int>0x070F</int> <!-- SYRIAC ABBREVIATION MARK -->
+ <int>0x115F</int> <!-- HANGUL CHOSEONG FILLER -->
+ <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
+ <int>0x1680</int> <!-- OGHAM SPACE MARK -->
+ <int>0x17B4</int> <!-- KHMER VOWEL INHERENT AQ -->
+ <int>0x17B5</int> <!-- KHMER VOWEL INHERENT AA -->
+ <int>0x180E</int> <!-- MONGOLIAN VOWEL SEPARATOR -->
+ <int>0x2000</int> <!-- EN QUAD -->
+ <int>0x2001</int> <!-- EM QUAD -->
+ <int>0x2002</int> <!-- EN SPACE -->
+ <int>0x2003</int> <!-- EM SPACE -->
+ <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
+ <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
+ <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
+ <int>0x2007</int> <!-- FIGURE SPACE -->
+ <int>0x2008</int> <!-- PUNCTUATION SPACE -->
+ <int>0x2009</int> <!-- THIN SPACE -->
+ <int>0x200A</int> <!-- HAIR SPACE -->
+ <int>0x200B</int> <!-- ZERO WIDTH SPACE -->
+ <int>0x200C</int> <!-- ZERO WIDTH NON-JOINER -->
+ <int>0x200D</int> <!-- ZERO WIDTH JOINER -->
+ <int>0x200E</int> <!-- LEFT-TO-RIGHT MARK -->
+ <int>0x200F</int> <!-- RIGHT-TO-LEFT MARK -->
+ <int>0x2028</int> <!-- LINE SEPARATOR -->
+ <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
+ <int>0x202A</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
+ <int>0x202B</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
+ <int>0x202C</int> <!-- POP DIRECTIONAL FORMATTING -->
+ <int>0x202D</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
+ <int>0x202E</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
+ <int>0x202F</int> <!-- NARROW NO-BREAK SPACE -->
+ <int>0x205F</int> <!-- MEDIUM MATHEMATICAL SPACE -->
+ <int>0x2060</int> <!-- WORD JOINER -->
+ <int>0x2061</int> <!-- FUNCTION APPLICATION -->
+ <int>0x2062</int> <!-- INVISIBLE TIMES -->
+ <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
+ <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
+ <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
+ <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
+ <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
+ <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
+ <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
+ <int>0x2800</int> <!-- BRAILLE PATTERN BLANK -->
+ <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
+ <int>0x3164</int> <!-- HANGUL FILLER -->
+ <int>0xFEFF</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
+ <int>0xFFA0</int> <!-- HALFWIDTH HANGUL FILLER -->
+ <int>0xFFF9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
+ <int>0xFFFA</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
+ <int>0xFFFB</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
+ </blank>
+<!--
+ Rescan configuration every 30 seconds when FcFontSetList is called
+ -->
+ <rescan>
+ <int>30</int>
+ </rescan>
+ </config>
+
+</fontconfig>
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-down.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-down.png
new file mode 100644
index 0000000..62c0b41
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-down.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-left.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-left.png
new file mode 100644
index 0000000..0dff81d
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-left.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-right.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-right.png
new file mode 100644
index 0000000..02ef8ee
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-right.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-up.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-up.png
new file mode 100644
index 0000000..dba8660
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/stepper-up.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-horiz.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-horiz.png
new file mode 100644
index 0000000..e978dfb
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-horiz.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-vert.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-vert.png
new file mode 100644
index 0000000..4f128b3
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars/trough-scrollbar-vert.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/copy-slider.sh b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/copy-slider.sh
new file mode 100755
index 0000000..020e059
--- /dev/null
+++ b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/copy-slider.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cp -f slider-vert.png slider-vert-prelight.png
+cp -f slider-vert.png slider-horiz-prelight.png
+cp -f slider-vert.png slider-horiz.png
+convert -rotate 90 slider-horiz.png slider-horiz.png
+convert -rotate 90 slider-horiz-prelight.png slider-horiz-prelight.png
\ No newline at end of file
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz-prelight.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz-prelight.png
new file mode 100644
index 0000000..1ee4528
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz-prelight.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz.png
new file mode 100644
index 0000000..1ee4528
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-horiz.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert-prelight.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert-prelight.png
new file mode 100644
index 0000000..4fa6800
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert-prelight.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert.png
new file mode 100644
index 0000000..4fa6800
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_1/slider-vert.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/copy-slider.sh b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/copy-slider.sh
new file mode 100755
index 0000000..020e059
--- /dev/null
+++ b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/copy-slider.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+cp -f slider-vert.png slider-vert-prelight.png
+cp -f slider-vert.png slider-horiz-prelight.png
+cp -f slider-vert.png slider-horiz.png
+convert -rotate 90 slider-horiz.png slider-horiz.png
+convert -rotate 90 slider-horiz-prelight.png slider-horiz-prelight.png
\ No newline at end of file
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz-prelight.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz-prelight.png
new file mode 100644
index 0000000..c0f7f3c
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz-prelight.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz.png
new file mode 100644
index 0000000..c0f7f3c
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-horiz.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert-prelight.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert-prelight.png
new file mode 100644
index 0000000..9643f37
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert-prelight.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert.png b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert.png
new file mode 100644
index 0000000..9643f37
Binary files /dev/null and b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/Scrollbars_6/slider-vert.png differ
diff --git a/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/pre_gtkrc b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/pre_gtkrc
new file mode 100644
index 0000000..a8b3d4c
--- /dev/null
+++ b/installer/macosx/themes/Clearlooks-Quicksilver-OSX/gtk-2.0/pre_gtkrc
@@ -0,0 +1,523 @@
+#
+# GTK theme to be used on Mac OS X, to mimic the appearance of Tiger
+#
+# Heavily based on Clearlooks-Quicksilver
+# Scrollbars from OSX-theme by Lauri Taimila (lauri taimila com)
+#
+# (c) 2007 JiHO <jo irisson gmail com>.
+# GNU General Public License http://www.gnu.org/copyleft/gpl.html
+#
+
+pixmap_path "${THEMEDIR}"
+
+style "clearlooks-default"
+{
+ GtkButton ::default_border = { 0, 0, 0, 0 }
+ GtkRange ::trough_border = 0
+ GtkPaned ::handle_size = 6
+ GtkRange ::slider_width = 15
+ GtkRange ::stepper_size = 15
+ GtkScrollbar ::min_slider_length = 30
+ GtkCheckButton ::indicator_size = 12
+ GtkMenuBar ::internal-padding = 0
+ GtkTreeView ::expander_size = 14
+ GtkExpander ::expander_size = 16
+
+ xthickness = 1
+ ythickness = 1
+
+ fg[NORMAL] = "#000000" # black
+ fg[PRELIGHT] = "#000000" # black
+ fg[SELECTED] = "#ffffff" # white
+ fg[ACTIVE] = "#000000" # black
+ fg[INSENSITIVE] = {0.6, 0.6, 0.6} # dark gray
+
+ bg[NORMAL] = {0.95, 0.95, 0.95} # very light gray
+ bg[PRELIGHT] = "#ffffff" # white
+ bg[SELECTED] = OSX_MENU_COLOR_PLACEHOLDER # menu color
+ bg[INSENSITIVE] = {0.9, 0.9, 0.9} # light gray
+ bg[ACTIVE] = {0.85, 0.85, 0.85} # gray
+
+ base[NORMAL] = "#ffffff" # white
+ base[PRELIGHT] = OSX_MENU_COLOR_PLACEHOLDER # menu color
+ base[ACTIVE] = {0.6, 0.6, 0.6} # dark gray
+ base[SELECTED] = OSX_HILI_COLOR_PLACEHOLDER # highlight color
+ base[INSENSITIVE] = {0.9, 0.9, 0.9} # light gray
+
+ text[NORMAL] = "#000000" # black
+ text[PRELIGHT] = "#000000" # black
+ text[ACTIVE] = "#ffffff" # white
+ text[SELECTED] = "#ffffff" # white
+ text[INSENSITIVE] = {0.6, 0.6, 0.6} # dark gray
+
+ engine "clearlooks"
+ {
+ menubarstyle = 1 # 0 = flat, 1 = sunken, 2 = flat gradient
+ menuitemstyle = 0 # 0 = flat, 1 = 3d-ish (gradient), 2 = 3d-ish (button)
+ listviewitemstyle = 0 # 0 = flat, 1 = 3d-ish (gradient)
+ progressbarstyle = 0 # 0 = candy bar, 1 = flat
+ }
+}
+
+
+style "clearlooks-wide" = "clearlooks-default"
+{
+ xthickness = 2
+ ythickness = 2
+}
+
+style "clearlooks-button" = "clearlooks-default"
+{
+ xthickness = 3
+ ythickness = 3
+
+ bg[NORMAL] = "#f0f1f2" # a hint of blue...
+}
+
+style "clearlooks-notebook" = "clearlooks-wide"
+{
+ bg[NORMAL] = {0.93, 0.93, 0.93}
+ bg[INSENSITIVE] = {0.93, 0.93, 0.93}
+}
+
+style "clearlooks-tasklist" = "clearlooks-default"
+{
+ xthickness = 5
+ ythickness = 3
+}
+
+style "clearlooks-menu" = "clearlooks-default"
+{
+ xthickness = 2
+ ythickness = 1
+ bg[NORMAL] = "#ffffff"
+}
+
+style "clearlooks-menu-item" = "clearlooks-default"
+{
+ xthickness = 2
+ ythickness = 3
+ fg[PRELIGHT] = "#ffffff"
+ text[PRELIGHT] = "#ffffff"
+ # We want PRELIGHT to be white for widgets, but coloured for the menu.
+ bg[PRELIGHT] = OSX_MENU_COLOR_PLACEHOLDER
+
+}
+
+style "clearlooks-menu-itembar" = "clearlooks-default"
+{
+ xthickness = 3
+ ythickness = 3
+}
+
+style "clearlooks-tree" = "clearlooks-default"
+{
+ xthickness = 2
+ ythickness = 2
+}
+
+style "clearlooks-frame-title" = "clearlooks-default"
+{
+ fg[NORMAL] = "#404040"
+}
+
+style "clearlooks-tooltips" = "clearlooks-default"
+{
+ xthickness = 4
+ ythickness = 4
+ bg[NORMAL] = { 1.0,1.0,0.75 }
+}
+
+style "clearlooks-progressbar" = "clearlooks-default"
+{
+ xthickness = 1
+ ythickness = 1
+
+ fg[PRELIGHT] = "#ffffff"
+}
+
+style "clearlooks-combo" = "clearlooks-default"
+{
+ xthickness = 2
+ ythickness = 3
+}
+
+# Added pixmaps for scollbars
+style "scrollbar" = "default"
+{
+ # The values I set here have to do with the relative size of three graphic elements
+ # I have used: the slider, the arrow box, and the trough. They all have the same width
+ # of 15 pixels, but gtk wants to put in some spacing between them. It seems like it
+ # places the sliders inside the trough with a default 1 pixel border on either side of the slider,
+ # so that the trough has its width stretched by an additional two pixels(?). Setting the
+ # trough border makes the arrow box sit on top of the trough squarely, by making sure that
+ # the trough stays the same width as the arrowbox(?). I could be totally wrong here.
+ GtkRange::trough_border = 0
+ GtkRange::slider_width = 15
+
+ # This sets the size of the steppers (arrow buttons on the end of the scrollbar).
+ # The image I am using is 15x15 pixels, and if I dont set this a one pixel line
+ # gets cut off of the top of the "up" stepper.
+ GtkRange::stepper_size = 15
+
+ # Set a minimum length for the slider. Since I set the border on the slider
+ # image to 15 pixels on either end of the slider I want the min length to be
+ # at least 30 pixels to avoid an ugly slider when gtk wants to make it smaller
+ # than 30 pixels.
+ GtkScrollbar::min_slider_length = 30
+
+ engine "pixmap"
+ {
+ # Horizontal slider background
+ image
+ {
+ function = BOX
+ recolorable = TRUE
+ detail = "trough"
+ file = "Scrollbars/trough-scrollbar-horiz.png"
+ border = { 30, 30, 0, 0 }
+ stretch = TRUE
+ orientation = HORIZONTAL
+ }
+
+ # Vertical slider background
+ image
+ {
+ function = BOX
+ recolorable = TRUE
+ detail = "trough"
+ file = "Scrollbars/trough-scrollbar-vert.png"
+ border = { 0, 0, 30, 30 }
+ stretch = TRUE
+ orientation = VERTICAL
+ }
+
+ # Normal horizontal slider
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = NORMAL
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz.png"
+ border = { 15, 15, 6, 6 }
+ stretch = TRUE
+ orientation = HORIZONTAL
+ }
+
+ # Horizontal slider (active)
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = ACTIVE
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz-prelight.png"
+ border = { 15, 15, 6, 6 }
+ stretch = TRUE
+ orientation = HORIZONTAL
+ }
+
+ # Horizontal slider (mouse over)
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = PRELIGHT
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz-prelight.png"
+ border = { 15, 15, 6, 6 }
+ stretch = TRUE
+ orientation = HORIZONTAL
+ }
+
+ # Horizontal slider (Insesitive)
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = INSENSITIVE
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-horiz.png"
+ border = { 15, 15, 6, 6 }
+ stretch = TRUE
+ orientation = HORIZONTAL
+ }
+
+ # Normal vertical slider
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = NORMAL
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert.png"
+ border = { 6, 6, 15, 15 }
+ stretch = TRUE
+ orientation = VERTICAL
+ }
+
+ # Vertical slider (Active)
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = ACTIVE
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert.png"
+ border = { 6, 6, 15, 15 }
+ stretch = TRUE
+ orientation = VERTICAL
+ }
+
+ # Vertical slider (mouse over)
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = PRELIGHT
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert-prelight.png"
+ border = { 6, 6, 15, 15 }
+ stretch = TRUE
+ orientation = VERTICAL
+ }
+
+ # Vertical slider (Insesitive)
+ image
+ {
+ function = SLIDER
+ recolorable = TRUE
+ state = INSENSITIVE
+ file = "Scrollbars_AQUASTYLE_PLACEHOLDER/slider-vert-prelight.png"
+ border = { 6, 6, 15, 15 }
+ stretch = TRUE
+ orientation = VERTICAL
+ }
+
+################################################################################
+# SCROLLBAR STEPPERS
+################################################################################
+
+ # Up
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = NORMAL
+ file = "Scrollbars/stepper-up.png"
+ #border = { 12, 2, 2, 9 }
+ stretch = TRUE
+ arrow_direction = UP
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = PRELIGHT
+ file = "Scrollbars/stepper-up.png"
+ #border = { 12, 2, 2, 9 }
+ stretch = TRUE
+ arrow_direction = UP
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = ACTIVE
+ file = "Scrollbars/stepper-up.png"
+ #border = { 12, 2, 2, 9 }
+ stretch = TRUE
+ arrow_direction = UP
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = INSENSITIVE
+ file = "Scrollbars/stepper-up.png"
+ #border = { 12, 2, 2, 9 }
+ stretch = TRUE
+ arrow_direction = UP
+ }
+
+ ######### DOWN ############
+
+
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = NORMAL
+ file = "Scrollbars/stepper-down.png"
+ #border = { 12, 2, 10, 2 }
+ stretch = TRUE
+ arrow_direction = DOWN
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = PRELIGHT
+ file = "Scrollbars/stepper-down.png"
+ #border = { 12, 2, 10, 2 }
+ stretch = TRUE
+ arrow_direction = DOWN
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = ACTIVE
+ file = "Scrollbars/stepper-down.png"
+ #border = { 12, 2, 10, 2 }
+ stretch = TRUE
+ arrow_direction = DOWN
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = INSENSITIVE
+ file = "Scrollbars/stepper-down.png"
+ #border = { 12, 2, 10, 2 }
+ stretch = TRUE
+ arrow_direction = DOWN
+ }
+
+############ RIGHT ################
+
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = NORMAL
+ file = "Scrollbars/stepper-right.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = RIGHT
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = PRELIGHT
+ file = "Scrollbars/stepper-right.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = RIGHT
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = ACTIVE
+ file = "Scrollbars/stepper-right.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = RIGHT
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = INSENSITIVE
+ file = "Scrollbars/stepper-right.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = RIGHT
+ }
+
+############### LEFT ###################
+
+
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = NORMAL
+ file = "Scrollbars/stepper-left.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = LEFT
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = PRELIGHT
+ file = "Scrollbars/stepper-left.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = LEFT
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = ACTIVE
+ file = "Scrollbars/stepper-left.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = LEFT
+ }
+ image
+ {
+ function = STEPPER
+ recolorable = TRUE
+ state = INSENSITIVE
+ file = "Scrollbars/stepper-left.png"
+ #border = { 2, 9, 2, 13 }
+ stretch = TRUE
+ arrow_direction = LEFT
+ }
+ }
+}
+
+# widget styles
+class "GtkWidget" style "clearlooks-default"
+class "GtkButton" style "clearlooks-button"
+class "GtkCombo" style "clearlooks-button"
+class "GtkRange" style "clearlooks-wide"
+class "GtkFrame" style "clearlooks-wide"
+class "GtkMenu" style "clearlooks-menu"
+class "GtkEntry" style "clearlooks-button"
+class "GtkMenuItem" style "clearlooks-menu-item"
+class "GtkStatusbar" style "clearlooks-wide"
+class "GtkNotebook" style "clearlooks-notebook"
+class "GtkProgressBar" style "clearlooks-progressbar"
+class "GtkScrollbar" style "scrollbar"
+
+widget_class "*MenuItem.*" style "clearlooks-menu-item"
+
+# combobox stuff
+widget_class "*.GtkComboBox.GtkButton" style "clearlooks-combo"
+widget_class "*.GtkCombo.GtkButton" style "clearlooks-combo"
+
+# tooltips stuff
+widget_class "*.tooltips.*.GtkToggleButton" style "clearlooks-tasklist"
+widget "gtk-tooltips" style "clearlooks-tooltips"
+
+# treeview stuff
+widget_class "*.GtkTreeView.GtkButton" style "clearlooks-tree"
+widget_class "*.GtkCTree.GtkButton" style "clearlooks-tree"
+widget_class "*.GtkList.GtkButton" style "clearlooks-tree"
+widget_class "*.GtkCList.GtkButton" style "clearlooks-tree"
+widget_class "*.GtkFrame.GtkLabel" style "clearlooks-frame-title"
+
+# notebook stuff
+widget_class "*.GtkNotebook.*.GtkEventBox" style "clearlooks-notebook"
+widget_class "*.GtkNotebook.*.GtkViewport" style "clearlooks-notebook"
+
+# OS X uses 11 but due to differences in font smoothing, 10 actually integrates better
+gtk-font-name="Lucida Grande 10"
+
+# icon sizes: 48, 32, 24 (tango=22), 16
+#
+# gtk-dialog main icon in a dialog box: e.g. alert when file is not saved
+# gtk-dnd icon showed while dragging and dropping (not used on OS X)
+# gtk-button buttons: OK/Cancel dialogs, usually 22 but 16 is more OS X-ish
+# gtk-large-toolbar large toolbar: toolbox
+# gtk-small-toolbar small toolbar: command bar, tools control, snap control
+# gtk-menu menus in applications: File, Edit
+# panel-menu general Application/Places menu (not used on OS X)
+#
+# insckape-decoration layers lock, "affect" icons, etc.
+#
+gtk-icon-sizes = "gtk-dialog=48,48:gtk-button=16,16:gtk-large-toolbar=22,22:gtk-small-toolbar=16,16:gtk-menu=16,16:inkscape-decoration=16,16"
+
+# use OS X default pdf-viewer for print preview
+gtk-print-preview-command="/usr/bin/open %f"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]