Skip to content

Commit

Permalink
Allow private Win32 dark mode APIs on Windows 11 build 22623
Browse files Browse the repository at this point in the history
This increases the maximum allowed build number for private Win32 dark mode APIs to build 22623 (a beta channel version).
  • Loading branch information
reupen committed Dec 22, 2022
1 parent ee52855 commit 28349d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
foobar2000 API on foobar2000 1.6.1 and newer.
[[#647](https://github.com/reupen/columns_ui/pull/647)]

- Dark menus were enabled on Windows 11 build 22623.
[[#649](https://github.com/reupen/columns_ui/pull/649)]

### Bug fixes

- A bug where ampersands didn’t render correctly in tab names in the Playlist
Expand Down
2 changes: 1 addition & 1 deletion foo_ui_columns/dark_mode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bool are_private_apis_allowed()
if (osvi.dwMajorVersion != 10 || osvi.dwMinorVersion != 0)
return false;

return osvi.dwBuildNumber >= 19041 && osvi.dwBuildNumber <= 22622;
return osvi.dwBuildNumber >= 19041 && osvi.dwBuildNumber <= 22623;
}

void set_app_mode(PreferredAppMode mode)
Expand Down

0 comments on commit 28349d6

Please sign in to comment.