Skip to content

Conversation

@majocha
Copy link
Contributor

@majocha majocha commented Nov 18, 2023

A quick and dirty stopgap solution for #16300.

This PR attempts to detect if VS is in dark mode by "looking" at window background color.
Tested only manually, but at first glance seems to work fine with all the new "UI refresh" themes.
Also reacts correctly to switching dark mode in Windows when "Use system setting" is selected in options.

All credit to Bing chat 😁.

@majocha majocha requested a review from a team as a code owner November 18, 2023 21:26
@vzarytovskii vzarytovskii merged commit 156e5d3 into dotnet:main Nov 20, 2023
@majocha majocha deleted the detect-darkmode branch November 21, 2023 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants