From dbdba2cda3a66fc42b5bad05e88d33b845a85e2f Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 14 Jun 2024 09:49:57 +0200 Subject: Add preferences button to simulator (#2992) * split simulator panel files * add view panel to position view options at the side * fix single simulator start size (macOS) --- lib/extensions/simulator.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/extensions/simulator.py') diff --git a/lib/extensions/simulator.py b/lib/extensions/simulator.py index 57978b73..69f74b02 100644 --- a/lib/extensions/simulator.py +++ b/lib/extensions/simulator.py @@ -30,8 +30,9 @@ class Simulator(InkstitchExtension): current_screen = wx.Display.GetFromPoint(wx.GetMousePosition()) display = wx.Display(current_screen) screen_rect = display.GetClientArea() - height = int(screen_rect[3] * 0.8) - simulator = SimulatorWindow(size=(0, height), background_color=background_color) + width = int(screen_rect.width * 0.8) + height = int(screen_rect.height * 0.8) + simulator = SimulatorWindow(size=(width, height), background_color=background_color) wx.CallLater(100, simulator.Centre) app.SetTopWindow(simulator) simulator.Show() -- cgit v1.2.3