Draw the background color outside the list-items area on all Windows version, both below and behind the items, and when the list is empty.
Set the text foreground and background colors when custom drawing. So the disabled list will use the correct colors in list or icon view.
Fixes #25990
https://github.com/wxWidgets/wxWidgets/pull/25999
(1 file)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@vadz approved this pull request.
I didn't test it yet, but this looks good, so I'll try to test it and merge it soon, thank you!
> @@ -3471,16 +3476,16 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
const bool drawVRules = HasFlag(wxLC_VRULES);
// Check if we need to do anything ourselves: either draw the rules or, in
- // case of using dark mode under Windows 11, erase the unwanted separator
+ // case of using dark mode under Windows, erase the unwanted separator
Very minor, but it doesn't make sense to say "under Windows" in this Windows-only code:
⬇️ Suggested change- // case of using dark mode under Windows, erase the unwanted separator + // case of using dark mode, erase the unwanted separator
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent commented on this pull request.
> @@ -3471,16 +3476,16 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
const bool drawVRules = HasFlag(wxLC_VRULES);
// Check if we need to do anything ourselves: either draw the rules or, in
- // case of using dark mode under Windows 11, erase the unwanted separator
+ // case of using dark mode under Windows, erase the unwanted separator
Agreed, can you update this when merging?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Found another issue, when hRules/vRules are enabled, we also have to erase the background.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
And a regression of 4b2a57c (#25950). When resizing the column, and then moving the scrollbar right and left, it does not redraw correctly, investigating...
Screenshot.2025-11-30.000815.png (view on web)—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent pushed 3 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent pushed 3 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This is getting more and more changes, so testing is highly appreciated.
I added hot tracking in dark mode, but I don't really like the current colour. It is the closest colour I could find to the colour when hovering in the header. Maybe it should be more subtle/darker?
This change required using Explorer theme, to get all the custom draw calls. I don't see any side effects in Report view. In the other views items now have the bluish hover colour again, I could not find a way to use the same gray colour.
It is also possible to use Explorer in Report mode and DarkMode_Explorer in other modes, but I think having a bluish colour is better than having nothing.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent pushed 2 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent pushed 3 commits.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()