Skip to content

feat(toolbar): make the home mark the whole button and refine the bar - #1764

Merged
gregpriday merged 2 commits into
developfrom
design/refine-toolbar-left-side
Nov 28, 2026
Merged

gregpriday merged 2 commits into
developfrom
design/refine-toolbar-left-side

Conversation

@gregpriday

Copy link
Copy Markdown
Member

Summary

  • The home button (Addo) used to be a 22px tile sitting inside a 28px button, so it looked smaller than the Sidebar toggle right beside it. Now the tile is the button: a full 28px face with the same corners as its neighbours.
  • The rest of the toolbar got the same treatment, side to side, on macOS, Windows and Linux, including the menu button and caption buttons that Replace the native title and menu bars on Windows and Linux with an in-app menu button #1355 just added.

What changed

Home button

  • .toolbar-mark is the app icon's tile itself, with Addo drawn on it (addoMarkup() in src/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.
  • The tile colours are tokens now (--mark-face, --mark-edge, --mark-shade-* in tokens.css).

Layout

  • The start column takes what the project and page name actually need, capped by the measured width of the centre and end groups (--toolbar-rest, set from a ResizeObserver in Toolbar.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.
  • When space runs out, things give way in a fixed order: the project name first, then the status slot's spare reserve, then the words of a status that needs you. The page name and chevron never get drawn over the status beside them, and a short page name stays whole in Segoe UI and Ubuntu Sans too.
  • The switcher measures its own room (the container query moved to .toolbar-group), so a control in front of it can't quietly starve it.

Windows and Linux (#1355)

  • On one row, the menu button's and caption buttons' room sits inside the start and end columns, the same way the traffic lights work on macOS. The canvas controls now centre on the window on Windows too (they were 51px left of centre).
  • The overflow bar's start floor came down from 400px to 260px, so a 1100px Windows window stays on one row instead of wrapping to two.
  • The menu button draws pressed while its menu is open, like the toolbar's other menu triggers.

Smaller things

  • Zoom is framed like the width field and fits "125%", and the width field fits four digits in any system font.
  • Gaps between regions are now wider than the dividers inside them, so the groups read as groups.
  • The overflow bar wraps on a steady rhythm with the canvas controls centred.
  • The switcher menu lists the project's own actions under its full name.
  • The loading skeleton follows the same layout, so nothing jumps when the editor appears.

Capture harness

  • tests/e2e/design/toolbar-platforms.mjs draws the toolbar as it's laid out on macOS, Windows and Linux from one machine. It uses SITEORIGIN_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.ts windowScheme()), so it's better fixed there.

… 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.
@gregpriday
gregpriday merged commit 4617e80 into develop Nov 28, 2026
1 check passed
@gregpriday
gregpriday deleted the design/refine-toolbar-left-side branch November 28, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant