| 71 | static HWND g_backgroundWindow; |
| 72 | |
| 73 | static Theme GetTheme(void) { |
| 74 | BOOL enabled = FALSE; |
| 75 | if (!$DwmIsCompositionEnabled || !$IsThemeActive || !SUCCEEDED($DwmIsCompositionEnabled(&enabled))) { |
| 76 | return ThemeClassic; |
| 77 | } |
| 78 | |
| 79 | if (enabled) { |
| 80 | DWORD light = 1; |
| 81 | if (AtLeastWin10_1809()) { |
| 82 | GetRegistryDword(HKEY_CURRENT_USER, REGPATH_WIN_PERSONALIZE, L"AppsUseLightTheme", 0, &light); |
| 83 | } |
| 84 | return light ? ThemeAeroLight : ThemeAeroDark; |
| 85 | } |
| 86 | |
| 87 | return $IsThemeActive() ? ThemeBasic : ThemeClassic; |
| 88 | } |
| 89 | |
| 90 | static void ConfigureWindow(void) { |
| 91 | HWND bannerWindow = GetDlgItem(g_hwndParent, 1046); |
no test coverage detected