-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Let me theme diff editor's inserted text background differently in the scroll bar #66223
Comments
This is what I'd like to do: So I guess 2-4 more theme keys:
Provided that the scroll color is not purely based on the background color of the editor by design? I can try do this if I get some guidance on the approach and a code pointer. |
Could there be added another feature? Currently colors
That results - if I change color to be too transparent - the changed code is barely visible. Is it possible to split this in 2 themable colors:
Maybe it could work well with that that gutter color change... |
I find the text highlighting really distracting quite often and would like to be able to replace it with gutters instead. This would be especially helpful in the diff view. |
Just to reiterate @usernamehw's comment, this is what diffs look like in Material Theme (one of the most popular themes for VSCode). It looks like people are complaining there about this too. |
Do you know if there's been any progress on this? Or does anyone know of any workarounds? The lack of contrast between the background of the changed code within the line and the background of the entire line itself is extremely difficult for my eyes to distinguish. Compare, for example, against GitHub's diff view (for PRs etc.), which has far stronger contrast and is much more readable. |
This comment has been minimized.
This comment has been minimized.
…tor.removedTextGutterBackground` (#66223)
Together with changes for #103207 , I've added 6 new colors. e.g.
cc @aeschli for feedback on color names. I've added new "namespaces" |
…rOverview.removedForeground` (#66223)
Currently
diffEditor.insertedTextBackground
anddiffEditor.removedTextBackground
are used to color both the background in the editor and the decorations in the scrollbar. The problem is in order to make the text contrast good enough so that I can read the text, that make the color in the scroll bar unreadable.Before (good scroll bar, bad editor):
After (bad scroll bar, good editor):
Another way to fix this problem which is probably even better is to allow the background to only apply to the gutter and not the text, that way I can use a vibrant diff color and not worry about it clashing with every possible text color.
This is also a bit of an accessibility issue with the default theme:
The text was updated successfully, but these errors were encountered: