Tweak rack labels

This commit is contained in:
blitzmann
2014-03-26 14:18:40 -04:00
parent 47ef37274b
commit 641f5999f0
2 changed files with 1 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class BaseName(ViewColumn):
return "%s (%s)" % (stuff.name, stuff.ship.item.name)
elif isinstance(stuff, Rack):
if service.Fit.getInstance().serviceFittingOptions["rackLabels"]:
return u'{} Rack'.format(Slot.getName(stuff.slot).capitalize())
return u'{} Slots'.format(Slot.getName(stuff.slot).capitalize())
else:
return ""
elif isinstance(stuff, Module):

View File

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