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

Light theme diff issues #223

Closed
zepfietje opened this issue Sep 28, 2021 · 12 comments
Closed

Light theme diff issues #223

zepfietje opened this issue Sep 28, 2021 · 12 comments

Comments

@zepfietje
Copy link

Currently, selections inside a diff don't show in the light theme.
Also, the current line background highlight and highlight of text to show what specifically changed in the diff don't show.

I believe this is a regression, since it used to work correctly.

@jrieken
Copy link

jrieken commented Oct 26, 2021

Yeah, a regression and the second time it happened: #121.


FYI - in VS Code you can install another version and stick to 4.x until this is fixed

Screen Shot 2021-10-26 at 10 56 25

@jrieken
Copy link

jrieken commented Oct 26, 2021

ping @simurai

@simurai
Copy link
Contributor

simurai commented Jan 27, 2022

Originally posted by @ridjis in #240 (comment)


From The diff views could be improved a bit in "Light High Contrast". Maybe some colors need to be semi-transparent to still see the selection?

image
image

@maxbublik
Copy link

Just my 5 cents...
Special highlights for inserted/deleted symbols within modified lines are missing in GitHub Light Default theme.
But the highlights are present in the rest of the themes.

Light Default
GitHub Light Default

Dark Dimmed
GitHub Dark Dimmed

Dark Default
GitHub Dark Default

@jrieken
Copy link

jrieken commented Feb 7, 2022

Maybe some colors need to be semi-transparent to still see the selection?

Yes, that's required for some colors. /cc @misolori for advice and maybe also idea how we can enforce this in vs code

@miguelsolorio
Copy link
Contributor

The diff background colors definitely need transparency to let selection + highlights appear, the diffEditor.insertedTextBackground token on GitHub Light Default is @ 100% opacity:

CleanShot 2022-02-07 at 20 07 54@2x

Dimming this can help:

CleanShot 2022-02-07 at 20 09 10@2x


But also I think there might be some other issues going on the diff view as highlighting text for added/removed lines are fine when side by side:

CleanShot 2022-02-07 at 20 01 15@2x

but when in the diff view, some of the lines appear to be on separate layers:

CleanShot 2022-02-07 at 20 01 43@2x

This is a related but separate issue so I created microsoft/vscode#142468 to follow up on it.

@zepfietje
Copy link
Author

Recently a few others have reported this bug as well (#273, #277). Was wondering what's the status of this issue?

@hediet
Copy link

hediet commented May 18, 2022

GitHub light default:
image

GitHub light:
image

Light (Visual Studio):
image

As you can see (or not), GitHub light default uses the same color for selections and for added/changed lines.

@simurai
Copy link
Contributor

simurai commented Jul 12, 2022

This should be fixed by #287 and released as 6.2.0.

@simurai simurai closed this as completed Jul 12, 2022
@zepfietje
Copy link
Author

Awesome, thanks @simurai!
Should we wait for that PR to be merged manually?

@simurai
Copy link
Contributor

simurai commented Jul 14, 2022

Should we wait for that PR to be merged manually?

Yes, but 6.2.0 should be live now.

@zepfietje
Copy link
Author

Great, thanks for fixing, @simurai!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants