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 transparent sticky scroll background in the code peek panel #365

Closed
wants to merge 2 commits into from
Closed

Conversation

nNoidea
Copy link

@nNoidea nNoidea commented Apr 21, 2023

peekViewEditorStickyScroll.background uses the color of peekViewEditor.background and is also on top of it. peekViewEditor.background is an rgba color, which means that the sticky scroll features also becomes transparent and the text becomes unreadable when another text is underneath it.

peekViewEditor.background color seems like a normal rgb (without the alpha channel) color, but that's because the peek panel pushes away all the text underneath itself. The resulting color is the mix of peekViewEditor.background rgba and peekViewResult.background rgb values.

Since the sticky scroll feature always uses the color of the background of the panel it is in, this fix will take peekViewEditor.background and peekViewResult.background and mix them together into solid color and assign that color to the peekViewEditorStickyScroll.background to fix the issue.

Closes #361

Screenshots

Please provide before/after screenshots for any visual changes
Before:
image
After:
image
Before:
image
After:
image

Merge checklist

  • Tested in GitHub Light Default theme

Take a look at the Contribute section for more information on how test your changes locally.

@changeset-bot
Copy link

changeset-bot bot commented Apr 21, 2023

🦋 Changeset detected

Latest commit: 09d42d0

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

@nNoidea nNoidea marked this pull request as ready for review April 22, 2023 08:00
@nNoidea nNoidea changed the title Fixed issue #361 Combine transparent colors to get a solid one Apr 22, 2023
@nNoidea nNoidea changed the title Combine transparent colors to get a solid one Fix transparent sticky scroll background in the code peek panel Apr 22, 2023
@nNoidea
Copy link
Author

nNoidea commented Sep 19, 2023

Did I mess up the PR progress? The problem is still in the latest version.

@nNoidea nNoidea closed this by deleting the head repository Mar 12, 2024
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.

Text overflow when clicking "Go to definition"
1 participant