[wxWidgets/wxWidgets] d93210: Fix drawing of wxCheckListBox in dark mode in wxMSW

0 views
Skip to first unread message

Steve Cornett

unread,
Jun 6, 2026, 9:17:41 PM (4 days ago) Jun 6
to wx-co...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/wxWidgets/wxWidgets
Commit: d93210dd5eaa359decc7f270bb1b8ca86f8b4495
https://github.com/wxWidgets/wxWidgets/commit/d93210dd5eaa359decc7f270bb1b8ca86f8b4495
Author: Vadim Zeitlin <va...@wxwidgets.org>
Date: 2026-06-07 (Sun, 07 Jun 2026)

Changed paths:
M src/msw/renderer.cpp

Log Message:
-----------
Fix drawing of wxCheckListBox in dark mode in wxMSW

Use "DarkMode_Explorer::Button" for the check box metrics and drawing as
"BUTTON" theme simply doesn't support them in dark mode and using it
resulted in check boxes in wxCheckListBox not being drawn at all.

Closes #26561.


Commit: f12b247d26b6a1f2d48e88f2892c51988acbb578
https://github.com/wxWidgets/wxWidgets/commit/f12b247d26b6a1f2d48e88f2892c51988acbb578
Author: Steve Cornett <21205494...@users.noreply.github.com>
Date: 2026-06-07 (Sun, 07 Jun 2026)

Changed paths:
M include/wx/msw/checkbox.h
M include/wx/msw/choice.h
M include/wx/msw/control.h
M include/wx/msw/listbox.h
M include/wx/msw/listctrl.h
M include/wx/msw/nonownedwnd.h
M include/wx/msw/notebook.h
M include/wx/msw/private/darkmode.h
M include/wx/msw/radiobut.h
M include/wx/msw/statbox.h
M include/wx/msw/stattext.h
M include/wx/msw/statusbar.h
M include/wx/msw/textctrl.h
M include/wx/msw/toolbar.h
M include/wx/msw/window.h
M src/msw/checkbox.cpp
M src/msw/choice.cpp
M src/msw/control.cpp
M src/msw/darkmode.cpp
M src/msw/headerctrl.cpp
M src/msw/listbox.cpp
M src/msw/listctrl.cpp
M src/msw/nonownedwnd.cpp
M src/msw/notebook.cpp
M src/msw/radiobut.cpp
M src/msw/statbox.cpp
M src/msw/stattext.cpp
M src/msw/statusbar.cpp
M src/msw/textctrl.cpp
M src/msw/toolbar.cpp
M src/msw/toplevel.cpp
M src/msw/window.cpp

Log Message:
-----------
Implement support for switching between light/dark modes in wxMSW

Replace MSWGetDarkModeSupport() with MSWSetDarkOrLightMode() which can
now be called to initialize dark mode for a window or to switch it from
one mode to the other and call this function when the mode changes.

Closes #26516.


Compare: https://github.com/wxWidgets/wxWidgets/compare/3c7930318201...f12b247d26b6

To unsubscribe from these emails, change your notification settings at https://github.com/wxWidgets/wxWidgets/settings/notifications
Reply all
Reply to author
Forward
0 new messages