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

workbench.colorCustomizations properties need updating #831

Open
johnnyschneider opened this issue Oct 30, 2024 · 1 comment
Open

workbench.colorCustomizations properties need updating #831

johnnyschneider opened this issue Oct 30, 2024 · 1 comment
Labels

Comments

@johnnyschneider
Copy link

johnnyschneider commented Oct 30, 2024

Background Context

I wrote a JS script to pull in exclusively the Atom One Dark theme in it's stock config, and then parse the JSON results into their respective tokenColorCustomization, semanticTokenColorCustomization, and workbench.colorCustomization fields. I did this because I didn't want to pull in an extra extension with a bunch of themes I will never use. I also wanted to learn a lot more about custom theming in editors, and learn some JS. I have my own personal color preferences but One Dark Pro was a good starting point to build my theme off of.

Describe the bug

When copying the properties from https://github.com/Binaryify/OneDark-Pro/blob/master/themes/OneDark-Pro.json VS Code notified me that these properties

"editorOverviewRuler.addedBackground": "#109868",
"editorOverviewRuler.deletedBackground": "#9A353D",
"editorOverviewRuler.modifiedBackground": "#948B60",
"editorGroup.background": "#181a1f",
"welcomePage.buttonHoverBackground": "#404754"

are outright not allowed.

Property editorOverviewRuler.addedBackground is not allowed.
Property editorOverviewRuler.deletedBackground is not allowed.
Property editorOverviewRuler.modifiedBackground is not allowed.
Property editorGroup.background is not allowed.

It notified me that these two properties

"editorIndentGuide.activeBackground": "#c8c8c859",
"editorIndentGuide.background": "#3b4048",

are deprecated.

'editorIndentGuide.activeBackground' is deprecated. Use 'editorIndentGuide.activeBackground1' instead.
'editorIndentGuide.background' is deprecated. Use 'editorIndentGuide.background1' instead.

To Reproduce

Hardcode the One Dark Pro Theme into settings.json

Expected behavior

No settings generated by One Dark Pro highlighted in settings.json

Screenshots & Example Code

image

Desktop (please complete the following information):

  • OS: macOS Sonoma 14.7
  • VSCODE Version: 1.95.0
  • Theme version: master branch

Additional context

I expect the issue could be present in other themes. My script currently only works on the 4 themes found in the /themes folder. Please let me know if you need me to modify it to consume the themes inside src/themes/data. Gist with my script is here https://gist.github.com/johnnyschneider/f028986f4477b5f61fb3f3df17aba23a

@Binaryify
Copy link
Owner

thank for the reminder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants