Scrollbars smaller and smaller

Forum rules
Before you post please read how to get help
Post Reply
MSt1982
Level 2
Level 2
Posts: 61
Joined: Mon Jul 13, 2015 11:01 pm

Scrollbars smaller and smaller

Post by MSt1982 » Sun Mar 11, 2018 1:16 pm

Hello, it feels as if the scrollbars of the windows getting smaller and smaller every update, whatever design-theme I choose.
The ONLY theme remaining a normal scrollbar is the high-contrast-bw-theme...but I do not want black and white.

Why don't remove the developers the scrollbar just completely? Do I get a magnifying glass for free with next update?
Why is the scrollbar getting smaller and smaller for every theme? Why is there no theme with a normal scrollbar anymore?


How do I get the scrollbar wider manually for the themes?

User avatar
ibbill
Level 4
Level 4
Posts: 301
Joined: Thu May 26, 2011 5:07 pm
Location: Canada

Re: Scrollbars smaller and smaller

Post by ibbill » Sun Mar 11, 2018 1:38 pm

I use rescroller in the google extensions.

Really find it a pain that I have to use a chrome extension. Just for scrollbars.
Bill and so it goes
Mint Mate 19 64 bit
HP xw4600-workstation
NVIDIA Corporation G84GL [Quadro FX 1700] (rev a1)
4gb ram Dual core
Canada

MSt1982
Level 2
Level 2
Posts: 61
Joined: Mon Jul 13, 2015 11:01 pm

Re: Scrollbars smaller and smaller

Post by MSt1982 » Sun Mar 11, 2018 1:56 pm

This fixes it only for the browser maybe, but its a system-wide problem.

Filemanager and every other window also has such miniature-scrollbars nowadays. I found out its possible to download other themes - but I do not want to download tons of crap only to find out which theme possibly has a normal, good visible scrollbar.

User avatar
Schultz
Level 7
Level 7
Posts: 1613
Joined: Thu Feb 25, 2016 8:57 pm

Re: Scrollbars smaller and smaller

Post by Schultz » Sun Mar 11, 2018 2:33 pm

I think this can be done by editing a couple of files. The first is gtkrc, found in /usr/share/themes/Mint-X/gtk-2.0. The second is gtk-widgets.css, found in /usr/share/themes/Mint-X/gtk-3.0. They need to be opened as administrator to be edited. In those files, look for the line: GtkScrollbar::slider-width = (I'm pretty sure that's the one). After the equal sign, give it a higher number. I have mine set at 18 and 12 respectively.

:!: It might be a good idea to write down the original number or backup the unedited file in case things go south. :!:

NOTE: If you are using a different theme than Mint-X, you need to go into the folder for the theme you are using.

User avatar
ibbill
Level 4
Level 4
Posts: 301
Joined: Thu May 26, 2011 5:07 pm
Location: Canada

Re: Scrollbars smaller and smaller

Post by ibbill » Sun Mar 11, 2018 2:43 pm

I was kind of hoping that we could make them any size we wanted to.

I use 18 not sure if 18.1 or 18.2 Mate gives you that option.
Bill and so it goes
Mint Mate 19 64 bit
HP xw4600-workstation
NVIDIA Corporation G84GL [Quadro FX 1700] (rev a1)
4gb ram Dual core
Canada

User avatar
Schultz
Level 7
Level 7
Posts: 1613
Joined: Thu Feb 25, 2016 8:57 pm

Re: Scrollbars smaller and smaller

Post by Schultz » Sun Mar 11, 2018 3:44 pm

ibbill wrote:
I was kind of hoping that we could make them any size we wanted to.

I use 18 not sure if 18.1 or 18.2 Mate gives you that option.
I don't understand your post. You can change the numbers in the two files I mentioned to anything you want. Whether one uses Mint 18, or Mint 18.1 or .2 or .3 doesn't make a difference (I don't think).

User avatar
ibbill
Level 4
Level 4
Posts: 301
Joined: Thu May 26, 2011 5:07 pm
Location: Canada

Re: Scrollbars smaller and smaller

Post by ibbill » Sun Mar 11, 2018 3:47 pm

Okay thanks for the info. Much appreciated. Missed your first post on how to do it. oops.
Bill and so it goes
Mint Mate 19 64 bit
HP xw4600-workstation
NVIDIA Corporation G84GL [Quadro FX 1700] (rev a1)
4gb ram Dual core
Canada

mellobob
Level 3
Level 3
Posts: 122
Joined: Wed Aug 14, 2013 1:20 pm

Re: Scrollbars smaller and smaller

Post by mellobob » Sun Mar 11, 2018 10:01 pm

I just created a file

.config/gtk-3.0/gtk.css

and put some size info there.

.scrollbar {
-GtkScrollbar-has-backward-stepper: true;
-GtkScrollbar-has-forward-stepper: true;
-GtkRange-slider-width: 15;
-GtkRange-stepper-size: 8;
}

I've not had a chance to try this with Mate, but it does work nicely with xfce4. BTW, this is not my idea ... I found it somewhere on the web.

User avatar
AZgl1500
Level 11
Level 11
Posts: 3531
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Scrollbars smaller and smaller

Post by AZgl1500 » Sun Mar 11, 2018 10:54 pm

Schultz wrote:
Sun Mar 11, 2018 2:33 pm
I think this can be done by editing a couple of files. The first is gtkrc, found in /usr/share/themes/Mint-X/gtk-2.0. The second is gtk-widgets.css, found in /usr/share/themes/Mint-X/gtk-3.0. They need to be opened as administrator to be edited. In those files, look for the line: GtkScrollbar::slider-width = (I'm pretty sure that's the one). After the equal sign, give it a higher number. I have mine set at 18 and 12 respectively.

:!: It might be a good idea to write down the original number or backup the unedited file in case things go south. :!:

NOTE: If you are using a different theme than Mint-X, you need to go into the folder for the theme you are using.
This works perfectly for my 75 year old eyes in 4.13.0-36 Cinnamon
Thank you

mellobob
Level 3
Level 3
Posts: 122
Joined: Wed Aug 14, 2013 1:20 pm

Re: Scrollbars smaller and smaller

Post by mellobob » Tue Mar 13, 2018 4:53 pm

mellobob wrote:
Sun Mar 11, 2018 10:01 pm
I just created a file

.config/gtk-3.0/gtk.css

and put some size info there.

.scrollbar {
-GtkScrollbar-has-backward-stepper: true;
-GtkScrollbar-has-forward-stepper: true;
-GtkRange-slider-width: 15;
-GtkRange-stepper-size: 8;
}

I've not had a chance to try this with Mate, but it does work nicely with xfce4. BTW, this is not my idea ... I found it somewhere on the web.
I tested this with mate, and it works just fine. Advantage over doing it this way instead of fiddling with theme files as root is that you don't need to fiddle with stuff as root and it will override the theme file you select if you decide to change themes.

User avatar
AZgl1500
Level 11
Level 11
Posts: 3531
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes sweeping down the plains
Contact:

Re: Scrollbars smaller and smaller

Post by AZgl1500 » Sun Apr 08, 2018 1:45 am

Schultz wrote:
Sun Mar 11, 2018 2:33 pm
I think this can be done by editing a couple of files. The first is gtkrc, found in /usr/share/themes/Mint-X/gtk-2.0. The second is gtk-widgets.css, found in /usr/share/themes/Mint-X/gtk-3.0. They need to be opened as administrator to be edited. In those files, look for the line: GtkScrollbar::slider-width = (I'm pretty sure that's the one). After the equal sign, give it a higher number. I have mine set at 18 and 12 respectively.

:!: It might be a good idea to write down the original number or backup the unedited file in case things go south. :!:

NOTE: If you are using a different theme than Mint-X, you need to go into the folder for the theme you are using.
In usr/share/themes/Mint-X/gtk-2.0.
I found that '20' to be a better value for my screen. gives scroll bar width of about 3/16" on my screen....
so much easier to find and use.... I am constantly having to scroll thru huge amounts of text looking for stuff.


In kernel 4.13.0-38, this file gtk-widgets.css does not have a scroll bar width line.

User avatar
smurphos
Level 12
Level 12
Posts: 4317
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Scrollbars smaller and smaller

Post by smurphos » Sun Apr 08, 2018 2:51 am

The theme versions are not related to your kernel version.

In Mint X's gtk-widgets.css look for this section and edit -GtkRange-slider-width: 10; & -GtkRange-slider-width: 5px;. The first is the width when hovering, the second is the default unhovered width.

Not every theme will look the same - many just have one big gtk.css file with everything in. Just search the theme for 'scrollbar' and you'll probably find the relevant section. Be aware that some themes will have application specific overrides as-well.

I would suggest not modding the system themes directly but make a copy of the system theme into ~/.themes and edit the copy. That way if you break the theme you still have a working master.

Code: Select all

/*************
 * scrollbar *
 *************/

.scrollbar {
    background-clip: padding-box;
    -GtkRange-trough-border: 2;
    -GtkScrollbar-has-backward-stepper: 0;
    -GtkScrollbar-has-forward-stepper: 0;
    -GtkRange-slider-width: 10;
    -GtkScrollbar-min-slider-length: 30;
    -GtkRange-stepper-spacing: 0;
    -GtkRange-trough-under-steppers: 1;
}

.scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
    opacity: 0.4;
    -GtkRange-slider-width: 5px;
    background-image: none;
    border: none;
}
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

bluesberryinn
Level 1
Level 1
Posts: 31
Joined: Mon Jan 21, 2019 10:06 am

Re: Scrollbars smaller and smaller

Post by bluesberryinn » Sun Jan 27, 2019 8:23 am

HELP! Mint 19.1 won't let me edit those files and it has no way that I can see to open as administrator. In properties, it says "you are not the owner so you can't change the permissions."

So do I go blind using Mint's tiny razor thin scroll bars? Or do I need to go back to Windows? I hope not

User avatar
Schultz
Level 7
Level 7
Posts: 1613
Joined: Thu Feb 25, 2016 8:57 pm

Re: Scrollbars smaller and smaller

Post by Schultz » Sun Jan 27, 2019 1:30 pm

bluesberryinn wrote:
HELP! Mint 19.1 won't let me edit those files and it has no way that I can see to open as administrator.
Since this is in Mate section of the forums, I'll assume that's the DE you're using. Simply right click the file, and there should be an option to "Open as administrator."

User avatar
smurphos
Level 12
Level 12
Posts: 4317
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Scrollbars smaller and smaller

Post by smurphos » Mon Jan 28, 2019 2:18 am

bluesberryinn wrote:
Sun Jan 27, 2019 8:23 am
HELP! Mint 19.1 won't let me edit those files and it has no way that I can see to open as administrator. In properties, it says "you are not the owner so you can't change the permissions."

So do I go blind using Mint's tiny razor thin scroll bars? Or do I need to go back to Windows? I hope not
apt install caja-admin if the right click to open as Admin option is not available in Mate.

Note I personally recommend copying system themes to your home themes directory ~./themes to edit them. There is no requirement for admin rights doing it this way.

Also there is another way of overriding the values set by your GTK theme that is not theme specific - viewtopic.php?p=1571430#p157143
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

DSHornet
Level 1
Level 1
Posts: 10
Joined: Fri Nov 30, 2018 11:42 am
Location: Alabama, USA

Re: Scrollbars smaller and smaller

Post by DSHornet » Mon Sep 02, 2019 3:10 pm

This might be a revival of an old thread but I'm having trouble with the too-thin scroll bar issue. Background: My main desktop computer is dual boot Mint/Win 7. I've been playing with Mint off-and-on for about a year with an old laptop but I want to get serious with the support for Win 7 ending in a few months. As I'm customizing Mint to be easier to use (especially for The Bride), I've run into a problem I know I'll need to correct. All the scroll bars are much too narrow.

I discovered how to get to the /usr/share/themes/mint-x/gtk-2.0/gtkrc file and can suck it into the text editor for modification. The problem is, I can't save the file. I can only "Save-as." Right-clicking on the file name does not show an option about opening it as an administrator.

When I installed Mint on my primary desktop two weeks ago, I made myself admin level, or at least I think I did. Why can't I save this file?

Don

PS: As a note for developers, I also need to increase the size of the buttons in the upper right corner. Please give us more options for customizing windows in the user interface. Terminal mode can be confusing, especially when the instructions as shown in so many forum posts don't seem to work.
.
One need never apologise for exercising the Golden Rule.
Mint 19.2 Cinnamon - Dual boot with Win7 - Old motherboard with 4 GB DDR2 RAM, AM2 CPU, 500 Gb Solid State Drive

DSHornet
Level 1
Level 1
Posts: 10
Joined: Fri Nov 30, 2018 11:42 am
Location: Alabama, USA

Re: Scrollbars smaller and smaller

Post by DSHornet » Fri Sep 06, 2019 3:13 pm

As an update to my previous post concerning scroll bar width, recently upgrading to Mint 19.2 has been a great help with this specific problem. Thanks to the developers for making it easier for us newbies.

Now there is a problem with my ~110 Gb Linux partition suddenly filling up almost completely after the upgrade, but that's on another thread.
.
One need never apologise for exercising the Golden Rule.
Mint 19.2 Cinnamon - Dual boot with Win7 - Old motherboard with 4 GB DDR2 RAM, AM2 CPU, 500 Gb Solid State Drive

Post Reply

Return to “MATE”