lite-xl icon indicating copy to clipboard operation
lite-xl copied to clipboard

Wider default scrollbar

Open benstigsen opened this issue 3 years ago • 7 comments

Usually when installing the newest version of lite-xl (or lite) I adjust the scrollbar width because by default it is very small. Instead in core/view.lua I change: return x >= sx - sw * 3 and x < sx + sw and y >= sy and y < sy + sh to return x >= sx - sw * 0.2 and x < sx + sw and y >= sy and y < sy + sh

core/style: style.scrollbar_size = common.round(4 * SCALE) to style.scrollbar_size = common.round(15 * SCALE)

I'm curious to see how many would be in favour of a wider scrollbar.

benstigsen avatar Jun 11 '21 15:06 benstigsen

AFAIK at least other 2 people 😛 I guess it could be possible to show it only on mouse hover?

redtide avatar Jun 11 '21 16:06 redtide

Hey, I am also favorable to a small increase in the scrollbar. I agree that the standard one is too small. Let's see what other people think of this proposal.

franko avatar Jun 11 '21 17:06 franko

I'm curious to see how many would be in favour of a wider scrollbar.

I'm also in favor of that or also

guess it could be possible to show it only on mouse hover?

Maybe make it thin and when mouse moves near the scrollbar position make it wider and introduce some style.scrollbar_size_hover , would also be nice to make the whole scrollbar area clickable for easy scrolling but not sure how hard that would be to implement.

jgmdev avatar Jun 11 '21 22:06 jgmdev

Not sure I'm a fan of the hover expansion. It would have to be smooth for me to use it, not just like an instant expansion.

In my own changes I make the scrollbar 5 times bigger which makes it match something like the scrollbar in browser. But even just a scrollbar with twice the width would still be quite a bit nicer.

would also be nice to make the whole scrollbar area clickable for easy scrolling but not sure how hard that would be to implement.

I do not think this would be the hardest to implement. The math should at least be relatively simple.

benstigsen avatar Jun 11 '21 22:06 benstigsen

I seldom use the scrollbar (I prefer keyboard navigation), but would also prefer if it was wider, more akin to what is offered by Visual Studio Code.

liquidev avatar Jun 21 '21 11:06 liquidev

I adjust the scrollbar width because by default it is very small

I should agree. It is awfully difficult to notice the scrollbar in maximised window.

The other way which might help it is to move the scrollbar slightly to the left of the border:

Screenshot (not of lite)

image

akinokonomi avatar Oct 06 '21 23:10 akinokonomi

Does #916 mitigate this?

Guldoman avatar Apr 21 '22 15:04 Guldoman

As @Guldoman mentioned #916 which is now merged into master should be a good solution for this so closing this issue since it hasn't been responded to so considering it solved.

jgmdev avatar Oct 23 '22 02:10 jgmdev