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:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user