Skip to content
This repository was archived by the owner on Sep 4, 2026. It is now read-only.
This repository was archived by the owner on Sep 4, 2026. It is now read-only.

macOS traffic lights misaligned with the titlebar; fixed native position ignores interface zoom #402

Description

@ElbertePlinio

Follow-up to #399 / PR #400. The macOS traffic lights were aligned to one static native position while the CSS titlebar scales with interface zoom. AppKit also resets titlebar frames during resize and fullscreen layout, producing permanent drift and a brief snap during fullscreen exit.

Final approach

  • Remove static trafficLightPosition from the macOS Tauri config.
  • Position the standard AppKit window buttons from a macOS-only Rust module.
  • Preserve the native 14pt horizontal inset and center vertically against the zoomed --pf-titlebar-h value.
  • Reapply from stable NSWindow notifications for resize, backing changes, and fullscreen lifecycle.
  • Leave the fullscreen strip untouched during entry; align on the first windowed update during exit.
  • Apply geometry after runtime WebView zoom and persisted-zoom startup.

Progress

PR: #403

Current status: resolved by merged PR #403.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinguxUX / interaction polish

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions