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

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

Merged
merged 3 commits into from
Feb 4, 2020
Merged

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

merged 3 commits into from
Feb 4, 2020

Conversation

robertrossmann
Copy link
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

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
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