[Geany-Users] list of gtkrc-stylable attributes for main window, toolbar etc

Matthew Brush mbrush at xxxxx
Fri Mar 29 00:34:38 UTC 2013


On 13-03-28 12:26 PM, pauriem at gmail.com wrote:
> manual says geany is sensitive to some styles in gtkrc that a user can
> customize, example is given for changing font, and I have also managed
> to change bg color in a limited way
>
> I wonder how I could find full list of properties that are susceptible
> to customization in this way
>
> for instance, can background of document tabs be styled? how about
> background of highlighted toolbar buttons or dropdowns such as recent
> file list from the toolbar?
>

What's listed in the manual is all of the "exposed" widgets you can 
match/style using normal GTK+ theming methods. You can do pretty much 
whatever GTK+ theming allows though.

The manual for GTK2/3 resource files is here:

http://www.gtk.org/api/2.6/gtk/gtk-Resource-Files.html

Or for GTK3 CSS:

https://developer.gnome.org/gtk3/3.0/GtkCssProvider.html

Also there's loads of tutorials about GTK+ theming online.

You can get as clever as you want and style just about any widget in 
Geany's UI I think. You might need to open "data/geany.glade" file from 
Geany's source tree (or installed to "$PREFIX/share/geany" IIRC) to see 
what are the names of certain widgets, but note that only the widgets in 
the manual won't be changed arbitrarily in new versions, if you are able 
to match by buildable names or hierarchies from the Glade file, it's 
entirely possible that they will change from version to version, 
breaking your theme on upgrade.

As for your first specific question, you might be able to match the 
document notebook using "notebook1" buildable name and then further 
matching its label children. I don't really know much about this stuff, 
but if I had to guess, for GTK RC files, I'd say something like this:

     style "documentLabels"
     {
       bg[NORMAL] = #f00
     }
     widget_class "notebook1.GtkNotebook*GtkLabel" style "documentLabels"

I guess if that works, it should be similar for the other ones you 
mentioned.

Have fun,
Matthew Brush


More information about the Users mailing list