Only set font color if explicitly set
Otherwise eg the default button doesn't get its white font color.
This commit is contained in:
parent
41d042516d
commit
37191f6f16
@ -2447,7 +2447,8 @@ void wxWidgetCocoaImpl::SetLabel( const wxString& title, wxFontEncoding encoding
|
|||||||
if ( [m_osxView respondsToSelector:@selector(setAttributedTitle:) ] )
|
if ( [m_osxView respondsToSelector:@selector(setAttributedTitle:) ] )
|
||||||
{
|
{
|
||||||
wxFont f = GetWXPeer()->GetFont();
|
wxFont f = GetWXPeer()->GetFont();
|
||||||
wxColour col = GetWXPeer()->GetForegroundColour();
|
// we should not override system font colors unless explicitly specified
|
||||||
|
wxColour col = GetWXPeer()->UseForegroundColour() ? GetWXPeer()->GetForegroundColour() : wxNullColour;
|
||||||
if ( f.GetStrikethrough() || f.GetUnderlined() || col.IsOk() )
|
if ( f.GetStrikethrough() || f.GetUnderlined() || col.IsOk() )
|
||||||
{
|
{
|
||||||
wxCFStringRef cf(title, encoding );
|
wxCFStringRef cf(title, encoding );
|
||||||
|
Loading…
Reference in New Issue
Block a user