Disable pixmap background defined by GTK theme for each application

For our open-source full-screen text editor, we change the background colors gtk.Window, gtk.Fixedetc. on custom colors. This works fine, but some GTK themes (like Mac4Lin ) define background pixel maps instead of background colors for some widgets. These background pixmaps will not disappear when calling the widget_bg () methods of these widgets.

I know that I can install pixmaps with bg_pixmap[NORMAL] = 'blabla.png'and that I can define my own gtkrc overrides with gtk.rc_parse_string (). But I do not know how to disconnect bg_pixmap[NORMAL].

So how would I do that?

+3
source share
1 answer

Yes, of course, Mac4Lin uses pixmaps for a more granular appearance to match the look of the MAC. To disable these backgroud, you do not need to redefine it.

if you want the background pixmap as the parent, set it as

bg_pixmap[state] = "<parent>" 

and disable it as

bg_pixmap[state] = "<none>"
+2
source

Source: https://habr.com/ru/post/1702985/


All Articles