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,
    min-width: 1em;
scrollbar.horizontal slider,
    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.right, undershoot.bottom, undershoot.left { background-image: none; }

Great! Thank you smurphos!

4 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

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s