I have seen that support for dark mode has been added in 3.1.3. I tried adding a comment on the page http://wxwidgets.org/news/2019/10/wxwid ... -released/ but it seems to have been marked as spam.
I have built this under Mojave and tried the following:
Code: Select all
Bind(wxEVT_SYS_COLOUR_CHANGED, &myFrame::OnSystemColourChanged, this);
void myFrame::OnSystemColourChanged(wxSysColourChangedEvent &event)
{
wxSystemAppearance s = wxSystemSettings::GetAppearance();
wxString dark = s.IsDark() ? "it's dark" : "it's light";
wxString m("System colour changed - ");
m += dark;
::wxMessageBox(m);
event.Skip();
}
I see that the widgets in the app (eg. list control, buttons) are correctly somehow being informed that the system colour has changed as they are changing but I cannot get my handler to hit.
Am I missing something obvious?