// Author: Marcin Malich
// Modified by:
// Created: 2009-09-22
-// RCS-ID: $Id$
// Copyright: (c) 2009 Marcin Malich <me@malcom.pl>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
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);
}
}