OSX transparent controls background (#26090) set transparent background on certain native controls, otherwise the background color is incorrect, see #26088 , also visible in nested groupboxes using generic approach as per Vadim’s suggestion
| ... | ... | @@ -34,8 +34,8 @@ bool wxCheckBox::Create(wxWindow *parent, |
| 34 | 34 | m_labelOrig = m_label = label ;
|
| 35 | 35 | |
| 36 | 36 | WXValidateStyle( &style );
|
| 37 | - SetPeer(wxWidgetImpl::CreateCheckBox( this, parent, id, label, pos, size, style, GetExtraStyle() )) ;
|
|
| 38 | 37 | |
| 38 | + SetPeer(wxWidgetImpl::CreateCheckBox( this, parent, id, label, pos, size, style, GetExtraStyle() )) ;
|
|
| 39 | 39 | MacPostControlCreate(pos, size) ;
|
| 40 | 40 | |
| 41 | 41 | return true;
|
| ... | ... | @@ -399,6 +399,8 @@ bool wxWindowMac::Create(wxWindowMac *parent, |
| 399 | 399 | |
| 400 | 400 | m_hScrollBarAlwaysShown =
|
| 401 | 401 | m_vScrollBarAlwaysShown = HasFlag(wxALWAYS_SHOW_SB);
|
| 402 | + if ( HasTransparentBackground())
|
|
| 403 | + m_backgroundStyle = wxBG_STYLE_TRANSPARENT;
|
|
| 402 | 404 | |
| 403 | 405 | if ( m_peer != kOSXNoWidgetImpl )
|
| 404 | 406 | {
|
—
View it on GitLab.
You're receiving this email because of your account on gitlab.com. Manage all notifications · Help