python - Theming GTK CSS doesn't work properly -
i have python/gtk+3.0 application following layout
gtk.window gtk.box customclass : gtk.scrolledwindow gtk.viewport # created automatically gtk.grid gtk.box # many of gtk.scrollbar # created automatically gtk.scrollbar # created automatically
now i'm triying theme it, doesn't work, want change background of customclass want change css.
i'm trying:
#customclass, #customclass > gtkbox, #customclass > gtkviewport, #customclass > gtkgrid, gtkscrolledwindow gtkgrid { background-color: #000; }
where can find reference theming? when in themes installed in system see things like
.custom-class { /* ... */} gtksomething.custom { /* ... */}
how apply kind "class" selector elements code , glade, i'm using both.
you can give object, implements customclass, name, can selected name. this:
main_scrolled_window = customscrolledwindow() main_scrolled_window.set_name('main_scrolled_window')
then, in css:
''' #main_scrolled_window{ background-color: #f3f3f3; } '''
it not bad this, event though don't know how theme custom widget class directly.
Comments
Post a Comment