Fix static box bgcolor when on wxPanel (MSW dark mode) (PR #24663)

16 views
Skip to first unread message

Blake-Madden

unread,
Jul 1, 2024, 11:31:48 AM (4 days ago) Jul 1
to wx-...@googlegroups.com, Subscribed

Under MSW dark mode, wxStaticBox will have a dark gray background when placed on a wxPanel. It seems that this is the color it is pulling from the parent wxPanel. Explicitly setting the panel's background color to the proper color under dark mode fixes it.

At first I thought of changing wxStaticBox to not use the parent's bgcolor, but perhaps this is a better approach in case their are other controls that also look at the parent's bgcolor. Fixing at the wxPanel level will fix all any of those.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/24663

Commit Summary

  • 847df27 Fix static box bgcolor when on wxPanel (MSW dark mode)

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24663@github.com>

Blake-Madden

unread,
Jul 1, 2024, 4:11:07 PM (4 days ago) Jul 1
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 1 commit.

  • ec768fd Fix the same issue in wxDialog


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24663/before/847df271606f6a9cc131c57fd910c53306627946/after/ec768fda39661174d2561e317026373a40bce173@github.com>

Blake-Madden

unread,
Jul 1, 2024, 9:22:42 PM (4 days ago) Jul 1
to wx-...@googlegroups.com, Push

@Blake-Madden pushed 1 commit.

  • 0ac73b4 Fix compiling under MSYS2


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24663/before/ec768fda39661174d2561e317026373a40bce173/after/0ac73b42901b60387cdafeb347dac8c9cd297b67@github.com>

Blake-Madden

unread,
Jul 3, 2024, 10:53:37 AM (2 days ago) Jul 3
to wx-...@googlegroups.com, Subscribed

I think the failures were just timeouts.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/24663/c2206404038@github.com>

Reply all
Reply to author
Forward
0 new messages