Is there a programming way to access the system theme (i.e., theme for Windows)?
The similar question #UWP get system theme (Light/Dark)
is answered here:
var DefaultTheme = new Windows.UI.ViewManagement.UISettings();
var uiTheme = DefaultTheme.GetColorValue(Windows.UI.ViewManagement.UIColorType.Background).ToString();
But as tipa
comments, the accepted answer suggests a way to access the theme for applications, not the theme for Windows.
Therefore, I wonder if there are other ways to access the system theme.