Skip to content

Proof of Concept: User color theme overrides - #21981

Closed
Cody Hoover (hoovercj) wants to merge 1 commit into
microsoft:masterfrom
hoovercj:colorThemeOverrides
Closed

Cody Hoover (hoovercj) wants to merge 1 commit into
microsoft:masterfrom
hoovercj:colorThemeOverrides

Conversation

@hoovercj

Copy link
Copy Markdown
Member

This is a proof of concept implementation of user color theme overrides.

It exposes a configuration setting that would allow user overrides for all themes, or only for light or dark themes as seen in the gifs below.

This is PR that would satisfy my use case as described in this comment while having minimal impact on the performance and complexity of the theme service, but I understand that it might not fit with the vision of the team. If that is the case, I am happy to hear feedback and see what type of contribution would be accepted.

vscodethemeoverrides1
vscodethemeoverrides2

@mention-bot

Copy link
Copy Markdown

Cody Hoover (@hoovercj), thanks for your PR! By analyzing the history of the files in this pull request, we identified Erich Gamma (@egamma) and alexandrudima to be potential reviewers.

@msftclas

Cody Hoover (@hoovercj),
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@bpasero

Copy link
Copy Markdown
Contributor

I like this, especially if I think about our move towards more workbench colors in themes 👍

@aeschli

Copy link
Copy Markdown
Contributor

I like it! I'm currently coming up with a new JSON based theme format (for both workbench and editor colors) that also has the notation of extending an other theme.
Having that I'd suggest we allow that themes can also be defined in the settings.
One could define a full new theme, but also just modify a theme from an extension.

@hoovercj

Copy link
Copy Markdown
Member Author

It sounds like this is a good time to decide whether #22115 should be supported or not.

If the JSON format you decide easily separates editor and workbench elements, then it may be relatively easy to switch editor themes on per language basis.

If I'm not mistaken, each editor gets its own stylesheet, right?

@hoovercj

Cody Hoover (hoovercj) commented Mar 7, 2017 •

Copy link
Copy Markdown
Member Author

What is your suggestion for moving forward? Would you rather me clean this up and merge this soon and then you can modify it as you change the JSON theme scheme? Or would you rather park it for now and get back to me when the scheme work is done for me to patch up?

@aeschli

Copy link
Copy Markdown
Contributor

I think we close this PR for now as everything is going to change. We revisit the topic once we're further with the workbench theming and see where we end up regarding the file format.

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.

5 participants