How to access the theming Fonts and Colors on GTK/Gnome

Posted by Lothar on Stack Overflow See other posts from Stack Overflow or by Lothar
Published on 2010-05-10T21:35:56Z Indexed on 2010/05/10 22:34 UTC
Read the original article Hit count: 378

Filed under:
|
|

Lets say i want to write a special text editor widget.

How can i get the default themed colors for texts, selected text and background and which are the users default fonts?

I see that GNOME does define 5 special system fonts and default sizes for this purpose in the GNOME Appearance Configuration dialog, but i haven't found a single word in the GTK documentation how to access them (and the GTK mailing list is a joke:-( ).

Windows and Cocoa both give me dozens of system values.

I found the GtkStyle class but this doesn't seem to be what i need.

© Stack Overflow or respective owner

Related posts about gtk

Related posts about themes