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

[FIX] Update diff highlighting #328

Merged
merged 3 commits into from
Jan 3, 2023
Merged

[FIX] Update diff highlighting #328

merged 3 commits into from
Jan 3, 2023

Conversation

Mekomancer
Copy link
Contributor

@Mekomancer Mekomancer commented Oct 11, 2022

Closes #325

@changeset-bot
Copy link

changeset-bot bot commented Oct 11, 2022

🦋 Changeset detected

Latest commit: ed605f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
github-vscode-theme Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Mekomancer Mekomancer marked this pull request as ready for review October 11, 2022 00:41
@lukasoppermann
Copy link
Contributor

lukasoppermann commented Oct 11, 2022

Hey @Mekomancer I think this sadly does not work because there are a lot of possible layering problems where this color is layered on top of other things that need to be visible through the color.

I think @simurai can let us know if my assumption is correct or not.

@simurai
Copy link
Contributor

simurai commented Oct 13, 2022

where this color is layered on top of other things

👍 Yes, most of the backgrounds need to be semi-transparent so that underlaying layers remain visible. Things like selections or bracket/word matcher. From the VS Code docs:

The color must not be opaque so as not to hide underlying decorations.

It's a shame we can't use the colors from Primitives, but the VS Code theme is a bit an edge case in that regard.

@simurai
Copy link
Contributor

simurai commented Jan 2, 2023

Took another look. The current diff should already have more contrast than the screenshots in #325, but with 1be76bb I increased the contrast for diff colors a bit more, but still kept it semi-transparent. Here the changes:

github.com Before After
dotcom before after
dotcom-d before-d after-d

@simurai simurai merged commit 90c3b39 into primer:main Jan 3, 2023
@primer-css primer-css mentioned this pull request Jan 3, 2023
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

Successfully merging this pull request may close these issues.

Contrast problem in diffeditor
3 participants