Skip to content

Commit a710869

Browse files
committed
minor ui refresh
1 parent 2cd692e commit a710869

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

opencore_legacy_patcher/wx_gui/gui_main_menu.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,22 @@ def _generate_elements(self) -> None:
7272
- Text: Copyright
7373
"""
7474

75+
# Logo
76+
logo = wx.StaticBitmap(self, bitmap=wx.Bitmap(str(self.constants.icns_resource_path / "OC-Patcher.icns"), wx.BITMAP_TYPE_ICON), pos=(-1, 0), size=(128, 128))
77+
logo.Centre(wx.HORIZONTAL)
78+
7579
# Title label: OpenCore Legacy Patcher v{X.Y.Z}
76-
title_label = wx.StaticText(self, label=f"OpenCore Legacy Patcher {'' if self.constants.special_build else ''}{self.constants.patcher_version}{' (Nightly)' if not self.constants.commit_info[0].startswith('refs/tags') else ''}", pos=(-1, 10))
77-
title_label.SetFont(gui_support.font_factory(19, wx.FONTWEIGHT_BOLD))
80+
title_label = wx.StaticText(self, label=f"OpenCore Legacy Patcher", pos=(-1, 128))
81+
title_label.SetFont(gui_support.font_factory(25, wx.FONTWEIGHT_BOLD))
7882
title_label.Centre(wx.HORIZONTAL)
7983

84+
version_label = wx.StaticText(self, label=f"Version {self.constants.patcher_version}{' (Nightly)' if not self.constants.commit_info[0].startswith('refs/tags') else ''}", pos=(-1, title_label.GetPosition()[1] + 32))
85+
version_label.SetFont(gui_support.font_factory(13, wx.FONTWEIGHT_NORMAL))
86+
version_label.Centre(wx.HORIZONTAL)
87+
version_label.SetForegroundColour(wx.Colour(128, 128, 128))
88+
8089
# Text: Model: {Build or Host Model}
81-
model_label = wx.StaticText(self, label=f"Model: {self.constants.custom_model or self.constants.computer.real_model}", pos=(-1, title_label.GetPosition()[1] + 25
82-
))
90+
model_label = wx.StaticText(self, label=f"Model: {self.constants.custom_model or self.constants.computer.real_model}", pos=(-1, version_label.GetPosition()[1] + 30))
8391
model_label.SetFont(gui_support.font_factory(13, wx.FONTWEIGHT_NORMAL))
8492
model_label.Centre(wx.HORIZONTAL)
8593
self.model_label = model_label

0 commit comments

Comments
 (0)