Skip to content

Style diff editor's scrollable viewport just like any other scrollbar#89660

Merged
alexdima merged 3 commits intomicrosoft:masterfrom
robertrossmann:feat/diff-viewport-colour
Feb 4, 2020
Merged

Style diff editor's scrollable viewport just like any other scrollbar#89660
alexdima merged 3 commits intomicrosoft:masterfrom
robertrossmann:feat/diff-viewport-colour

Conversation

@robertrossmann
Copy link
Copy Markdown
Contributor

This styles the diff editor's scrollbar in the same way as any other scrollbar. As an added bonus, it now inherits the colour from the theme colour. 🎨

Before

The diff scrollbar on the right is always white and does not blend well with some themes.

diff viewport - white

After

The diff scrollbar on the right inherits the generic scrollbar's colour provided by the current theme. 🎨

diff viewport - themeable

Implementation notes

At this moment, I simply re-used the theme variables for regular scrollbar sliders as the thingy really looks a lot like a scrollbar slider. However, I am not opposed to the idea of introducing a completely new colour customisation variable for it.

Also note that after second thought I feel I should somehow use registerThemingParticipant() in the git builtin package to get this working, but I'll let you guide me first before I venture forth. ❤️

My ultimate goal is simply to have that diff overview thingy themeable.

@msftclas
Copy link
Copy Markdown

msftclas commented Jan 29, 2020

CLA assistant check
All CLA requirements met.

@alexdima alexdima added this to the February 2020 milestone Feb 4, 2020
@alexdima
Copy link
Copy Markdown
Member

alexdima commented Feb 4, 2020

Thank you!

@alexdima alexdima merged commit 64b2224 into microsoft:master Feb 4, 2020
@robertrossmann robertrossmann deleted the feat/diff-viewport-colour branch February 4, 2020 10:08
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants