Repository navigation
studio: even the gaps between the window button glyphs - #12782
Merged
shimmyshimmer merged 2 commits intoOct 6, 2026
Merged
Conversation
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.
On main the gap from the maximize glyph to the X is wider than the gap from the minimize line to the maximize glyph, by one device pixel at 150% and above (0.5px at 200%, 0.25px at 400%).
The X's tips cause it. Its round caps sit on 45° diagonals, so the last stretch of each arm carries less ink than the round end of the minimize line or the side of the square, and the X reads about 0.365 stroke widths narrower than the glyphs beside it.
CaptionGlyphinstudio/frontend/src/components/tauri/window-titlebar.tsxnow shifts the minimize and maximize/restore glyphs right by that amount, rounded to whole device pixels so their strokes stay sharp. That is 0 at 100% and 125%, and 1px from 150% to 400%. The X stays centred under its red hover, andoverflow="visible"keeps the shifted strokes from being clipped by the 10px glyph box.Gaps
Maximize-to-close gap minus minimize-to-maximize gap, in device pixels, from the glyphs' 50%-coverage edges in the running app at an even window width. Restored and maximized give the same result:
Checks
node --teston the 9 titlebar suites: 94 of 94 pass.tsc -p tsconfig.app.json --noEmitis clean, and eslint and biome report nothing new in the file.