Xfce Forum

Sub domains
 

You are not logged in.

#1 2014-10-06 16:49:02

KitchM
Member
Registered: 2009-08-15
Posts: 300

Setting Scrollbar Width

I am using Xfce 4.10.1 on Fedora 20.

The scrollbars in my various applications are too narrow.

How can I change their width?

Thanks.

Offline

#2 2014-10-06 17:45:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,992

Re: Setting Scrollbar Width

To globally change the scrollbar width for GTK2 applications, create the file "~/.gtkrc-2.0" with the following content:

style "myscrollbar"
{
     GtkScrollbar::slider-width=XX
}
class "GtkScrollbar" style "myscrollbar"

...where "XX" equals the width in pixels that you would like.

Change the Appearance theme away and back to have the setting take effect or logout and back in again.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2014-10-06 20:15:35

KitchM
Member
Registered: 2009-08-15
Posts: 300

Re: Setting Scrollbar Width

Thanks, ToZ.  That did the trick.  I guessed at 20 pixels and it looked just about right in Thunderbird.  Helps me a lot.

I'll be watching it in others.

I wonder why that sort of setting isn't in the settings manager?

Thanks again.

Offline

#4 2014-10-06 20:41:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,992

Re: Setting Scrollbar Width

KitchM wrote:

Thanks, ToZ.  That did the trick.  I guessed at 20 pixels and it looked just about right in Thunderbird.  Helps me a lot.

I'll be watching it in others.

Keep in mind that this override will only affect GTK2 apps. If you have any GTK3 or QT apps, they won't be affected. We can probably figure out the GTK3 override, but I wouldn't know about the QT one.

I wonder why that sort of setting isn't in the settings manager?

There are literally thousands of GTK settings that can be overridden to give you finer control of GUI elements. It would be difficult to compile a complete list of them all and put them into a settings app, I guess.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2017-01-24 03:10:51

vdicarlo
Member
Registered: 2016-12-29
Posts: 3

Re: Setting Scrollbar Width

Thank you Moderator.  Your suggestion above also worked for me in XFCE 4.12 running on Opensuse.

Offline

Board footer

Powered by FluxBB