Repository navigation
feat(desktop): draw the Windows title bar in the page - #521
Merged
kgoedecke merged 3 commits intoNov 21, 2026
Merged
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
[Medium impact] The reviewed changes appear safe to merge. SummaryThe Windows desktop app draws its own title bar buttons while keeping the native frame as a fallback.
No new actionable issues found. All three previous findings are addressed. Reviews (3) · Last reviewed commit: "fix(desktop): keep the impersonation ban..." · Reviewed by Greptile |
orges
pushed a commit
to orges/doop
that referenced
this pull request
Nov 16, 2026
…esign#521) doop-design#517 made RunState.seenVerified required and doop-design#518 added a fixture without it; the two merged in parallel, so main fails typecheck and CI (and the deploy that follows CI is skipped). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 2e5f8f8249e4dc091c5b57a1bb1ccd1d8b4a420f)
Collaborator
Collaborator
Contributor
Author
|
I think that you can merge it @kgoedecke |
This was referenced Nov 19, 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 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
On Windows, the desktop app now drops the native title bar and draws its own,
like macOS already does with its overlay title bar: the minimize / maximize
(restore) / close buttons sit at the end of the tab strip, sized and styled like
the Windows 11 caption buttons (Close turns red on hover).
How
src/lib/windowFrame.ts: on Windows, the page callssetDecorations(false)once at startup, then tracks the maximized state (including Win+↑, Aero snap
and double-clicking the drag region) so the middle button shows Restore.
src/components/WindowControls.tsx: the caption buttons, rendered only oncethe page owns the frame.
DesktopTabsends with the controls;ShellDragBarcarries them on thesigned-out screens so the window can always be closed. The signed-out guest
canvas is pushed below that bar through the existing
--app-insetcontractso its toolbar isn't covered.
capabilities/default.json: grantsset-decorations,minimizeandtoggle-maximize.The page drops the frame rather than the shell, because the two ship apart: a
shell without the new grants refuses the call and keeps its native frame, and a
server running an older app never asks, so no combination leaves a window
without a way to close it.
Testing
tests/windowFrame.test.tscovers Windows / macOS / Linux, a shell thatrefuses the call, and maximize changes made outside the buttons.
bun run typecheck,bun run lint, Prettier and the desktop tests pass.tauri dev: drag, double-click tomaximize, Win+↑, snapping, resizing from the edges, the caption buttons, and
the signed-out screens.
Known limitations
removed it.
with HTML caption buttons.