Make default background color transparent in wxOSX

This is needed for translucency effects, desktop background images
changing the toplevel window background tint.

Also don't erase background when no background color is specified.

Closes #26301.
This commit is contained in:
Stefan Csomor
2026-07-07 20:39:53 +02:00
committed by Vadim Zeitlin
parent 68cef639a5
commit 565553ee98
2 changed files with 21 additions and 1 deletions
+8
View File
@@ -133,6 +133,14 @@ public:
#endif
virtual wxVisualAttributes GetDefaultAttributes() const override
{
return GetClassDefaultAttributes(GetWindowVariant());
}
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
// implementation from now on
// --------------------------