Skip to content

fix(desktop): keyboard zoom, UI scale and adaptive layouts for low vision - #63

Merged
katipally merged 5 commits into
mainfrom
fix/low-vision-zoom
Nov 22, 2026
Merged

katipally merged 5 commits into
mainfrom
fix/low-vision-zoom

Conversation

@katipally

Copy link
Copy Markdown
Owner

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:

  • Electron's role: zoomIn accelerator is CmdOrCtrl+Plus, so Ctrl+= did nothing.
  • The first-run window (1180x800) was never clamped to the work area. At 1080p@150% the bottom was off screen, and the window is frameless.
  • The minimum size could exceed the work area.

Changes:

  • Zoom keys: Ctrl/Cmd with =, +, -, 0 and the numpad keys (AZERTY Digit0 included), handled in before-input-event. One step per press, discrete steps from 75% to 300%.
  • The scale persists in appearance.json, with a one-time migration of Chromium's old per-host zoom. A failed read never overwrites appearance.json.
  • zoomMode is isolated, so the Flow orb and owner windows stay at 100%.
  • The View menu keeps role parity and works with VoiceOver and keyboard menu navigation.
  • Settings > General has a "UI scale" row that syncs live. It is in settings search and the shortcuts sheet.
  • The first-run window is clamped and centered, and the minimum size follows the display. It re-clamps only when the window's display changes or is removed.
  • Adaptive layouts:
    • In-call stage: the orb is the only shrinking item, and the stage scrolls instead of overlapping the dock. The status label is always visible.
    • Top bar chips collapse to icons by header container width.
    • Home footer is in flow.
    • Text tokens go from px to rem.
    • Settings nav width is in rem.

How I tested it

  • pnpm typecheck passed.
  • pnpm test passed, 2608/2608, including the new zoom.test.ts and window-state tests, packaging and design lint.

Still to check by hand on Windows 1080p at 150%:

  • First launch fits the screen.
  • Each zoom key steps once.
  • The orb stays at 100% while the main window is at 200%.
  • In-call at 300% scrolls without overlap.
  • Moving between monitors.

A small CHANGELOG.md [Unreleased] conflict is expected with the Russian language PR.

Checklist

  • pnpm typecheck passes
  • One focused change, not several bundled together
  • Screenshots added for UI changes

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.
@katipally
katipally merged commit 3e04f54 into main Nov 22, 2026
4 checks passed
@katipally
katipally deleted the fix/low-vision-zoom branch November 22, 2026 04:42
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