X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/902725eefee5a402d21d13b2630583ab28ae3931..b16de7461ac6d97b0b04a5ce4e73447925e93416:/src/mac/carbon/settings.cpp diff --git a/src/mac/carbon/settings.cpp b/src/mac/carbon/settings.cpp index a81eda8c62..bfb9e951b2 100644 --- a/src/mac/carbon/settings.cpp +++ b/src/mac/carbon/settings.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "settings.h" -#endif - #include "wx/wxprec.h" #include "wx/settings.h" @@ -76,7 +72,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) case wxSYS_COLOUR_HIGHLIGHT: { RGBColor hilite ; - LMGetHiliteRGB(&hilite) ; + GetThemeBrushAsColor( kThemeBrushPrimaryHighlightColor, 32, true, &hilite ); return wxColor( hilite.red >> 8 , hilite.green >> 8 , hilite.blue >> 8 ) ; } break ; @@ -94,7 +90,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) case wxSYS_COLOUR_HIGHLIGHTTEXT : { RGBColor hilite ; - LMGetHiliteRGB(&hilite) ; + GetThemeBrushAsColor( kThemeBrushPrimaryHighlightColor, 32, true, &hilite ); if ( ( hilite.red + hilite.green + hilite.blue ) == 0 ) return *wxWHITE ; else