Coloring (unsupported) Gadgets via gtk_
Posted: Wed Apr 09, 2014 11:37 pm
hi everybody,
i am trying to make a dark skin for my program. some gadgets have fore- and background color settings directly supported by PB, others don't. so i was googling for the best way to override styles on a per-application basis.
1. gtk_widget_modify_fg_(*widget.GTKWidget, state, *color) ---> gtk_widget_modify_fg_(GadgetID(#some_gadget), #GTK_STATE_NORMAL, "#111111" ) either makes widgets completely black or has no effect
2. gtk_rc_parse_(*filename) ---> create/modify existing rc file and load it. my preferred method, however does not appear to work.
3. gtk_label_set_markup_ and similar functions ---> not tested. seems rather messy.
4. GTK2_RC_FILES=/path/to/your/theme/gtkrc myPBbinary ---> ignores some widgets, like tabs.
additionally, transparent PNG images seem to display the style background and not the window bg color, is that normal?
Does any of this work with KDE?
Any opinions on my approach? Recommendations?
cheers
felix
i am trying to make a dark skin for my program. some gadgets have fore- and background color settings directly supported by PB, others don't. so i was googling for the best way to override styles on a per-application basis.
1. gtk_widget_modify_fg_(*widget.GTKWidget, state, *color) ---> gtk_widget_modify_fg_(GadgetID(#some_gadget), #GTK_STATE_NORMAL, "#111111" ) either makes widgets completely black or has no effect
2. gtk_rc_parse_(*filename) ---> create/modify existing rc file and load it. my preferred method, however does not appear to work.
3. gtk_label_set_markup_ and similar functions ---> not tested. seems rather messy.
4. GTK2_RC_FILES=/path/to/your/theme/gtkrc myPBbinary ---> ignores some widgets, like tabs.
additionally, transparent PNG images seem to display the style background and not the window bg color, is that normal?
Does any of this work with KDE?
Any opinions on my approach? Recommendations?
cheers
felix