Skip to content

Commit

Permalink
Add preferences button to simulator (#2992)
Browse files Browse the repository at this point in the history
* split simulator panel files
* add view panel to position view options at the side
* fix single simulator start size (macOS)
  • Loading branch information
kaalleen committed Jun 14, 2024
1 parent 39d9def commit dbdba2c
Show file tree
Hide file tree
Showing 16 changed files with 1,607 additions and 1,330 deletions.
Binary file added icons/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
64 changes: 64 additions & 0 deletions icons/settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/settings_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions lib/extensions/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ def effect(self):
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()
Expand Down
Loading

0 comments on commit dbdba2c

Please sign in to comment.