Get rack headers bold again (courtesy of @RobinD42 - https://github.com/wxWidgets/Phoenix/issues/525)
This commit is contained in:
@@ -646,7 +646,7 @@ class FittingView(d.Display):
|
|||||||
slot = Slot.getValue(slotType)
|
slot = Slot.getValue(slotType)
|
||||||
slotMap[slot] = fit.getSlotsFree(slot) < 0
|
slotMap[slot] = fit.getSlotsFree(slot) < 0
|
||||||
|
|
||||||
font = (self.GetClassDefaultAttributes()).font
|
font = wx.Font(self.GetClassDefaultAttributes().font)
|
||||||
|
|
||||||
for i, mod in enumerate(self.mods):
|
for i, mod in enumerate(self.mods):
|
||||||
self.SetItemBackgroundColour(i, self.GetBackgroundColour())
|
self.SetItemBackgroundColour(i, self.GetBackgroundColour())
|
||||||
@@ -662,11 +662,10 @@ class FittingView(d.Display):
|
|||||||
if isinstance(mod, Rack) and \
|
if isinstance(mod, Rack) and \
|
||||||
sFit.serviceFittingOptions["rackSlots"] and \
|
sFit.serviceFittingOptions["rackSlots"] and \
|
||||||
sFit.serviceFittingOptions["rackLabels"]:
|
sFit.serviceFittingOptions["rackLabels"]:
|
||||||
# @ todo pheonix: SetWeight is causing a hard crash, possibly a wxPython bug?
|
font.SetWeight(wx.FONTWEIGHT_BOLD)
|
||||||
#font.SetWeight(wx.FONTWEIGHT_BOLD)
|
|
||||||
self.SetItemFont(i, font)
|
self.SetItemFont(i, font)
|
||||||
else:
|
else:
|
||||||
#font.SetWeight(wx.FONTWEIGHT_NORMAL)
|
font.SetWeight(wx.FONTWEIGHT_NORMAL)
|
||||||
self.SetItemFont(i, font)
|
self.SetItemFont(i, font)
|
||||||
|
|
||||||
self.Thaw()
|
self.Thaw()
|
||||||
|
|||||||
Reference in New Issue
Block a user