diff -r 79cd11a7a66f src/hugin1/hugin/SplitButton.cpp
--- a/src/hugin1/hugin/SplitButton.cpp	Wed May 24 19:13:20 2023 +0200
+++ b/src/hugin1/hugin/SplitButton.cpp	Thu Jun 01 17:24:09 2023 +0200
@@ -43,6 +43,11 @@
     {
         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);
