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

Provide access to theme colours from extensions #67416

Closed
Gruntfuggly opened this issue Jan 29, 2019 · 4 comments
Closed

Provide access to theme colours from extensions #67416

Gruntfuggly opened this issue Jan 29, 2019 · 4 comments
Assignees
Labels
themes Color theme issues

Comments

@Gruntfuggly
Copy link

Gruntfuggly commented Jan 29, 2019

It would be great if there was a mechanism to get the current themed colours by an extension.

e.g. something along the lines of:
vscode.window.getThemeColor( id: string )

and then having a method of ThemeColor that returns the rgb(a). That way extensions could match colours to themes.

At the moment I have to use a configuration setting...

@vscodebot
Copy link

vscodebot bot commented Jan 29, 2019

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@vscodebot vscodebot bot added the themes Color theme issues label Jan 29, 2019
@usernamehw
Copy link
Contributor

There is one method (only it just returns reference and not rgb):

new vscode.ThemeColor('activityBar.background')

@Gruntfuggly
Copy link
Author

Yeh, that gets you half way, but you can only use it as input into other API calls...

@aeschli
Copy link
Contributor

aeschli commented Jan 30, 2019

duplicate of #32813

@aeschli aeschli closed this as completed Jan 30, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
themes Color theme issues
Projects
None yet
Development

No branches or pull requests

3 participants