This repository was archived by the owner on Sep 4, 2026. It is now read-only.
fix(macos): native window chrome — system rounded corners, shadow, traffic lights - #400
Merged
Merged
Conversation
…d corners The main window was created frameless (decorations: false), which on macOS produces a square, shadowless NSWindow. A macOS platform config now decorates the window with an overlay titlebar (hidden title, traffic lights at 14,13): the system draws rounded corners, shadow, and traffic lights, while the app titlebar keeps its custom content and drag handling. The custom window controls and edge resize handles no longer render on macOS - the decorated window provides both natively. Windows 11 already rounds resizable frameless windows via DWM; Linux compositors have no equivalent standard, so both stay frameless.
…config Review follow-ups: WindowControls drops its unreachable macOS ordering branch (the component never renders on macOS now); the Settings window-controls row hides on macOS where it governed nothing; README documents the per-platform chrome; a unit test pins tauri.macos.conf.json to the base window entry so a base-config edit cannot silently skip macOS (the platform merge replaces the windows array wholesale).
6 tasks
This was referenced Jul 31, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Closes #399
What changed
src-tauri/tauri.macos.conf.json: macOS platform overlay — the main window is decorated with an overlay titlebar (titleBarStyle: Overlay, hidden title, traffic lights at 14,13), so the system draws rounded corners, shadow, and traffic lights. Windows/Linux keep the existing frameless chrome (Windows 11 already rounds resizable frameless windows via DWM).WindowControlsandResizeHandlesrender nothing on macOS — the decorated window provides controls and resize natively. The unreachable macOS ordering branch inWindowControlsis removed.tauri.conf.jsonentry (the platform merge replaces thewindowsarray wholesale — RFC 7396), plus an AGENTS.md note, README chrome docs, and an UNRELEASED.md entry.Tested
tsc --noEmit,eslint+ design-token check, 1641 vitest units (incl. the new config drift guard) — all green.Not tested
Review
Local review: standard risk class, one independent reviewer (Opus 5, correctness/regressions + KISS + issue conformance). No P0–P2; five P3s, all fixed in
9ab65b5^..(README docs, dead branch, inert Settings row, drift-guard test, live nav-click verification). KISS verdict after fixes: keep.