-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Allow extensions to use theme colors #26974
Comments
I added new API to vscode.d.ts: colors in decoration options. Check out the new type ThemeColor. It stands for a reference to a color in the color registry and can be used in decorations. |
Is there a way to get the actual color associated with a Plugins like jumpy and MetaGo whould benefit greatly from this. They render custom UI but they are not able to integrate it with the current color theme. The custom UI is created through an svg image but there is no way to use a |
There's currently no such API and I like to avoid adding it as it means bringing theme change notifications to the extension host as well. |
Some extensions contribute ui for example in html preview and decorations. It would be good if those colors could be sourced from the theme. Imagine you have a test coverage extension that out green/red indicators next to the line. These colors could be based on the diff editor addition/deletion colors.
The text was updated successfully, but these errors were encountered: