How to remove the gap above the vertical scrollbar in treeviews when headers are visible?

I’m updating the Clearlooks GTK2 theme for GTK3 (Clearlooks-Phenix) to add improvements and to fix bugs which have occurred since its initial release.

I want to adjust the vertical scrollbar for treeview widgets in this theme so that the top of the scrollbar aligns with the top of the widget as it did in the original GTK2 theme:

image

Here is how it looks right now in GTK3. The background color of the parent scrolledwindow has been set to pink to highlight the problem:

image

There is a gap at the top of the vertical scrollbar which is the height of the treeview header.

I can adjust it by the height of the header (25px) to close the gap:

image

treeview ~ scrollbar.vertical {
   margin-top:-25px
}

But this affects ALL treeviews including those which do not have headers:

image

This is also erroneous in that the height of the header is dictated by the user’s font size. This can break the workaround and highlights that it is the wrong way to go about this:

image

What can I do to adjust the vertical scrollbar for treeviews with headers to close this gap?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.