X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80f3f3beb68c3aabfdf521e78b383c41399ac75e..8064223b7b1b3657363b7a635c381b9269d95e55:/src/mac/carbon/drawer.cpp diff --git a/src/mac/carbon/drawer.cpp b/src/mac/carbon/drawer.cpp index f12286af33..2c02dd4260 100644 --- a/src/mac/carbon/drawer.cpp +++ b/src/mac/carbon/drawer.cpp @@ -79,9 +79,8 @@ bool wxDrawerWindow::Create(wxWindow *parent, if (success) { // Use drawer brush. - m_macBackgroundBrush.MacSetTheme(kThemeBrushDrawerBackground); - ::SetThemeWindowBackground((WindowRef)m_macWindow, - m_macBackgroundBrush.MacGetTheme(), false); + SetBackgroundColour( wxColour( wxMacCreateCGColorFromHITheme( kThemeBrushDrawerBackground ) ) ); + ::SetThemeWindowBackground((WindowRef)m_macWindow, kThemeBrushDrawerBackground, false); // Leading and trailing offset are gaps from parent window edges // to where the drawer starts.