Dusting off my hg knowledge applied the patch
hg import splitbutton_bgcolor.diff

Patch applied, checked context:

bool SplitButton::Create(wxWindow* parent, wxWindowID id, const wxString&
label, const wxPoint& pos, const wxSize& size, const wxString& name)
{
    if (!wxPanel::Create(parent, id, pos, size, wxBORDER_NONE |
wxTAB_TRAVERSAL))
    {
        return false;
    }
    m_label = label;

    if (size == wxDefaultSize)
    {
        UpdateMinSize();
    }
#ifdef __WXMAC__
    // explicitly set background color for Mac
    // otherwise DrawPushButton does not draw button correctly when dark
mode is enabled
*
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE));*
#endif

    Bind(wxEVT_PAINT, &SplitButton::OnPaint, this);
    Bind(wxEVT_LEFT_UP, &SplitButton::OnLeftButtonUp, this);
    Bind(wxEVT_LEFT_DOWN, &SplitButton::OnLeftButtonDown, this);
    Bind(wxEVT_KILL_FOCUS, &SplitButton::OnKillFocus, this);
    Bind(wxEVT_LEAVE_WINDOW, &SplitButton::OnMouseLeave, this);
    Bind(wxEVT_ENTER_WINDOW, &SplitButton::OnMouseEnter, this);

    m_dropDownMenu = new wxMenu();
    return true;
}

Unfortunately behaviour is still the same. In dark mode:
https://i.postimg.cc/9fnKLnWr/Screenshot-2023-06-01-at-19-59-52.png

Light mode works as expected the same as before.

On Thu, Jun 1, 2023 at 5:26 PM T. Modes <[email protected]> wrote:

> Attached is a patch which should try to set the background color to the
> correct color.
> Please test if this fixes the issue in dark mode and if it works also in
> non-dark mode.
>
> Thomas
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to the Google Groups
> "hugin and other free panoramic software" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hugin-ptx/3d19b13a-6417-4055-9b08-146b08aafb17n%40googlegroups.com
> <https://groups.google.com/d/msgid/hugin-ptx/3d19b13a-6417-4055-9b08-146b08aafb17n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/CAHk3tqiMx7F3XXHLewD4Ywvo0qH3q21RShpb8t5dhPHgMLLuog%40mail.gmail.com.

Reply via email to