Use wxSYS_COLOUR_GRAYTEXT for disabled AUI buttons labels
This is more appropriate than wxSYS_COLOUR_INACTIVECAPTIONTEXT which just happened to be the same as wxSYS_COLOUR_GRAYTEXT under Mac, but this is not true elsewhere.
This commit is contained in:
@@ -354,7 +354,7 @@ void wxAuiGenericToolBarArt::DrawButton(
|
||||
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT));
|
||||
if (item.GetState() & wxAUI_BUTTON_STATE_DISABLED)
|
||||
{
|
||||
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_INACTIVECAPTIONTEXT));
|
||||
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT));
|
||||
}
|
||||
|
||||
if ( (m_flags & wxAUI_TB_TEXT) && !item.GetLabel().empty() )
|
||||
@@ -484,7 +484,7 @@ void wxAuiGenericToolBarArt::DrawDropDownButton(
|
||||
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_CAPTIONTEXT));
|
||||
if (item.GetState() & wxAUI_BUTTON_STATE_DISABLED)
|
||||
{
|
||||
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_INACTIVECAPTIONTEXT));
|
||||
dc.SetTextForeground(wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT));
|
||||
}
|
||||
|
||||
if ( (m_flags & wxAUI_TB_TEXT) && !item.GetLabel().empty() )
|
||||
|
Reference in New Issue
Block a user