Fix for text style when turning rack labels on/off in preferences. Disabled bolding of label, as font does not work correctly at the moment.

This commit is contained in:
blitzmann
2014-03-25 21:45:36 -04:00
parent 1f37656169
commit 5df3672adf

View File

@@ -524,12 +524,16 @@ class FittingView(d.Display):
else: else:
self.SetItemBackgroundColour(i, self.GetBackgroundColour()) self.SetItemBackgroundColour(i, self.GetBackgroundColour())
if sFit.serviceFittingOptions["rackSlots"] and sFit.serviceFittingOptions["rackLabels"]: if i in self.blanks and sFit.serviceFittingOptions["rackSlots"] and sFit.serviceFittingOptions["rackLabels"]:
for i in self.blanks: #font = self.GetItemFont(i)
font = self.GetItemFont(i) #font.SetWeight(wx.FONTWEIGHT_BOLD)
font.SetWeight(wx.FONTWEIGHT_BOLD) #self.SetItemFont(i, font)
self.SetItemFont(i, font)
self.SetItemTextColour(i, wx.Colour(0, 51, 153)) self.SetItemTextColour(i, wx.Colour(0, 51, 153))
else:
#font = self.GetItemFont(i)
#font.SetWeight(wx.FONTWEIGHT_NORMAL)
#self.SetItemFont(i, font)
self.SetItemTextColour(i, wx.SystemSettings.GetColour( wx.SYS_COLOUR_WINDOWTEXT ) )
self.Thaw() self.Thaw()
self.itemCount = self.GetItemCount() self.itemCount = self.GetItemCount()