From fb91093ccbc5cdce206ec8087408eae4c05fb4ef Mon Sep 17 00:00:00 2001 From: ozone10 Date: Fri, 9 Jul 2021 18:19:29 +0200 Subject: [PATCH] Activate dark mode in Windows 11 Allow dark mode in Windows 11 insider build 22000 and later. Per this comment #10122 (comment) Fix #10136, Close #10135 --- PowerEditor/src/DarkMode/DarkMode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/DarkMode/DarkMode.cpp b/PowerEditor/src/DarkMode/DarkMode.cpp index dda806aac..4200ad827 100644 --- a/PowerEditor/src/DarkMode/DarkMode.cpp +++ b/PowerEditor/src/DarkMode/DarkMode.cpp @@ -246,7 +246,8 @@ constexpr bool CheckBuildNumber(DWORD buildNumber) buildNumber == 18363 || // 1909 buildNumber == 19041 || // 2004 buildNumber == 19042 || // 20H2 - buildNumber == 19043); // 21H1 + buildNumber == 19043 || // 21H1 + buildNumber >= 22000); // Windows 11 insider builds } void InitDarkMode()