beetlebug

The dark menus of Windows

src/platform/windark.zig gives the menu bar and the popup menus of Windows the dark look. Microsoft documents no call for it, so the knowledge comes from these sources. ztk copies no code from them.

Source License What ztk uses
win32-darkmode, a sample of the dark mode of Win32 by ysc3839 MIT The ordinals of uxtheme.dll: AllowDarkModeForWindow (133), SetPreferredAppMode (135) with its values, and FlushMenuThemes (136), and build 18362 as the first build with these meanings.
UAH menu bar, a sample of a custom menu bar by adzm MIT The messages WM_UAHDRAWMENU (0x91) and WM_UAHDRAWMENUITEM (0x92), the layout of UAHMENU, UAHMENUITEM, and UAHDRAWMENUITEM, and the light line under the bar that the default window procedure draws at WM_NCPAINT and WM_NCACTIVATE.
The menus of Windows 11 in dark mode The colors of the bar, of an item under the pointer, and of an open item.