Skip to content

Simulator: Scale menu (100 % = pixel for pixel) - #187

Merged
henrikklee merged 4 commits into
mainfrom
simulator-scale-menu
Nov 19, 2026
Merged

henrikklee merged 4 commits into
mainfrom
simulator-scale-menu

Conversation

@henrikklee

Copy link
Copy Markdown
Contributor

A Scale menu in the Orchard Simulator's menu bar:

  • 50 %, 75 %, 100 %: one guest pixel takes that share of the Mac's own pixels. At 100 % the guest's picture shows pixel for pixel, worked out from the panel's live width and the screen's backing scale.
  • Fit to Screen: as large as the screen allows.

The window keeps its centre, and its top stays on screen. At 100 % an iPad (2048 pixels tall) runs off the bottom of a laptop screen; that's expected.

Tested: it builds cleanly, and the simulator runs with it. The sizes aren't measured on screen yet.

Scale > 50 %, 75 %, 100 % sizes the window so that one guest pixel takes
that share of the Mac's own pixels (100 %: the guest's picture pixel for
pixel, from the panel's live width and the screen's backing scale);
Fit to Screen makes it as large as the screen allows. The window keeps its
centre and its top on the screen; at 100 % an iPad runs off the bottom of
a laptop's.

Assisted-by: LLM
- The tick is worked out as the menu opens, from the window's zoom: after
  resizing the window off a scale, no scale is ticked.
- Switching the device or turning it re-applies the chosen scale when the
  window was still at it, so 100 % stays pixel for pixel on the new panel
  and Fit to Screen fits again; resized off it, the window keeps its zoom.
- A scale is reckoned from the profile's panel, not the guest's last
  picture, which is still the old device's right after a switch.

Assisted-by: LLM
The app menu gets the Mac's Hide, Hide Others and Show All; as menu key
equivalents they are the Mac's before Command reaches the guest as Super.

Assisted-by: LLM
@henrikklee
henrikklee merged commit dad03b8 into main Nov 19, 2026
11 checks passed
@henrikklee
henrikklee deleted the simulator-scale-menu branch November 19, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant