Re: Border of GtkTreeView through CSS



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


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