Re: Changing the GtkTreeView Bar Color....




Thanks guys...

But It's not yet solved...

First of all, I downgraded gtk+ libraries to 3.20.6...

After, I changed the contents of my ~/.config/gtk-3.0/gtk.css, with

----
treeview row:selected {
        background-color: #000;
}

treeview row:nth-child(even) {
        background-color: #bd0814;
}
-----

And then copied this gtk.css to /usr/share/themes/Adwaita/gtk-3.0/

Result: neither bar nor background row colors changed...

I'm working on a Debian GNU/Linux, Stretch, ie. currently at testing stage.





2016-07-01 22:10 GMT+02:00 Emmanuele Bassi <ebassi gmail com>:
For GTK+ >= 3.20, replace "GtkTreeView" with "treeview".

Ciao,
 Emmanuele.


On Friday, 1 July 2016, Glus Xof <gtglus gmail com> wrote:


2016-07-01 15:02 GMT+02:00 Stefan Salewski <mail ssalewski de>:
On Fri, 2016-07-01 at 12:06 +0200, Glus Xof wrote:
> Hi guys,
>
> I'm looking for the CSS sentence to change the GtkTreeView Bar
> Color... I
> mean the selection bar that is set like blue in Adwaita default theme
> (in
> gtk+-3.0 style).
>
> I tested unsuccesfully with
>
> GtkTreeView :selected {background-color: #...}
>
> But I don't see any reference documentation for that...
>

Google or GtkInspector may help.

For my gtk 3.18 this entry makes the blue bars black:

The Stefan's proposed solution doesn't run for me.... and I don't understand why...

The bar color remains blue... even if a gtk.css file at ~/.config/gtk-3.0 with the same exact content has been created.
 
$ cat ~/.config/gtk-3.0/gtk.css
GtkTreeView row:selected {
  background-color: #000;
}

My library versions are:

$ pkg-config --modversion gtk+-3.0
3.21.3
$ pkg-config --modversion gtkmm-3.0
3.21.3

And don't know what additional data you may need...

Glus



--
https://www.bassi.io
[ ] ebassi [@gmail.com]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]