Fix transparent sticky scroll background in the code peek panel #365
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
peekViewEditorStickyScroll.background
uses the color ofpeekViewEditor.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 ofpeekViewEditor.background
rgba andpeekViewResult.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
andpeekViewResult.background
and mix them together into solid color and assign that color to thepeekViewEditorStickyScroll.background
to fix the issue.Closes #361
Screenshots
Please provide before/after screenshots for any visual changes
Before:
After:
Before:
After:
Merge checklist
GitHub Light Default
themeTake a look at the Contribute section for more information on how test your changes locally.