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.
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);