GTK3 scrollbar arrows

I am not particularly happy with the lack of scrollbar arrows in application windows. Unfortunatelly, this is the default behaviour of GTK3 programs. I already dealt with GTK3 programs automatically hiding the scrollbars, so I decided to get the arrows back, as well.

I searched a bit and found this solution in the Linux Mint forums. So, following the instructions, I created ~/.config/gtk-3.0/gtk.css and added the following contents:

/* Scrollbar width fixes */
scrollbar.vertical slider,
scrollbar.slider.vertical
{
    min-width: 1em;
}
scrollbar.horizontal slider,
scrollbar.slider.horizontal
{
    min-height: 1em;
}

/* Steppers */
* {
    -GtkScrollbar-has-backward-stepper: 1;
    -GtkScrollbar-has-forward-stepper: 1;
}

scrollbar button {
    min-width: 1em;
    min-height: 1em;
}

scrollbar.vertical button.down {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}

scrollbar.vertical button.up {
    -gtk-icon-source: -gtk-icontheme("pan-up-symbolic");
}

scrollbar.horizontal button.down {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
}

scrollbar.horizontal button.up {
    -gtk-icon-source: -gtk-icontheme("pan-start-symbolic");
}

undershoot.top, undershoot.right, undershoot.bottom, undershoot.left { background-image: none; }

Great! Thank you smurphos!


5 Comments on “GTK3 scrollbar arrows”

  1. Doug says:

    This is awesome. Thank you. I really don’t like this popular move to scrollbars with no arrows.

  2. slackalaxy says:

    Happy to be of help. In my opinion, hiding scrollbars or no arrows represent a usability issue.

  3. Anonymous says:

    This is awesome. Thank you.

  4. Anonymous says:

    But I change how to set StepIncrement

  5. Andrey says:

    Just look for it to apply for the project I’m participating. Thank you!


Leave a comment