Vixen
dd8b0a81
csharp
public static class WindowsAppearance

What appearance Windows is set to, out of the Personalize key.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

AppsUseLightTheme and not SystemUsesLightTheme. Windows carries two switches under one settings page: the second one is the taskbar and the Start menu, the first one is applications. A window is an application, so the first is the one that answers what an application's own palette should be — and users do set them differently, which is why reading the wrong one is a bug nobody can reproduce.

⚠ The value is light, so it inverts. One means light and zero means dark, which is the reverse of every other flag in this file and is exactly the reading mistake that would ship a dark application to a light desktop.

Absent on Windows builds older than 1809, where the whole feature did not exist. That reads as Light and not Unknown: a Windows with no dark mode is a Windows that is light, and reporting no preference there would leave an application choosing for itself on a system that has already answered.

Methods (1)

Used by (1)

  • DesktopAppearanceVixen.Platform.Desktop