mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
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:
+7
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user