git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28025
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
fontStyle.just = teJustRight ;
fontStyle.just = teJustRight ;
- fontStyle.foreColor = MAC_WXCOLORREF(GetForegroundColour().GetPixel() ) ;
- fontStyle.flags |= kControlUseForeColorMask ;
+ // we only should do this in case of a non-standard color, as otherwise 'disabled' controls
+ // won't get grayed out by the system anymore
+
+ if ( GetForegroundColour() != *wxBLACK )
+ {
+ fontStyle.foreColor = MAC_WXCOLORREF(GetForegroundColour().GetPixel() ) ;
+ fontStyle.flags |= kControlUseForeColorMask ;
+ }
::SetControlFontStyle( *m_peer , &fontStyle );
Refresh() ;
::SetControlFontStyle( *m_peer , &fontStyle );
Refresh() ;