Repository navigation
feat(toolbar): make the home mark the whole button and refine the bar - #1764
Merged
Merged
Conversation
… end to end - The home button is the app icon's tile itself: a full 28px face with the controls' corners, Addo drawn on it, a hover and press that shade the face, a quieter tile in dark, and the tile kept in High Contrast. Mark colours are tokens (--mark-*). - The start column takes what the identity needs, capped by the measured centre and end groups, so the canvas controls stay centred on the window whenever they can and move only as far as they must. The full project name shows at 1440 on macOS, and the compact bar no longer pushes the canvas controls against the actions. - Off macOS the menu button's and Windows's caption buttons' room (#1355) sits inside the start and end columns on one row, so the canvas controls centre on the window there too, and a 1100px Windows window stays one row. The menu button draws pressed while its menu is open, as the toolbar's other menu triggers do. - Room gives way in a fixed order (project name, then the status slot's spare reserve, then a needs-you status's words). The switcher never draws over its neighbour, keeps a short page name whole in every system font, and measures its own room, after whatever leads the bar. - Zoom is framed like the width field and fits 125%, and the width field fits four digits in any system font. Region gaps read wider than dividers, the overflow bar wraps on a steady rhythm with its canvas controls centred, and the switcher menu names the project above its own actions. The loading skeleton follows the same layout. - A capture harness draws the toolbar as laid out on macOS, Windows and Linux from one machine (tests/e2e/design/toolbar-platforms.mjs), through an automated-launch-only platform override (shared/chrome-platform.ts).
…t's tightest bar a glyph-only status The narrow container rules lost to the switcher's own floor further down the file, so the switcher kept room for the project name it had already hidden and ran into the canvas controls at 1100px beside a live session. In the tightest column a quiet status now keeps its glyph alone. The zoom test skips the title parts the narrow switcher hides.
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.
Summary
What changed
Home button
.toolbar-markis the app icon's tile itself, with Addo drawn on it (addoMarkup()insrc/shared/app-icon.ts,AppMark tile={false}). Hover and press shade the face, the dark theme uses a slightly toned-down tile so it doesn't glare, and High Contrast keeps the tile.--mark-face,--mark-edge,--mark-shade-*intokens.css).Layout
--toolbar-rest, set from aResizeObserverinToolbar.tsx). The canvas controls stay centred on the window whenever they can, and only move as far as they have to. "Harbour Lane Studio / Home" now shows in full at 1440 on macOS, and the compact bar no longer shoves the canvas controls up against Undo..toolbar-group), so a control in front of it can't quietly starve it.Windows and Linux (#1355)
Smaller things
Capture harness
tests/e2e/design/toolbar-platforms.mjsdraws the toolbar as it's laid out on macOS, Windows and Linux from one machine. It usesSITEORIGIN_PLATFORM, which only an automated launch honours (src/shared/chrome-platform.ts), and stands in a visible window controls overlay for Windows. It's opt-in (DESIGN_CAPTURE=1) and never part of the e2e suite. I also checked the result on a real Windows 11 machine.Design review
Score 8.1 → 9.5 over 5 rounds, reviewed by Codex and Gemini 4 Carbon against the toolbar's hierarchy, consistency, cross-platform fit, density, states, accessibility and craft.
One known issue is left alone here. On Windows with mixed modes (Windows mode dark, app mode light), the system caption buttons draw dark beside a light toolbar. The colour comes from #1355's main-process theming (
src/main/index.tswindowScheme()), so it's better fixed there.