We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why not using UxTheme #135 for dark mode if OS version >= Windows 10 Version 1809 (Build 17763)?
#135
Windows 10 Version 1809 (Build 17763)
enum PreferredAppMode { Default = 0, Dark = 1, Light = 2 }; typedef int(WINAPI* SetPreferredAppMode_t)(PreferredAppMode preferredAppMode); HMODULE hModule = LoadLibrary(L"uxtheme.dll"); if (hModule != NULL) { SetPreferredAppMode_t SetPreferredAppMode = (SetPreferredAppMode_t)GetProcAddress(hModule, MAKEINTRESOURCEA(135)); // Loading the #135 API SetPreferredAppMode(PreferredAppMode::Dark); if (SetPreferredAppMode == NULL) { FreeLibrary(hModule); } }
Renderings like
(Because the selected darker theme will be overwritten, the screenshot under light is used here.)
instead of
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Why not using UxTheme
#135
for dark mode if OS version >=Windows 10 Version 1809 (Build 17763)
?Renderings like
(Because the selected darker theme will be overwritten, the screenshot under light is used here.)
instead of
The text was updated successfully, but these errors were encountered: