From 47ad76f513846a8501f84c057b28a146031859b6 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Thu, 8 Aug 2024 09:43:36 -0400 Subject: Show page in simulator (#3120) * add exception logging helpers * wip * show page and drop shadow from SVG * allow toggling page * add page icon * add dark mode icon * showpageshadow * refresh after background change (fix for macOS) * fix params sim background * try a native GraphicsBrush for windows * show page button in standalone simulator only and adapt shadow color * remove doubled line --------- Co-authored-by: Kaalleen --- lib/gui/simulator/simulator_panel.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/gui/simulator/simulator_panel.py') diff --git a/lib/gui/simulator/simulator_panel.py b/lib/gui/simulator/simulator_panel.py index 593b551a..1cea9214 100644 --- a/lib/gui/simulator/simulator_panel.py +++ b/lib/gui/simulator/simulator_panel.py @@ -30,6 +30,7 @@ class SimulatorPanel(wx.Panel): self.cp.set_drawing_panel(self.dp) self.vp.set_drawing_panel(self.dp) self.vp.set_background_color(wx.Colour(background_color)) + self.dp.set_background_color(wx.Colour(background_color)) dvSizer = wx.BoxSizer(wx.HORIZONTAL) @@ -93,3 +94,6 @@ class SimulatorPanel(wx.Panel): def clear(self): self.dp.clear() self.cp.clear() + + def set_page_specs(self, page_specs): + self.dp.set_page_specs(page_specs) -- cgit v1.2.3