else
{
// fall back to default colors if none explicitly specified
- colText = m_colText.Ok() ? m_colText
- : wxSystemSettings::GetColour(wxSYS_COLOUR_MENUTEXT);
- colBack = m_colBack.Ok() ? m_colBack
+
+ if ( stat & wxODDisabled )
+ {
+ colText = wxSystemSettings::GetColour(wxSYS_COLOUR_GRAYTEXT);
+ }
+ else
+ {
+ colText = m_colText.IsOk() ? m_colText
+ : wxSystemSettings::GetColour(wxSYS_COLOUR_MENUTEXT);
+ }
+
+ colBack = m_colBack.IsOk() ? m_colBack
: wxSystemSettings::GetColour(wxSYS_COLOUR_MENU);
}
}