From 525c7c317383ea98a3a86f6d13ed7eeba15d6aba Mon Sep 17 00:00:00 2001 From: Jazzzny <75343012+Jazzzny@users.noreply.github.com> Date: Thu, 2 Nov 2023 20:10:44 -0400 Subject: [PATCH] Migrate to font_factory (#1118) --- resources/sys_patch/sys_patch_auto.py | 6 +++--- resources/wx_gui/gui_main_menu.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/sys_patch/sys_patch_auto.py b/resources/sys_patch/sys_patch_auto.py index a6482eb45..f10635396 100644 --- a/resources/sys_patch/sys_patch_auto.py +++ b/resources/sys_patch/sys_patch_auto.py @@ -16,7 +16,7 @@ from pathlib import Path from resources import utilities, updates, global_settings, network_handler, constants from resources.sys_patch import sys_patch_detect -from resources.wx_gui import gui_entry +from resources.wx_gui import gui_entry, gui_support class AutomaticSysPatch: @@ -104,8 +104,8 @@ Please check the Github page for more information about this release.""" sizer.AddSpacer(10) self.title_text = wx.StaticText(panel, label="A new version of OpenCore Legacy Patcher is available!") self.description = wx.StaticText(panel, label=f"OpenCore Legacy Patcher {version} is now available - You have {self.constants.patcher_version}{' (Nightly)' if not self.constants.commit_info[0].startswith('refs/tags') else ''}. Would you like to update?") - self.title_text.SetFont(wx.Font(19, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_BOLD, False, ".AppleSystemUIFont")) - self.description.SetFont(wx.Font(13, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_NORMAL, wx.FONTWEIGHT_NORMAL, False, ".AppleSystemUIFont")) + self.title_text.SetFont(gui_support.font_factory(19, wx.FONTWEIGHT_BOLD)) + self.description.SetFont(gui_support.font_factory(13, wx.FONTWEIGHT_NORMAL)) self.web_view = wx.html2.WebView.New(panel, style=wx.BORDER_SUNKEN) html_code = html_css+html_markdown.replace("