Reduce font size for chrome tabs
This commit is contained in:
@@ -149,6 +149,7 @@ class FittingView(d.Display):
|
||||
self.mainFrame.Bind(EVT_FIT_RENAMED, self.fitRenamed)
|
||||
self.mainFrame.Bind(EVT_FIT_REMOVED, self.fitRemoved)
|
||||
self.mainFrame.Bind(ITEM_SELECTED, self.appendItem)
|
||||
self.font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
||||
|
||||
self.Bind(wx.EVT_LEFT_DCLICK, self.removeItem)
|
||||
self.Bind(wx.EVT_LIST_BEGIN_DRAG, self.startDrag)
|
||||
@@ -661,9 +662,6 @@ class FittingView(d.Display):
|
||||
def slotColour(self, slot):
|
||||
return self.slotColourMap.get(slot) or self.GetBackgroundColour()
|
||||
|
||||
def getFittingFont(self):
|
||||
return wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
|
||||
|
||||
def refresh(self, stuff):
|
||||
"""
|
||||
Displays fitting
|
||||
@@ -683,8 +681,6 @@ class FittingView(d.Display):
|
||||
slot = Slot.getValue(slotType)
|
||||
slotMap[slot] = fit.getSlotsFree(slot) < 0
|
||||
|
||||
font = self.getFittingFont()
|
||||
|
||||
for i, mod in enumerate(self.mods):
|
||||
self.SetItemBackgroundColour(i, self.GetBackgroundColour())
|
||||
|
||||
@@ -699,11 +695,11 @@ class FittingView(d.Display):
|
||||
if isinstance(mod, Rack) and \
|
||||
sFit.serviceFittingOptions["rackSlots"] and \
|
||||
sFit.serviceFittingOptions["rackLabels"]:
|
||||
font.SetWeight(wx.FONTWEIGHT_BOLD)
|
||||
self.SetItemFont(i, font)
|
||||
self.font.SetWeight(wx.FONTWEIGHT_BOLD)
|
||||
self.SetItemFont(i, self.font)
|
||||
else:
|
||||
font.SetWeight(wx.FONTWEIGHT_NORMAL)
|
||||
self.SetItemFont(i, font)
|
||||
self.font.SetWeight(wx.FONTWEIGHT_NORMAL)
|
||||
self.SetItemFont(i, self.font)
|
||||
|
||||
self.Thaw()
|
||||
self.itemCount = self.GetItemCount()
|
||||
@@ -735,8 +731,7 @@ class FittingView(d.Display):
|
||||
tbmp = wx.Bitmap(16, 16)
|
||||
tdc = wx.MemoryDC()
|
||||
tdc.SelectObject(tbmp)
|
||||
font = self.getFittingFont()
|
||||
tdc.SetFont(font)
|
||||
tdc.SetFont(self.font)
|
||||
|
||||
columnsWidths = []
|
||||
for i in range(len(self.DEFAULT_COLS)):
|
||||
@@ -832,7 +827,7 @@ class FittingView(d.Display):
|
||||
mdc.SetBackground(wx.Brush(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOW)))
|
||||
mdc.Clear()
|
||||
|
||||
mdc.SetFont(font)
|
||||
mdc.SetFont(self.font)
|
||||
mdc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_WINDOWTEXT))
|
||||
|
||||
cx = padding
|
||||
|
||||
Reference in New Issue
Block a user