ysc3839/win32-darkmode

Dark mode is not supported

0xF5T9 opened this issue · 2 comments

Hi, I'm sorry if this is a dump question.
why it said "Dark mode is not supported" when I call InitDarkMode(), it happen even on the original code.
Is it has anything to do with my SDK version, am I missing something? Thank you
EDIT: I compiling the project with latest SDK & VS 2022

It checks Windows build number to prevent issues when running on a newer system.

constexpr bool CheckBuildNumber(DWORD buildNumber)
{
return (buildNumber == 17763 || // 1809
buildNumber == 18362 || // 1903
buildNumber == 18363 || // 1909
buildNumber == 19041); // 2004
}
You should temporary remove that check and test if it working fine on new system, and then add build number to that list. Or you can completely remove the check, but it may cause issues if Microsoft changes these APIs on newer system.

Thank you so much!