Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-03-12 17:46:58

paul1149
Member
Registered: 2016-02-29
Posts: 22

Scroll bar mods?

Hello again,

I'm wondering whether it's possible to widen the scroll bar and to add back the incremental scroll buttons. This is the way just about every OS used to be, and I don't understand the move away from it. I'm in XFCE 4 on Linux Lite 2.8 x64, a ubuntu derivative.

Under Windows, the lack of incremental scrolling wouldn't be such a problem because the mouse drivers have better wheel control. But I have found no wheel control in Linux, so I have been stuck with slow scrolling in the likes of LibreOffice. The incrementals would be a nice addition.

And for me, losing a bit of screen space to wider scroll bars would be well worth it.

I have edited the theme (Mediterranean Light) via gtk-2.0/gtkrc, from

GtkRange::slider-width = 15

to

GtkRange::slider-width = 20

But it made no difference.

Thanks


MX17 Linux (debian 9.3) x64; Xfce 4.12.3. C2D 2.8ghz; 6GB RAM; SSD

Offline

#2 2016-03-13 13:58:06

hacknix
Member
Registered: 2014-07-15
Posts: 24

Re: Scroll bar mods?

Found this on arch-forum:

AFAIK those are theme-dependant. Here's a snippet from the Ambiance/gtk-3.0/gtk-widgets.css:

/*************
* scrollbar *
*************/
.scrollbar {
    -GtkScrollbar-has-backward-stepper: 0;
    -GtkScrollbar-has-forward-stepper: 0;
    -GtkRange-slider-width: 13;

https://bbs.archlinux.org/viewtopic.php?id=140937


Apparently one has to log out and back in to make the buttons appear

Offline

#3 2016-03-13 16:03:56

paul1149
Member
Registered: 2016-02-29
Posts: 22

Re: Scroll bar mods?

Thanks much! That gets me going. I had the right idea but the wrong file.

I searched the theme gtk-3 file but didn't find scrollbar settings there. They are in a separate scrollbar.css file.

The mods there worked on some apps only, such as Slimjet and Abiword, but not on Thunar file manager or LibreOffice.

Then I found this reference to the gnome settings, which says that most of the settings I was using are depreciated. I have to figure out how to employ the min-width property on the slider object in order to affect the other apps.


MX17 Linux (debian 9.3) x64; Xfce 4.12.3. C2D 2.8ghz; 6GB RAM; SSD

Offline

#4 2016-03-13 22:02:37

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 5,526

Re: Scroll bar mods?

paul1149 wrote:

The mods there worked on some apps only, such as Slimjet and Abiword, but not on Thunar file manager or LibreOffice.

The previous mod is for GTK3 apps, Thunar is a GTK2 app. For Thunar and other GTK2 apps, try something like this in ~/.gtkrc-2.0:

style "my-scrollbar"
{
        GtkScrollbar::has-backward-stepper = 1
        GtkScrollbar::has-forward-stepper = 1
        GtkScrollbar::slider-width=50
}
class "GtkWidget"    style "my-scrollbar"

Adjust slider-width value to suit.

Offline

#5 2016-03-14 03:08:18

paul1149
Member
Registered: 2016-02-29
Posts: 22

Re: Scroll bar mods?

Awesome. Thanks so much. I'm about 90% there. The scrollbars are wider in everything I've tested, even Thunar. I have the stepper now as well, I  just have to work on making it large enough and maybe giving it an icon or a different color to set it off.

Excellent! Really appreciate the help here.

Be Well.


MX17 Linux (debian 9.3) x64; Xfce 4.12.3. C2D 2.8ghz; 6GB RAM; SSD

Offline

Board footer

Powered by FluxBB