On 26/07/2012 18:05, bart@...1198... wrote:
Can no one tell me how to use a GTK dark theme with Inkscape?
There is no GUI feature included in Inkscape.app which would offer to
switch from the GTK+ theme included in the app bundle to a custom one
installed elsewhere with a single click. Nor does Inkscape.app ship with
an alternative dark theme included.
Default gtkrc file (~/.gtkrc-2.0):
==================================
Inkscape detects the presence of the default gtkrc file '~/.gtkrc-2.0'
and will use it instead of the custom gtkrc file from the app bundle.
Switching to a different GTK+ theme (to be used with the precompiled Mac
OS X application bundle as well as other GTK+ apps installed on your
system) can be achieved by these steps:
1) download your GTK+ theme of choice
2) install it into '~/.themes'
3) create '~/.gtkrc-2.0' and refer to your new theme
(e.g. 'gtk-theme-name = "Darkilouche"')
4) restart Inkscape
Note:
You will have to take care of print preview (use Preview.app instead of
evince), font family and size yourself, and will loose the custom 'Aqua
style'-imitating scrollbars.
Known limitations:
Current Inkscape packages for Mac OS X only includes these gtk theme engines:
- Clearlooks
- Crux
- Industrial
- Mist
- Redmond
- ThinIce
- Pixmap
- SVG
i.e. you can't use more modern themes found on the web based on theme
engines like aurora, equinox or murrine.
Example (assuming you have GIMP 2.8 from lisanet installed):
============================================================
To use the dark theme included with latest GIMP on OS X (2.8p1):
create '~/.gtkrc-2.0' with this content:
# ---------------------------------
#
# default gtkrc file '~/.gtkrc-2.0'
#
# use dark theme 'Pro' from GIMP on OS X for all GTK+-based applications:
include
"/Applications/Gimp.app/Contents/Resources/share/gimp/2.0/themes/Pro/gtkrc"
# Alternatively, use a theme installed into '~/.themes', e.g.
#gtk-theme-name="Darkilouche"
# to enable Preview.app as print preview, uncomment next line:
#gtk-print-preview-command="/usr/bin/open %f"
# ---------------------------------
Notes:
1) If you installed GIMP into a different folder, please adjust the
path as needed.
2) OS X doesn't make it easy to create (and edit) hidden dot-files:
use a real text editor (e.g. MacVim, TextWrangler or Sublime 2),
or else work in the Terminal.
~suv