
On 2007-August-30 , at 02:19 , Michael Wybrow wrote:
On 29/08/2007, at 11:37 PM, jiho wrote:
I've some GTK themes which look OK when integrated with OS X. Now if someone could tell me how to use GTK2_RC_FILES I'll be glad to try and use them in Inkscape.
Setting GTK2_RC_FILES="whatever/theme/gtkrc" in /Applications/ Inkscape.app/Contents/Resources/bin/inkscape works fine to me.
Indeed this works but disregards whatever settings people have in their ~.gtkrc-2.0 as you mentioned. Adding both possibilities to the path (ie GTK2_RC_FILES=~/.gtkrc-2.0:/whatever/theme/gtkrc) mixes the two themes instead of giving precedence to one on the other (as a regular PATH variable would do for example).
I had tried this previously when first releasing OSX packages and decided there were some issues with the theme at the time (I think "Glossy P" -- the one used by Gimp.app) so I just decided not to ship the theme.
Indeed, glossyP is horrible.
Also I think if you set GTK2_RC_FILES then GTK doesn't read the users own ~/.gtkrc-2.0 file which is bad (I have gtk-font- name="Lucida Grande 12" in mine for example)
I am thinking maybe to add a condition in the inkscape startup script: ie if (! -e ~/gtkrc-2.0); then GTK2_RC_FILES="some/theme/in/insckape/bundle" end We'll respect gtkrc-2.0 settings this way.
Maybe the OSX themes have got better now.
Well not really. There are a few that are close enough but none that gets it really right, particularly for the menus (the fact that they are semi-transparent in OS X makes it difficult to mimic them in GTK). You can have a look at gnome-look.org, there are some leopard looking themes that are not so bad: http://www.gnome-look.org/content/show.php/OSX-X.5?content=61583 and some tiger like http://www.gnome-look.org/content/show.php/OSX-mod?content=58188 http://www.gnome-look.org/content/show.php/OSX-Tiger+theme?content=56577
Since none of them is really great, I tried to cook one myself, based on the ubuntulooks engine but It wasn't much better so I think we would be better off using a completely different theme that would fit OK with OS X. I used the milk theme in the past, which is derived from an OS X theme and looks good (but has horrible icons in its new version): http://jo.irisson.free.fr/dropbox/inkscape/with_graphite.png http://jo.irisson.free.fr/dropbox/inkscape/with_blue.png The Clearlooks-Quicksilver theme may be OK too, and we can easily add some aqua scrollbars (there a re some good ones in some existing themes): http://jo.irisson.free.fr/dropbox/inkscape/clearlooks.png What do you think?
For Gimp, you can select the theme in the GUI,
oh, where? I can't find it (expect for the Default vs Small icon theme).
which makes me think there is a better way to set this in code and we maybe don't need to rely on clobbering the gtkrc file. Any one knowledgeable in this? I guess we could just look at how Gimp does it.
Last time I looked I think they used GTK2_RC_FILES (which is what guided me to it). But gimp is a little special in that it can use a gtk theme different from the rest of the applications, even on linux I think. However the new gimp.app changed, and they ship with the Nodoka theme now. Which is better than glossyP but sill not to my taste.
JiHO --- http://jo.irisson.free.fr/