Repository navigation
fix(desktop): keyboard zoom, UI scale and adaptive layouts for low vision - #63
Merged
Merged
Conversation
Ctrl/Cmd + = (and +), -, 0 and the numpad keys zoom the main window through 75 to 300 percent, with an explicit View menu and a UI scale row in Settings. The scale is kept in appearance.json; every window runs an isolated zoom and the orb and owner are held at 100 percent. The window now opens no larger than the work area of its display, and its minimum size follows the display it is on. The call stage, top bar, home footer, text tokens and settings nav adapt to the room they have.
Keep the call status line visible at any stage height and let the orb shrink instead, and collapse the hint stack with its tips. Menu zoom clicks from VoiceOver or the keyboard now step, and only a real Ctrl or Cmd shortcut press is skipped. Re-clamp the window only when its own display lost room, follow display changes on every platform, read Ctrl+0 by key position for AZERTY, carry an older per-host zoom level over to the UI scale, and ignore non-numeric zoom IPC values.
#60) The orb box is the only item that shrinks; the caption and hold-to-send keep their height, and once the orb is gone the stage region scrolls instead of painting over the dock. Safe centering keeps the top reachable. The legacy zoom migration now stores its result (or 1) in appearance.zoom, so Preferences is read once.
A transient read error or a non-object JSON value no longer rewrites appearance.json or crashes startup; zoom is still defaulted in memory. The in-call orb region uses the themed openlive-scroll scrollbar, and the dead pointer-events-auto class on the hold pill is gone.
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Refs #60
Low-vision users could not zoom the app or fit it on a 1080p screen at 150% scaling.
Root causes:
role: zoomInaccelerator isCmdOrCtrl+Plus, soCtrl+=did nothing.Changes:
Ctrl/Cmdwith=,+,-,0and the numpad keys (AZERTYDigit0included), handled inbefore-input-event. One step per press, discrete steps from 75% to 300%.appearance.json, with a one-time migration of Chromium's old per-host zoom. A failed read never overwritesappearance.json.zoomModeis isolated, so the Flow orb and owner windows stay at 100%.How I tested it
pnpm typecheckpassed.pnpm testpassed, 2608/2608, including the newzoom.test.tsand window-state tests, packaging and design lint.Still to check by hand on Windows 1080p at 150%:
A small
CHANGELOG.md[Unreleased]conflict is expected with the Russian language PR.Checklist
pnpm typecheckpasses