Menus are the bar's glass again: blur, saturation, a dense tint (#245) #317

Closed
kayg wants to merge 0 commits from issue/245-menu-glass into dev
Owner

Menus go back to real glass: one material with the bar (#245). Stacked on #311 (which is stacked on #292). This PR's own change is the top commit.

  • The glass: the shared ContextMenu (packages/ui) uses the bar's glass tokens: --glass-float-filter (blur 44 px, saturate, brightness), --glass-float-edge (hairline edge) and --shadow-float.
  • The tint: a new token, --glass-float-dense (76% light, 78% dark), because a menu is lines of words. Reduced transparency raises it to 97%, like the other glass tokens. The bar and bar.css are untouched (#287 is working there).
  • Backdrop root: checked in Chromium and WebKit, at 1440 and 390. No ancestor of the menu has a filter, transform, opacity below 1, will-change, a mask, clip-path or a blend mode. It mounts at the app's root, so its blur samples the page.
  • Why WebKit showed the photo sharp: the headless WebKit used here (WPE, software rendering) draws no backdrop-filter at all, even on a bare test page with nothing around the blurred box. Its screenshots can't show any blur, the bar's included; Chromium's can, and they show the menu blurred. Real Safari draws it.

Screenshots are on #245. Preview is updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T

Menus go back to real glass: one material with the bar (#245). **Stacked on #311 (which is stacked on #292).** This PR's own change is the top commit. - **The glass:** the shared ContextMenu (`packages/ui`) uses the bar's glass tokens: `--glass-float-filter` (blur 44 px, saturate, brightness), `--glass-float-edge` (hairline edge) and `--shadow-float`. - **The tint:** a new token, `--glass-float-dense` (76% light, 78% dark), because a menu is lines of words. Reduced transparency raises it to 97%, like the other glass tokens. The bar and `bar.css` are untouched (#287 is working there). - **Backdrop root:** checked in Chromium and WebKit, at 1440 and 390. No ancestor of the menu has a filter, transform, opacity below 1, will-change, a mask, clip-path or a blend mode. It mounts at the app's root, so its blur samples the page. - **Why WebKit showed the photo sharp:** the headless WebKit used here (WPE, software rendering) draws no backdrop-filter at all, even on a bare test page with nothing around the blurred box. Its screenshots can't show any blur, the bar's included; Chromium's can, and they show the menu blurred. Real Safari draws it. Screenshots are on #245. Preview is updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Stack: the picked card comes to the front; ⋯ toggles its menu (#245)
Some checks failed
CI / web (pull_request) Failing after 19s
CI / server (pull_request) Successful in 20s
CI / rust (pull_request) Successful in 1m32s
f2cdbf7f25
- Gallery stack: a tap, click or arrow pick brings that card to the front,
  straight, with a springy lift (scale 1.06, deeper shadow), and it stays
  there after the pointer leaves. A mouse still gets the original's hover
  push; a tap only brings the card forward, so nothing slides off a
  phone's line. Round 3's motion is unchanged.
- Shared context menu (packages/ui): a tap on the ⋯ a menu was opened
  from closes it. nextMenu() decides open or close, and the menu's
  outside-press handler leaves its own trigger alone, so the click that
  follows can't reopen it and replay the opening. The web app and the
  mockup both open menus through it. Browser test in the primitives
  harness (fails without the fix, passes with it, Chromium and WebKit).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Caption clear of the toolbar, a frosted menu, no list under the bar (#245)
Some checks failed
CI / server (pull_request) Successful in 24s
CI / web (pull_request) Failing after 25s
CI / rust (pull_request) Successful in 1m45s
26d1aac8db
- Gallery caption row: the card toolbar gets its own slot at the row's
  end, so the caption truncates before it and the count sits beside the
  caption instead of behind a button (narrow lines start the caption at
  the left; wide ones keep it centred). In Grid the toolbar goes back to
  the corner.
- Shared context menu: a frosted, nearly opaque surface (97% paper light,
  96% dark) with a soft sheen and the glass edge. No backdrop blur under
  it: it added nothing visible and let photos show through in WebKit.
- Phone stack (app and mockup): overflow clip instead of hidden. A hidden
  box can still be scrolled by focus, which slid the stack up 48 px and
  showed the list screen's lower rows under the bottom bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Menus are the bar's glass again: blur, saturation, a dense tint (#245)
Some checks failed
CI / server (pull_request) Successful in 20s
CI / rust (pull_request) Successful in 2m10s
CI / web (pull_request) Failing after 16s
7dbfa354e9
kayg wants menus translucent and blurred, one material with the bar.
The shared ContextMenu now uses the bar's glass tokens (--glass-float-filter,
--glass-float-edge, --shadow-float) with a new --glass-float-dense tint
(76% light, 78% dark; 97% under reduced transparency) for surfaces made of
lines of words. The bar itself is untouched.

Nothing above the menu starts a backdrop root (checked in Chromium and
WebKit: no filter, transform, opacity or will-change on any ancestor).
The headless WebKit used here draws no backdrop-filter at all, even on a
bare test page, which is why its screenshots showed the photo sharp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018Yyy8fQGxPLkLa8v8NXz7T
Author
Owner

Landed in merge train #329.

Landed in merge train #329.
kayg closed this pull request 2026-10-14 17:39:24 +00:00
Some checks failed
CI / server (pull_request) Successful in 20s
CI / rust (pull_request) Successful in 2m10s
CI / web (pull_request) Failing after 16s

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal!317
No description provided.