Make menus opaque and redesign the core palettes

Phase 5a-3. The owner chose candidate B of each palette.

- Menus are opaque (UI-043, replaces UI-013). With a background image,
  menus are at least 92% opaque and blur the image. Submenus show as
  manual popovers in the top layer, so the blur cannot clip them.
- In a light palette, the page is the lightest surface, and the side
  panes have a slight tint (UI-044).
- RuneStone uses neutral surfaces and the rune cyan of the app icon.
  Claude Dark uses the layout of the Claude app. Claude Light uses a
  white page with brand Light panes and a darker orange for text.
  Sakura uses Petal Veil for active rows.
- All five core palettes pass every readability rule. A text role keeps
  the hue of its source and changes only its lightness.
- The accent-text rule also checks accent-2, because inline code in
  Read uses it as text.
- The root token defaults match RuneStone Dark.

pnpm check passes. pnpm test: 447 pass, 5 todo, 0 fail. Full smoke
suite: 92 passed, 2 known. editor/markdownPaste and tables/formulas
failed one time and passed on retry. workspace/manageTemplates fails
about half of its runs, also on the previous commit: the tree menu
rebuilds when the template list reloads, and the open submenu closes.
This commit is contained in:
Knotty Wyvern
2026-10-28 16:47:55 -07:00
parent 5bd616d7fd
commit 445d0200b2
18 changed files with 156 additions and 71 deletions
+40 -1
View File
@@ -302,7 +302,7 @@ Keyboard focus now scrolls only the menu panel. It cannot dismiss a menu by scro
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Status: Superseded by [UI-043](#ui-043--opaque-menus)
- Decision source: Card e3c5261f requests transparency across menus.
- Previous rule: Menus used opaque elevated surfaces.
- New rule: Shared menus use an 82% theme tint, including hover and active rows.
@@ -314,6 +314,7 @@ Keyboard focus now scrolls only the menu panel. It cannot dismiss a menu by scro
- Screenshots: `.audit/menu-file-light.png`, `.audit/menu-file-dark.png`, and `.audit/menu-edge.png`.
- Limits: Native desktop appearance requires user review.
- Replaces: The opaque menu exception in UI-011.
- Replaced by: [UI-043](#ui-043--opaque-menus) makes menus opaque without a background image.
### UI-014 — Readable Project Management surfaces
@@ -810,3 +811,41 @@ Native shell, background image, and desktop acceptance remain open.
- Evidence: The applied colors and the Source colors of each tag group are the same as before stage 5a-1, for every built-in theme and a saved schema 2 custom theme. `tests/unit/theme/customThemes.spec.ts` covers schema 3, `base`, and the conversion of old syntax names.
- Replaces / replaced by: The template format of [UI-028](#ui-028--adjustable-surface-transparency-and-fixed-custom-palettes). Its transparency rule remains.
- Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open.
### UI-043 — Opaque menus
- Type: Rule change
- Date: 2026-10-28
- Status: Implemented for user review
- Decision source: Owner decision 1 of 2026-10-27 (interface review issue 1), in stage 5a-3 of the approved Phase 5a plan.
- Previous rule: [UI-013](#ui-013--translucent-menu-surfaces). Menus used an 82% theme tint without blur, so document text showed through menu rows.
- New rule: Menus are opaque. `--rs-menu-bg` is `--rs-bg-elevated`, and `--rs-menu-active-bg` is `--rs-bg-active`. Only with a background image, menus are at least 92% opaque and blur the image. A lower transparency amount makes them more opaque.
- Submenus: Submenus show as manual popovers in the top layer. A blur makes the parent menu the containing block of its fixed children, so the blur clipped and moved submenus inside it.
- Reason: Menu labels must not collide with document text. Without an image, nothing behind a menu needs to show.
- Scope: Host action menus, submenus, plugin menus through the host API, and the workspace picker.
- Shared implementation: `tokens.css` (`--rs-menu-bg`, `--rs-menu-active-bg`, `--rs-menu-backdrop`, and the `--rs-image-menu-*` tokens), `menu.css`, `appearance.ts` and `backgrounds.ts` (the image switch), and `actionMenu.ts` (popover submenus).
- Evidence: `tests/smoke/menus/consistency.smoke.mjs` checks an opaque menu without an image, and 92% with a blur over an image. Screenshots are in `output/phase-5a/5a-3/` in the main checkout.
- Replaces: [UI-013](#ui-013--translucent-menu-surfaces).
- Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open.
### UI-044 — Core palettes and the lightest page
- Type: Rule change
- Date: 2026-10-28
- Status: Implemented for user review
- Decision source: Owner decision 9 and the theme-colors group of decision 13 (interface review issues 6 and 20). The owner chose candidate B of each palette on 2026-10-28.
- Previous rule: In RuneStone Light, the page was darker than the side panes. In Claude Light, the page and the panes had one color. Each core palette failed 2 to 8 readability rules, for example Claude Light links at 2.96:1.
- New rule: In a light palette, the page (`bg`) is the lightest surface, and the side panes (`bg-elevated`) have a slight tint. Every core palette passes all readability rules in `contrast.ts`. A text role keeps the hue of its source and changes only its lightness to reach 4.5:1.
- RuneStone Dark (Graphite): neutral graphite surfaces. The rune cyan of the app icon, `#55dcf5`, is the only hue in the frame.
- RuneStone Light (Paper): a warm paper page `#fdfdfa`, neutral gray panes, and a teal accent `#026f79`.
- Claude Dark (App): the layout of the Claude app, a `#262624` page with darker `#1f1e1d` panes, and the orange `#ed8968`.
- Claude Light (White): a white page, brand Light `#faf9f5` panes, and the orange `#ab4e2f` for text. The brand orange `#d97757` has only 2.5:1 on the light grays.
- Sakura (Petal): a Blossom White page, Petal Veil for active rows, a light Spring Leaf tint on the panes, and the Rose Garden hue `#a0446b` as accent.
- Rule addition: The `accent-text` rule also checks `accent-2`, because inline code in Read uses it as text.
- Reason: Readable text, links, status colors, and syntax in every core palette. The page draws the eye, not the frame.
- Scope: RuneStone, Claude, and Sakura. Stage 5a-4 redesigns the character palettes.
- Shared implementation: `themes/runestone.ts`, `themes/claude.ts`, `themes/sakura.ts`, `contrast.ts`, and the root defaults in `tokens.css`.
- Visible changes: The colors of the five palettes.
- Evidence: The comparison sheets and `readability.md` in `output/phase-5a/5a-3/` in the main checkout. `tests/unit/theme/contrast.spec.ts` lists no failures for these palettes.
- Replaces / replaced by: None.
- Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open.