- GetThemeBrushAsColor( kThemeBrushPrimaryHighlightColor, 32, true, &macRGB );
- if ((macRGB.red + macRGB.green + macRGB.blue) == 0)
- resultColor = *wxWHITE ;
- else
- resultColor = *wxBLACK ;
+ {
+ wxColour highlightcolor( wxMacCreateCGColorFromHITheme(kThemeBrushPrimaryHighlightColor) );
+ if ((highlightcolor.Red() + highlightcolor.Green() + highlightcolor.Blue() ) == 0)
+ resultColor = *wxWHITE ;
+ else
+ resultColor = *wxBLACK ;
+ }