Since 17.10 solutions working in previous versions don't work anymore (E.g. N0rberts option 2 ("Remove overlay-scrollbar stuff") in Gtk-Message: Failed to load module "overlay-scrollbar" Ubuntu 17.10.).
Since 17.10 solutions working in previous versions don't work anymore (E.g. N0rberts option 2 ("Remove overlay-scrollbar stuff") in Gtk-Message: Failed to load module "overlay-scrollbar" Ubuntu 17.10.).
The reason why solutions working in older Ubuntu versions do not work anymore are changes in CSS which GTK+ uses for styling and layout.
Put this into your ~/.config/gtk-3.0/gtk.css (create the file, if necessary):
Put the same into /root/.config/gtk-3.0/gtk.css for getting the same scrollbar experience for root applications like Synaptic.
And this prevents the scrollbar from disappearing when you are inactive:
For changes to take effect you might need to restart applications resp. log out and in again.
I am not completely satisfied with this solution though because the scrollbars do not look as "professional" as one might expect and because they look different in different applications. E.g. the steppers look OK in Firefox - the up and down arrows are visible. In Gnome Terminal and Nautilus they are just some rounded rectangles without arrows (as well as in the application I am developing).
Other applications come with their "own" scrollbars - e.g. Geany. They are completely unaffected by these settings and still look as one would expect from decent scrollbars. Maybe someone can figure out how to "steal" them from Geany. Update: In 18.04 Geany does not come with it's own scrollbars anymore but e.g. FBReader and Gimp still do.
However, getting rid of the warping slider still works in the old way:
Possible solution is to switch theme from Ambiance or Radiance to Adwaita with
gnome-tweaks
:gnome-tweaks
withsudo apt-get install gnome-tweaks
gnome-tweaks
Or switch to GTK3 port of Clearlooks theme (install it with
sudo apt-get install clearlooks-phenix-theme
).I did not find css-driven solution yet.
I created picking up from various sites in the web (above all Linux mint forum) my own scrollbar for the theme Ambiance in Ubuntu 18.04. It has no overlays. You have to put the code it in the ~/.config/gtk-3.0/gtk.css eventually with other tweaks. Log out and log in to take effect. Use it if you like it: