wxGauge incorrect color in Win32 dark mode (Issue #26767)

27 views
Skip to first unread message

PB

unread,
Jul 31, 2026, 11:48:51 AM (10 days ago) Jul 31
to wx-...@googlegroups.com, Subscribed
PBfordev created an issue (wxWidgets/wxWidgets#26767)

wxGauge can have wrong colors in dark mode, can be reproduced in the widgets sample:

wx-gauge-progress.gif (view on web)

However, it "fixes" itself in some situations, see the GIF above.

Can be also reproduced with the MRE:

#include <wx/wx.h>
#include <wx/gauge.h>

class MyApp : public wxApp
{
    bool OnInit() override
    {
        wxFrame* frame = new wxFrame(nullptr, wxID_ANY, "Test");
        wxGauge* gauge = new wxGauge(frame, wxID_ANY, 100); // will fill the frame

        gauge->SetValue(50);
        frame->Show();
        return true;
    }
}; wxIMPLEMENT_APP(MyApp);

BTW, is the very dark hover color for the thumb of wxSlider correct? Given the unfortunate situation Microsoft created on Windows, what is the reference to be used for "correct" colors: WinUI 3 (via the WinUI 3 Gallery application)?


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.Message ID: <wxWidgets/wxWidgets/issues/26767@github.com>

VZ

unread,
Aug 4, 2026, 7:11:06 PM (5 days ago) Aug 4
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26767)

According to the attached issue we can just disable theming and set the colours ourselves and I think we should just do it. If it works well enough for dotnet, it should work for us too.


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.Message ID: <wxWidgets/wxWidgets/issues/26767/5185616730@github.com>

PB

unread,
Aug 6, 2026, 2:31:51 AM (4 days ago) Aug 6
to wx-...@googlegroups.com, Subscribed
PBfordev left a comment (wxWidgets/wxWidgets#26767)

Just for the record, this affects also wxRendererNative::DrawGauge() as can be seen for example in the render sample.


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.Message ID: <wxWidgets/wxWidgets/issues/26767/5201188291@github.com>

VZ

unread,
Aug 9, 2026, 1:37:16 PM (13 hours ago) Aug 9
to wx-...@googlegroups.com, Subscribed

Closed #26767 as completed via 4ab4b5e.


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.Message ID: <wxWidgets/wxWidgets/issue/26767/issue_event/29188509998@github.com>

Reply all
Reply to author
Forward
0 new messages