Skip to content

Commit

Permalink
[libwin32darkmode] DarkMode.cpp: Assume any version of Windows 10 180…
Browse files Browse the repository at this point in the history
…9+ (and Windows 11) supports Dark Mode.

It definitely works on Win10 21H2 and Win11 22H2, and I don't expect
Microsoft to randomly break this for lulz anytime soon.
  • Loading branch information
GerbilSoft committed Nov 3, 2023
1 parent b0773d4 commit 7b69ab4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libwin32darkmode/DarkMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,16 @@ void FixDarkScrollBar(void)

static constexpr bool CheckBuildNumber(DWORD buildNumber)
{
/*
return (buildNumber == 17763 || // 1809
buildNumber == 18362 || // 1903
buildNumber == 18363 || // 1909
buildNumber == 19041); // 2004
*/

// Assume all versions of Windows 10 1809+,
// and Windows 11, support these Dark Mode functions.
return (buildNumber >= 17763);
}

/**
Expand Down

0 comments on commit 7b69ab4

Please sign in to comment.