2 #ifndef AVOID_WINRT_DEPENDENCY 4 #include <winrt/Windows.UI.ViewManagement.h> 13 #ifndef AVOID_WINRT_DEPENDENCY 15 using namespace winrt::Windows::UI::ViewManagement;
17 auto background = settings.GetColorValue(UIColorType::Background);
18 if (
int(background.R) +
int(background.G) +
int(background.B) < 384) {
29 #ifndef AVOID_WINRT_DEPENDENCY 31 using namespace winrt::Windows::UI::ViewManagement;
34 auto accent = settings.GetColorValue
35 (dark ? UIColorType::AccentLight1 : UIColorType::Accent);
bool OSReportsDarkThemeActive()
bool OSQueryAccentColour(int *r, int *g, int *b)