Adding scrollbar arrows to Adwaita (default)

I am using Ubuntu 20.04 desktop. I have only the default themes installed on my system. Currently, I am using Adwaita (default) which does not have arrows at the two ends of vertical or horizontal window scrollbars.

I have tested the other themes; only HighContrast and HighContrastInverse seem to provide the arrows I need. However, these themes are not appropriate for me. Adwaita (default) is just fine, except for the missing arrows in scrollbars.

I have tried a few solutions provided on the Internet (like https://www.slsmk.com/adding-scrollbars-and-buttons-to-desktop-theme/ ) that try to create a file like ~/.config/gtk-3.0/gtk.css and put the necessary CSS declarations, but these do not work.

What is the recommended method to locally modify a theme for GTK2 applications and add these scrollbar arrows?

Update:

Actually, it turns out that the above-mentioned action does work for GTK3 applications. But, my application that needs these arrows uses GTK2.

I tried locations like ~/.config/gtk-2.0/gtkrc, ~/.gtkrc, and ~/.gtkrc-2.0, but it didn’t help.

Editing directly the file /usr/share/themes/Adwaita/gtk-2.0/main.rc and commenting out the lines:

GtkScrollbar::has-backward-stepper = 0
GtkScrollbar::has-forward-stepper = 0

seems to help, but I want to do it on user basis (by settings their values to 1).

Answer

Attribution
Source : Link , Question Author : FedonKadifeli , Answer Author : Community

Leave a Comment