X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b2680ced12cbbed16990007c5fa3ea7730700122..bb69632a56a827bed4cfae842bfffa88259ac1aa:/src/osx/carbon/settings.cpp diff --git a/src/osx/carbon/settings.cpp b/src/osx/carbon/settings.cpp index b2ceb365f1..be6c68ca1b 100644 --- a/src/osx/carbon/settings.cpp +++ b/src/osx/carbon/settings.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/settings.cpp +// Name: src/osx/carbon/settings.cpp // Purpose: wxSettings // Author: Stefan Csomor // Modified by: @@ -39,7 +39,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) { case wxSYS_COLOUR_WINDOW: #if wxOSX_USE_COCOA_OR_CARBON - resultColor = wxColour(wxMacCreateCGColorFromHITheme( kThemeBrushDocumentWindowBackground )) ; + resultColor = wxColour(wxMacCreateCGColorFromHITheme( 15 /* kThemeBrushDocumentWindowBackground */ )) ; #else resultColor = *wxWHITE; #endif @@ -55,7 +55,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) case wxSYS_COLOUR_BTNFACE: case wxSYS_COLOUR_MENUBAR: #if wxOSX_USE_COCOA_OR_CARBON - resultColor = wxColour(wxMacCreateCGColorFromHITheme(kThemeBrushDialogBackgroundActive)); + resultColor = wxColour(wxMacCreateCGColorFromHITheme( 3 /* kThemeBrushDialogBackgroundActive */)); #else resultColor = wxColour( 0xBE, 0xBE, 0xBE ) ; #endif @@ -85,7 +85,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) // NB: enable this case as desired colorBrushID = kThemeBrushAlternatePrimaryHighlightColor; #else - colorBrushID = kThemeBrushPrimaryHighlightColor; + colorBrushID = -3 /* kThemeBrushPrimaryHighlightColor */; #endif resultColor = wxColour( wxMacCreateCGColorFromHITheme(colorBrushID) ); #else @@ -110,7 +110,7 @@ wxColour wxSystemSettingsNative::GetColour(wxSystemColour index) case wxSYS_COLOUR_HIGHLIGHTTEXT : #if wxOSX_USE_COCOA_OR_CARBON { - wxColour highlightcolor( wxMacCreateCGColorFromHITheme(kThemeBrushPrimaryHighlightColor) ); + wxColour highlightcolor( wxMacCreateCGColorFromHITheme(-3 /* kThemeBrushPrimaryHighlightColor */) ); if ((highlightcolor.Red() + highlightcolor.Green() + highlightcolor.Blue() ) == 0) resultColor = *wxWHITE ; else