summaryrefslogtreecommitdiff
path: root/lib/gui/simulator/simulator_panel.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2024-08-08 09:43:36 -0400
committerGitHub <noreply@github.com>2024-08-08 09:43:36 -0400
commit47ad76f513846a8501f84c057b28a146031859b6 (patch)
tree0d29cb0f87473f925c07f9b58949357ae1cf141d /lib/gui/simulator/simulator_panel.py
parent17b88ce2c14a0802e18e90d8dd142224013dfb15 (diff)
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 <reni@allenka.de>
Diffstat (limited to 'lib/gui/simulator/simulator_panel.py')
-rw-r--r--lib/gui/simulator/simulator_panel.py4
1 files changed, 4 insertions, 0 deletions
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)