Some color values in wxDarkModeSettings::GetColour() do not match what I see with supplied apps in Windows 11 25H2, uncustomized dark mode.
To determine color values, I used the Snipping Tool to capture an actual color shown, pasted into Paint, used the "Color picker" tool, and clicked the "Edit colors" button to see the RGB value.
Proposed changes:
diff --git a/src/msw/darkmode.cpp b/src/msw/darkmode.cpp
index 9ff28b6fe8..39218e6ad5 100644
--- a/src/msw/darkmode.cpp
+++ b/src/msw/darkmode.cpp
@@ -312,11 +312,13 @@ wxColour wxDarkModeSettings::GetColour(wxSystemColour index)
case wxSYS_COLOUR_ACTIVECAPTION:
case wxSYS_COLOUR_APPWORKSPACE:
- case wxSYS_COLOUR_INFOBK:
case wxSYS_COLOUR_LISTBOX:
case wxSYS_COLOUR_WINDOW:
return wxColour(0x202020);
+ case wxSYS_COLOUR_INFOBK:
+ return wxColour(0x2d2d2d);
+
case wxSYS_COLOUR_BTNTEXT:
case wxSYS_COLOUR_CAPTIONTEXT:
case wxSYS_COLOUR_HIGHLIGHTTEXT:
@@ -325,7 +327,7 @@ wxColour wxDarkModeSettings::GetColour(wxSystemColour index)
case wxSYS_COLOUR_LISTBOXTEXT:
case wxSYS_COLOUR_MENUTEXT:
case wxSYS_COLOUR_WINDOWTEXT:
- return wxColour(0xe0e0e0);
+ return *wxWHITE;
case wxSYS_COLOUR_HOTLIGHT:
return wxColour(0xe48435);
@@ -345,10 +347,12 @@ wxColour wxDarkModeSettings::GetColour(wxSystemColour index)
case wxSYS_COLOUR_LISTBOXHIGHLIGHT:
return wxColour(0x626262);
- case wxSYS_COLOUR_HIGHLIGHT:
case wxSYS_COLOUR_MENUHILIGHT:
return wxColour(0x9e5315);
+ case wxSYS_COLOUR_HIGHLIGHT:
+ return wxColour(0x505050);
+
case wxSYS_COLOUR_BTNHIGHLIGHT:
return wxColour(0x777777);
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()