]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/ownerdrwcmn.cpp
skip apple options
[wxWidgets.git] / src / common / ownerdrwcmn.cpp
index 28ebb7b1e5a8b64e650d66789f38330c49fb6180..967a5a285b81ba4e861f7b9ae0b27086fa30b928 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Marcin Malich
 // Modified by:
 // Created:     2009-09-22
-// RCS-ID:      $Id$
 // Copyright:   (c) 2009 Marcin Malich <me@malcom.pl>
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -86,9 +85,18 @@ void wxOwnerDrawnBase::GetColourToUse(wxODStatus stat, wxColour& colText, wxColo
     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);
     }
 }