tweak font sizes
This commit is contained in:
@@ -20,6 +20,7 @@ from gui.bitmap_loader import BitmapLoader
|
||||
from gui.utils import draw
|
||||
from gui.utils import color as color_utils
|
||||
from service.fit import Fit
|
||||
from gui.utils import fonts
|
||||
|
||||
_PageChanging, EVT_NOTEBOOK_PAGE_CHANGING = wx.lib.newevent.NewEvent()
|
||||
_PageChanged, EVT_NOTEBOOK_PAGE_CHANGED = wx.lib.newevent.NewEvent()
|
||||
@@ -357,7 +358,7 @@ class _TabRenderer:
|
||||
self.tab_bitmap = None
|
||||
self.tab_back_bitmap = None
|
||||
self.padding = 4
|
||||
self.font = wx.Font(8, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False)
|
||||
self.font = wx.Font(fonts.NORMAL, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False)
|
||||
|
||||
self.tab_img = img
|
||||
self.position = (0, 0) # Not used internally for rendering - helper for tab container
|
||||
@@ -1322,7 +1323,7 @@ class PFNotebookPagePreview(wx.Frame):
|
||||
self.padding = 15
|
||||
self.transp = 0
|
||||
|
||||
hfont = wx.Font(8, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False)
|
||||
hfont = wx.Font(fonts.NORMAL, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False)
|
||||
self.SetFont(hfont)
|
||||
|
||||
tx, ty = self.GetTextExtent(self.title)
|
||||
@@ -1384,7 +1385,7 @@ class PFNotebookPagePreview(wx.Frame):
|
||||
mdc.SetBackground(wx.Brush(color))
|
||||
mdc.Clear()
|
||||
|
||||
font = wx.Font(8, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False)
|
||||
font = wx.Font(11, wx.FONTFAMILY_SWISS, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False)
|
||||
mdc.SetFont(font)
|
||||
|
||||
x, y = mdc.GetTextExtent(self.title)
|
||||
|
||||
Reference in New Issue
Block a user