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.
+2 -2
View File
@@ -156,9 +156,9 @@
"RuneStone/src/lib/ui/actionMenu.ts": {
"counts": {
"action": 1,
"localPopup": 2
"localPopup": 3
},
"design": "Shared action menu",
"design": "Shared action menu. Submenus are manual popovers in the top layer (UI-043).",
"check": "tests/smoke/menus/consistency.smoke.mjs"
},
"RuneStone/src/lib/ui/managedActionMenu.ts": {
+3 -1
View File
@@ -44,6 +44,8 @@ Plugins use the same tokens. [Theme tokens](plugin-development.md#theme-tokens)
## Theme references
- Read the current reference cards, and obey the source priority that the user gives.
- RuneStone takes its accent from the rune glow of the app icon (`src-tauri/icons/icon.png`). Claude takes its colors from the Anthropic brand guide. Sakura takes its colors from the palette image in its data file.
- A text role keeps the hue of its reference color. Change only its lightness until it reaches the readability minimum, and call the result an adaptation.
- Harvest Moon (Holo) uses the current fan art. Removed images do not count for later palette decisions.
- Take the colors of the character. Exclude scenery, lighting, alternate clothing, and unrelated details.
- The trading screenshot and the Bloomberg example show clear information and state distinctions. They do not ask for a terminal-like appearance.
@@ -69,7 +71,7 @@ Each surface is the color that the app draws: a translucent role is composited o
| Rule | Check | Minimum |
| --- | --- | --- |
| `text` | `text`, `text-dim`, and `text-strong` on `bg`, `bg-elevated`, `bg-active`, and `selection` | 4.5:1 |
| `accent-text` | `accent` and `link` on `bg`, `bg-elevated`, and `bg-active` | 4.5:1 |
| `accent-text` | `accent`, `accent-2`, and `link` on `bg`, `bg-elevated`, and `bg-active` | 4.5:1 |
| `status-text` | `error`, `warn`, and `ok` on `bg` and `bg-elevated` | 4.5:1 |
| `syntax` | Each syntax role on `bg`, `bg-active`, and `line-highlight` | 4.5:1 |
| `ansi` | Red, green, yellow, blue, magenta, and cyan terminal colors, and their bright variants, on `bg` | 4.5:1 |
+9 -5
View File
@@ -52,7 +52,8 @@ Do not copy feature-specific colors into a shared control.
| `--rs-menu-font-size` | 13px | Menu text |
| `--rs-menu-icon-size` / `--rs-menu-icon-gap` | 14px / 8px | Menu icon and its gap to the label |
| `--rs-menu-border` | `transparent` | Borderless panel. `--rs-menu-shadow` supplies the edge. |
| `--rs-menu-bg`, `--rs-menu-active-bg` | `--rs-surface-opacity` tint | Menu surface and hover or focus fill |
| `--rs-menu-bg`, `--rs-menu-active-bg` | `--rs-bg-elevated`, `--rs-bg-active` | Opaque menu surface and hover or focus fill. With a background image: at least 92% opaque. |
| `--rs-menu-backdrop` | `none` | With a background image: `blur(18px) saturate(1.2)` |
| `--rs-surface-opacity` | 82% | Shared surface tint. Appearance settings adjust it. |
## Icons and labels
@@ -94,7 +95,8 @@ Use one menu design for context menus, action menus, and their submenus in the h
- Use the `--rs-menu-*` tokens and `--rs-control-radius`. One menu family shares font, row height, padding, icon size, label alignment, separators, and shadow.
- A menu can grow wider when its content needs more space. All other measurements stay shared.
- Keep the padding inset around every row, so hover and focus fills do not touch the panel edge.
- The panel is borderless, with a shadow. Its surface uses the `--rs-surface-opacity` tint through `--rs-menu-bg` and `--rs-menu-active-bg`. Text and icons stay opaque. Host menus, plugin menus, submenus, and the workspace picker all use this surface.
- The panel is borderless, with a shadow. Its surface is opaque through `--rs-menu-bg` and `--rs-menu-active-bg`. Only with a background image, it is at least 92% opaque and blurs the image. Host menus, plugin menus, submenus, and the workspace picker all use this surface.
- Submenus show as popovers in the top layer, so the blur of the parent menu cannot clip them.
- Plugins call `api.ui.showActionMenu` for the host menu, when the host API exists. The host handles dismissal, focus return, and plugin cleanup.
### Rows and columns
@@ -131,7 +133,7 @@ Use one menu design for context menus, action menus, and their submenus in the h
- Native editing menus keep recognized editing, spelling, and emoji commands. The host removes system sharing, writing direction, dictation, and unnamed tools before shared display or native fallback.
- New note creates a blank note. Its submenu contains templates and Manage templates.
Decisions: [UI-002](design-decisions.md#ui-002--share-the-requested-dropdown-design), [UI-003](design-decisions.md#ui-003--quiet-menu-choices), [UI-006](design-decisions.md#ui-006--borderless-shared-menus), [UI-007](design-decisions.md#ui-007--repeated-menu-drift), [UI-008](design-decisions.md#ui-008--keep-native-editing-menus-focused), [UI-013](design-decisions.md#ui-013--translucent-menu-surfaces), [UI-026](design-decisions.md#ui-026--compact-shared-menu-rows), [UI-027](design-decisions.md#ui-027--direct-spelling-corrections).
Decisions: [UI-002](design-decisions.md#ui-002--share-the-requested-dropdown-design), [UI-003](design-decisions.md#ui-003--quiet-menu-choices), [UI-006](design-decisions.md#ui-006--borderless-shared-menus), [UI-007](design-decisions.md#ui-007--repeated-menu-drift), [UI-008](design-decisions.md#ui-008--keep-native-editing-menus-focused), [UI-026](design-decisions.md#ui-026--compact-shared-menu-rows), [UI-027](design-decisions.md#ui-027--direct-spelling-corrections), [UI-043](design-decisions.md#ui-043--opaque-menus).
## Window and navigation
@@ -174,7 +176,9 @@ Decisions: [UI-005](design-decisions.md#ui-005--heading-spacing).
### Palettes
- Color choices obey [Functional color](ui-color.md).
- The Claude palette follows the [Anthropic brand guide](https://github.com/anthropics/skills/blob/main/skills/brand-guidelines/SKILL.md): warm light and dark surfaces, an orange accent, Lora body text, and Poppins headings, with their fallbacks.
- In a light palette, the page is the lightest surface. The side panes have a slight tint.
- RuneStone uses neutral surfaces. The rune cyan of the app icon is its accent.
- The Claude palette follows the [Anthropic brand guide](https://github.com/anthropics/skills/blob/main/skills/brand-guidelines/SKILL.md): warm light and dark surfaces, an orange accent, Lora body text, and Poppins headings, with their fallbacks. In light mode, text uses a darker orange, because the brand orange is not readable on the light grays.
- Named palettes have one fixed appearance. Each local font stack has fallbacks. Code keeps the shared monospace stack.
| Palette | Appearance | Controls | Prose | Headings |
@@ -186,7 +190,7 @@ Decisions: [UI-005](design-decisions.md#ui-005--heading-spacing).
- A saved choice for a removed palette returns to RuneStone and keeps its mode and background settings. A renamed palette keeps its colors and backgrounds.
- The theme preview includes code colors.
Decisions: [UI-009](design-decisions.md#ui-009--character-theme-appearances), [UI-012](design-decisions.md#ui-012--retain-three-stronger-character-themes), [UI-018](design-decisions.md#ui-018--named-palettes-and-local-fonts), [UI-023](design-decisions.md#ui-023--separate-theme-font-roles), [UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default).
Decisions: [UI-009](design-decisions.md#ui-009--character-theme-appearances), [UI-012](design-decisions.md#ui-012--retain-three-stronger-character-themes), [UI-018](design-decisions.md#ui-018--named-palettes-and-local-fonts), [UI-023](design-decisions.md#ui-023--separate-theme-font-roles), [UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default), [UI-044](design-decisions.md#ui-044--core-palettes-and-the-lightest-page).
### Surfaces over images