Re: Border of GtkTreeView through CSS

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

 



Op 08/24/2017 om 10:00 PM schreef Mitko Haralanov:
> treeview {
>      border-color: yellow;
>      border-style: solid;
>      border-width: 2px;
>      border-radius: 10px;
> }
>
> what I end up with is a yellow border around every row in the treeview but
> the treeview itself does not have a border. What I want is to set a border
> around the entire widget (header, view, etc), not the rows or the "view"
> subnode.
>
> How can that be accomplished? I was very surprised by the fact that the
> rows' borders were changed.

You can style the widget the treeview was packed in. A common case is
packing a treeview in a scrolledwindow and the css would then look like:

scrolledwindow {
  border-color: yellow;
  border-style: solid;
  border-width: 2px;
  border-radius: 10px;
}

~infirit
_______________________________________________
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