how to get current visual studio theme?

CoderMurphy 21 Reputation points
2022-02-17T03:43:34.143+00:00

language:C#
event "VSColorTheme.ThemeChanged"and it's event param not enough details to reference in MSDN.
thanks!

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,382 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 27,811 Reputation points Microsoft Vendor
    2022-02-18T09:37:28.23+00:00

    Hello @CoderMurphy ,

    Welcome to Microsoft Q&A forum.

    Please check if EnvironmentColors class and its properties meet your requirements. You can use these properties and replace ThemeResourceKey in VSColorTheme.GetThemedColor(ThemeResourceKey).

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

0 additional answers

Sort by: Most helpful