Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Is there a way for an extension to detect DarkMode theme for Visual Studio 2022? We have implemented ToolTips for our extension and we can't find a way to style the ToolTips according to the VS display theme. #40

Closed
Lazareena opened this issue Oct 17, 2021 · 2 comments

Comments

@Lazareena
Copy link

No description provided.

@olegtk
Copy link
Member

olegtk commented Oct 17, 2021

I think you can use IVsColorThemeService for that.
But in general a better approach is to either use predefined VS colors (such as EnvironmentColors or ThemedDialogColors:

Or if you prefer to define you own color, you can provide colors for predefined themes using https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/vsix-color-editor?view=vs-2019

@Lazareena
Copy link
Author

Thank you! I'll try these options out

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