mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 01:19:45 +08:00
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:
committed by
Vadim Zeitlin
parent
68cef639a5
commit
565553ee98
@@ -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
|
||||
// --------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user