Closed raklaptudirm closed 2 years ago
Hmm I don't see the advantage which that would bring. Imo that would probably just make the website more clunky. Custom scroll-bars also work somewhat different in different browsers.
I was thinking about nothing too special, just something matching the color theme.
Hmm, the problem with that is that the CSS for changing the scrollbar color is different for every browser and a pain in the ass to get right, even for simple things like changing the color.
Chrome, Edge, Safari and Opera support the ::-webkit-scrollbar
pseudo element, which I believe should cover most major browsers.
But Firefox :( ...
Well, for firefox it will just be the default scrollbar, so we are not losing anything. Or you could do this and add support separately.
Hmm, I've tested it out a bit on the colored_scrollbar branch and it looks good in Firefox but pretty bad in chrome. Here's a preview: https://website-eipqoq7f6-thealgorithms.vercel.app/. So I would say we should just keep the native scrollbar which already looks pretty good imo (at least on Firefox/Linux).
But do you maybe have some better colors/other styles which we could try which don't look as bad as mine in chrome?
They look the same in both the browsers to me though
Chrome: Firefox:
Ah probably because Firefox actually respects how the native scrollbar looks.
Uh, so where does this leave us?
Hm, imo the native scrollbar just looks better, especialy in the light mode
You can preserve the native look in light mode, but for dark mode I think we should change it.
Also, I suggest you make the actual scroller a light shade of gray like #bbbbbb
in light mode.
Hmm but even if we do that, I think the native scrollbar just looks better. In the custom scrollbar some key things are just missing, like the little arrows on the top and bottom, and the changing colors when you click or hover the scrollbar.
I think we should do a poll in the server, see what everyone thinks, and then decide from that ¯_(ツ)_/¯
Sure
@maltejur
Description of the feature request
The scroll-bar could be customized for a better overall look of the website.
Add screenshots of the feature request (if applicable)
No response
Additional information/context
No response