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

Allow access of token colors in webviews #159367

Closed
maziac opened this issue Aug 27, 2022 · 4 comments
Closed

Allow access of token colors in webviews #159367

maziac opened this issue Aug 27, 2022 · 4 comments
Assignees

Comments

@maziac
Copy link

maziac commented Aug 27, 2022

Hi,

when creating a Webviews it is possible to access the current colors via e.g.:
var(--vscode-editor-foreground)

It would be helpful if it would be possible as well to get the token colors from syntax highlighting the same way, i.e. from the themes.
E.g. I would like to get the color used for comments in source code or others.

@mjbvz
Copy link
Collaborator

mjbvz commented Aug 28, 2022

Duplicate of #32813

@mjbvz mjbvz marked this as a duplicate of #32813 Aug 28, 2022
@mjbvz mjbvz closed this as completed Aug 28, 2022
@maziac
Copy link
Author

maziac commented Aug 29, 2022

Hmm, I read carefully through the duplicate but I still can't figure out how to do it in web views or if it is possible at all.
Do you have a simple example like that var(--vscode-editor-foreground) but for e.g. the 'comment' color?

@mjbvz
Copy link
Collaborator

mjbvz commented Aug 29, 2022

@maziac It's not possible at the moment

@maziac
Copy link
Author

maziac commented Aug 29, 2022

Thanks for clarification.
But "at the moment" seems like a euphemism. The feature request is open since 2017 :-)
So I guess this will most likely not be implemented.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants