[pygtk] pygtk tree view expanders custom color

Timo timomlists at gmail.com
Mon Sep 9 19:00:51 WST 2013


Op 08-09-13 21:27, Giuseppe Penone schreef:
> Hi,
> in my application users can control the foreground and background 
> color of the treeview.
> The problem is that the expanders arrows color does not change and so 
> it happens that is not visible.
> Does anybody know if it is possible to override the gtk theme in use 
> about this?

You can change it like any other part or widget in GTK3. Just add the 
following to your stylesheet:

.expander {
     color: rgb(32, 74, 135);
}


Or be more precise about which treeview and do:

GtkTreeView#MyCustomView .expander {
     color: rgb(32, 74, 135);
}

And in your code:
     treeview.set_name("MyCustomView")

Cheers,
Timo

> Cheers,
> Giuseppe.
>
>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/



More information about the pygtk mailing list