Might have a fix for the button issue when in darkmode. Feel free to refine 
it.
https://i.postimg.cc/FKfBRYxH/Screenshot-2023-06-15-at-19-27-12.png

Download:
*https://bitbucket.org/Dannephoto/hugin/downloads/Hugin-2023-05-03_arm64.dmg 
<https://bitbucket.org/Dannephoto/hugin/downloads/Hugin-2023-05-03_arm64.dmg>*

In splitbutton.cpp:

















































*void SplitButton::OnPaint(wxPaintEvent& WXUNUSED(event)){    wxPaintDC 
dc(this);    wxSize size = GetSize();    const int width = size.GetWidth() 
- m_arrowButtonWidth;    // Draw first part of button    wxRect r1;    r1.x 
= 0;    r1.y = 0;    r1.width = width + 2;    r1.height = 
size.GetHeight();    wxRendererNative::Get().DrawPushButton(this, dc, r1, 
m_stateButton);    // Determine text color based on dark mode    wxColour 
textColor;#ifdef __WXMAC__    bool darkModeEnabled = 
wxSystemSettings::GetAppearance().IsDark();    if (darkModeEnabled)        
textColor = m_IsEnabled ? wxColour(0, 0, 0) : wxColour(192, 192, 192); // 
Black color for dark mode, if not enabled use gray    else        textColor 
= wxSystemSettings::GetColour(m_IsEnabled ? wxSYS_COLOUR_BTNTEXT : 
wxSYS_COLOUR_GRAYTEXT);#else    textColor = 
wxSystemSettings::GetColour(m_IsEnabled ? wxSYS_COLOUR_BTNTEXT : 
wxSYS_COLOUR_GRAYTEXT);#endif    dc.SetTextForeground(textColor);    // 
draw label and bitmap    if (HasBitmap())    {        dc.DrawLabel(m_label, 
m_bitmap, r1, wxALIGN_CENTER);    }    else    {        
dc.DrawLabel(m_label, r1, wxALIGN_CENTER);    };    // Draw second part of 
button    wxRect r2;    r2.x = width - 2;    r2.y = 0;    r2.width = 
m_arrowButtonWidth;    r2.height = size.GetHeight();    
wxRendererNative::Get().DrawPushButton(this, dc, r2, m_stateMenu);    
wxRendererNative::Get().DrawDropArrow(this, dc, r2, m_stateMenu);}*



git commit only for diff view purposes:
https://bitbucket.org/Dannephoto/hugin/commits/6cdffbb463c015adedf8e4a4c1fec9f910571ba4
söndag 4 juni 2023 kl. 17:42:42 UTC+2 skrev dudek53:

> How do you mean? Could you show me a way to break processing while doing 
> it?
>
> söndag 4 juni 2023 kl. 17:36:28 UTC+2 skrev [email protected]:
>
>> Not initializing glut before using it sounds scary...
>>
>

-- 
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/bf7ef7ce-aa55-4323-b4e5-9b29f832ea8bn%40googlegroups.com.

Reply via email to