Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to configure editor scrollbar to be opaque #48153

Open
killerkalamari opened this issue Apr 18, 2018 · 17 comments
Open

Option to configure editor scrollbar to be opaque #48153

killerkalamari opened this issue Apr 18, 2018 · 17 comments
Labels
editor-scrollbar feature-request Request for new features or functionality
Milestone

Comments

@killerkalamari
Copy link

Currently, if editor.renderLineHighlight is set to "line" or "all", the highlight extends into the scrollbar. It would be helpful if it stopped just left of the scrollbar. Here is my rationale:

  • The line position isn't the same as the scrollbar position, except by coincidence. They are independent, however the highlighting suggests a linkage of some kind.
  • With certain color schemes it can be confusing at a quick glance to determine where on the scrollbar I actually am.

Example of intrusion of line highlight into the scrollbar:

image

Notice how similar the two highlighted areas look on the scrollbar? On closer inspection I can tell that I am actually at the lower point on the scrollbar, because of the brown horizontal line.

As a workaround, I could easily change the color of the highlight to prevent confusion. But, I'm having trouble understanding why the highlight extends into the scrollbar in the first place.

Thanks for your consideration!

VS Code 1.22.1

@vscodebot vscodebot bot added editor editor-core Editor basic functionality labels Apr 18, 2018
@alexdima
Copy link
Member

The reason is that the scrollbar is transparent. Even characters are visible through the scrollbar.

@alexdima alexdima changed the title Requesting that renderLineHighlight not extend into the scrollbar Option to configure editor scrollbar to be opaque Apr 19, 2018
@alexdima alexdima added feature-request Request for new features or functionality editor-rendering Editor rendering issues and removed editor editor-core Editor basic functionality labels Apr 19, 2018
@alexdima alexdima removed their assignment Apr 19, 2018
@alexdima alexdima added this to the Backlog milestone Apr 19, 2018
@rebornix rebornix removed their assignment Sep 4, 2018
@ghost
Copy link

ghost commented May 22, 2019

Having a transparent scrollbar is nuts. Who thinks editor text that is visible in the scrollbar is a good thing?

There is no option that I can find to get the editor to work like, well, ALL other editors...

@duffyjp
Copy link

duffyjp commented Jul 8, 2019

I'm not a frequent VSCode user-- Today I thought there was no horizontal scrollbar as it looks exactly like highlighted search text. I'd vote for a system native scrollbar.

@simonmurdock
Copy link

Today I was wondering where my horizontal scrollbar was, turns out it's there, but almost invisible

@alexdima alexdima added editor-scrollbar and removed editor-rendering Editor rendering issues labels Oct 23, 2019
@robertrossmann
Copy link
Contributor

This is now partially implemented by using a new colour contribution, editorOverviewRuler.background. Using this, you can set the background colour of the scrollbar, but the colour is only used when the minimap is visible and placed on the right side of the editor. For all other situations, the scrollbar is still transparent.

@BttCld
Copy link

BttCld commented Dec 10, 2021

Le scrollbar trasparenti sono una minchiata. Perche' non vi dedicate a qualcosa di piu' utile?
En:
The transparent scrollbars are a "minchiata". Why don't you dedicate yourself to something more useful?

@abbychau
Copy link
Contributor

I would like to have a scrollbar like this too!

image

@redhatturtle
Copy link

This is the worst scrollbar I have ever seen, please fix this asap

@abbychau
Copy link
Contributor

The reason is that the scrollbar is transparent. Even characters are visible through the scrollbar.

Why the characters are needed to be placed under the scrollbar? this is the problem.

@eightbit
Copy link

I don't see how one could advocate a transparent scroller as good UX design. It makes the editor significantly less efficient. At minimum please add a setting for scroller transparency.

@bploetz
Copy link

bploetz commented Sep 21, 2022

A work around (care of @jakequinter), add this to your settings.json and set it to the color you want, and the scrollbars will be that color and no longer transparent.

    "workbench.colorCustomizations": {
       "scrollbarSlider.background": "#333333",
       "scrollbarSlider.hoverBackground": "#333333",
       "scrollbarSlider.activeBackground": "#333333",
    }

@nstbayless
Copy link

nstbayless commented Jul 28, 2023

@bploetz's workaround only makes the scrollbar slider opaque.

A workaround to make the scrollbar itself opaque while not having a visible minimap:

"editor.minimap.maxColumn": 0,
"editor.minimap.enabled": true,

Make sure to enable the minimap for this to work.

Hopefully the underlying bug will be fixed eventually and this workaround won't be necessary.

@ps2goat
Copy link

ps2goat commented Aug 11, 2023

"workbench.colorCustomizations": {
"scrollbarSlider.background": "#333333",
"scrollbarSlider.hoverBackground": "#333333",
"scrollbarSlider.activeBackground": "#333333",
}

This seems to work, but only when the frame has focus. For example, my code area's scrollbar sliders disappear if my cursor is in any sidebar or the terminal.

@nstbayless
Copy link

@ps2goat try these settings:

"editor.minimap.maxColumn": 0,
"editor.minimap.enabled": true,

@ps2goat
Copy link

ps2goat commented Aug 11, 2023

I already have the minimap open, but I tried this anyway and it didn't work. The scrollbars scrollbar slider still disappears if the focus changes to a different area.

Update 2023-09-06: The issue I was attempting to fix here is now a new feature request issue

@snackbean
Copy link

snackbean commented Aug 11, 2023

@ps2goat scrollbar slider disappearing when losing focus is a different issue. This issue is about the scrollbar itself being transparent. I would suggest opening a new issue for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor-scrollbar feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests