From: Benjamin Williams Date: Sun, 24 Aug 2008 10:56:51 +0000 (+0000) Subject: don't use MacSetTheme() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c95340c23404e3bc64993dc01d97969ed3c87e58 don't use MacSetTheme() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/aui/auibar.cpp b/src/aui/auibar.cpp index 6634ee8b85..5fc61e4b75 100644 --- a/src/aui/auibar.cpp +++ b/src/aui/auibar.cpp @@ -110,10 +110,8 @@ static wxBitmap MakeDisabledBitmap(wxBitmap& bmp) static wxColor GetBaseColor() { -#ifdef __WXMAC__ - wxBrush toolbarbrush; - toolbarbrush.MacSetTheme( kThemeBrushToolbarBackground ); - wxColor base_color = toolbarbrush.GetColour(); +#if defined( __WXMAC__ ) && wxOSX_USE_COCOA_OR_CARBON + wxColor base_colour = wxColour( wxMacCreateCGColorFromHITheme(kThemeBrushToolbarBackground)); #else wxColor base_color = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE); #endif