A little GTK tip for everyone
Posted: Mon Feb 27, 2006 5:44 pm
I'm a big Firefox user, mainly because I like it's flexibility with extensions, but one thing I don't like is that it sometimes look weird with the gtk-qt theme engine, that makes GTK apps look like Qt apps, when other programs look completely fine.
So I was screwing a little around and I found that you actually can create app specific GTK settings by creating a ".gtkrc-2.0" file and using that file instead of your default one.
So in my case where I wanted Firefox to use the Clearlooks GTK/GNOME theme, I create a ".gtkrc-2.0" file looking like this:
Named it ".gtkrc-2.0-clearlooks" and put it in my home directory.
Now to start Firefox with these theme settings:
And then Firefox looks like it would in GNOME, and doesn't have the glitches it do with the gtk-qt engine and all my other GTK apps still uses that to look more KDEish. I'm also gonna do this with Thunderbird, because it has some of the same issues.
Just a little something I thought I'd share with you guys.
Happy Hacking!
So I was screwing a little around and I found that you actually can create app specific GTK settings by creating a ".gtkrc-2.0" file and using that file instead of your default one.
So in my case where I wanted Firefox to use the Clearlooks GTK/GNOME theme, I create a ".gtkrc-2.0" file looking like this:
Code: Select all
# This file was written by KDE
# You can edit it in the KDE control center, under "GTK Styles and Fonts"
include "/opt/gnome/share/themes/Clearlooks/gtk-2.0/gtkrc"
style "user-font"
{
font_name="Sans Serif 10"
}
widget_class "*" style "user-font"
gtk-theme-name="Clearlooks"
gtk-font-name="Sans Serif 10"
Now to start Firefox with these theme settings:
Code: Select all
export GTK2_RC_FILES=".gtkrc-2.0-clearlooks" && firefoxJust a little something I thought I'd share with you guys.
Happy Hacking!