Re: Changing the GtkTreeView Bar Color....

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

 



For GTK+ >= 3.20, replace "GtkTreeView" with "treeview".

Ciao,
 Emmanuele.

On Friday, 1 July 2016, Glus Xof <gtglus@xxxxxxxxx> wrote:


2016-07-01 15:02 GMT+02:00 Stefan Salewski <mail@xxxxxxxxxxxx>:
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]
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux