X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/170acdc90e9f92f8b8120fa6c04acdbf45c89582..c5ec19f4f5d7930be9e03b51db001ed1149e3f17:/wxPython/wx/lib/stattext.py?ds=inline diff --git a/wxPython/wx/lib/stattext.py b/wxPython/wx/lib/stattext.py index fddbf4e60e..54d7c64e93 100644 --- a/wxPython/wx/lib/stattext.py +++ b/wxPython/wx/lib/stattext.py @@ -137,7 +137,10 @@ class GenStaticText(wx.PyControl): dc.SetBackground(backBrush) dc.Clear() - dc.SetTextForeground(self.GetForegroundColour()) + if self.IsEnabled(): + dc.SetTextForeground(self.GetForegroundColour()) + else: + dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT)) dc.SetFont(self.GetFont()) label = self.GetLabel() style = self.GetWindowStyleFlag()