Use DarkMode_DarkTheme for wxListBox

use DarkMode_DarkTheme for wxListBox, if available. This improves the appearance of the simple border style
This commit is contained in:
Steve Cornett
2026-06-19 11:27:55 -07:00
parent 952fd47728
commit 441157ae04
+7 -2
View File
@@ -175,8 +175,13 @@ WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const
void wxListBox::MSWGetDarkModeSupport(MSWDarkModeSupport& support) const
{
support.themeName = L"Explorer";
support.themeId = L"ScrollBar";
// The default theme does not look good on starting with Windows 11
// build 26300.8553. DarkMode_DarkTheme looks OK and was available
// starting with Windows 11 build 26200.
if ( wxCheckOsVersion(10, 0, 26200) )
support.themeName = L"DarkMode_DarkTheme";
else
wxListBoxBase::MSWGetDarkModeSupport(support);
}
void wxListBox::MSWUpdateFontOnDPIChange(const wxSize& newDPI)