From 900b8e85eb09104b8ce40cfeb140b7cb4831f9c5 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 14 Jan 2011 10:30:28 +0200 Subject: [PATCH] Added missing font color change in ship/fit items - shipbrowser --- gui/shipBrowser.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 45f621639..42ff4e9f2 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1282,6 +1282,11 @@ class ShipItem(SBItem): def DrawItem(self, mdc): rect = self.GetRect() + windowColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW) + textColor = colorUtils.GetSuitableColor(windowColor, 1) + + mdc.SetTextForeground(textColor) + self.UpdateElementsPos(mdc) self.toolbar.SetPosition((self.toolbarx, self.toolbary)) @@ -1654,6 +1659,11 @@ class FitItem2(SBItem): def DrawItem(self, mdc): rect = self.GetRect() + windowColor = wx.SystemSettings_GetColour(wx.SYS_COLOUR_WINDOW) + textColor = colorUtils.GetSuitableColor(windowColor, 1) + + mdc.SetTextForeground(textColor) + self.UpdateElementsPos(mdc) self.toolbar.SetPosition((self.toolbarx, self.toolbary))