Added missing font color change in ship/fit items - shipbrowser

This commit is contained in:
HomeWorld
2011-01-14 10:30:28 +02:00
parent 8ff77b765d
commit 900b8e85eb

View File

@@ -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))