Re: GTK+3 styles and themes
- From: Roland Koebler <rk-list simple-is-better org>
- To: gtk-app-devel-list gnome org
- Subject: Re: GTK+3 styles and themes
- Date: Tue, 1 Apr 2014 11:49:18 +0200
Hi,
ok, I'm answering my own question -- maybe this is also helpful for someone
else:
Using custom stylesheets *does* work (although it still seems that
~/.gtk-3.0.css has no effect under Gnome3); but for some themes and
Gnome3, setting "background-color" doesn't have any effect, but setting
"background" seems to work.
Python example, which works here:
css = Gtk.CssProvider()
css.load_from_data("""
GtkButton { background-color: #ff0000; background: #ff0000; }
""")
screen = Gdk.Screen.get_default()
Gtk.StyleContext().add_provider_for_screen(screen, css, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION)
Is there any documentation of this?
Especially when to use "background-color" and when to use "background"?
The "GtkCssProvider"-documentation only mentions "background-color".
Roland
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]