Show the current choice, keyboard focus, and states apart

Phase 5-5.

- The current radio row shows a check mark in the icon column and no
  fill (UI-051, replaces the radio rule of UI-003). The list of all
  tabs names pinned tabs in text.
- Keyboard focus adds a 2-pixel ring inside menu rows. The global
  focus ring is 2 pixels with a 1-pixel offset.
- Active toggles get the accent color, the selection fill, and a
  2-pixel accent bar. Hover gets only a neutral fill. Enabled icon
  buttons use --rs-text.
- Disabled controls use --rs-text-dim at full opacity, not opacity.
- The file tree has one Tab stop. Up and Down move, Shift extends the
  selection, Right opens or enters a folder, Left closes it or goes to
  its parent, Home and End go to the ends, and typed letters find a
  row.
- The three workbench splitters take focus. The arrow keys move them
  by 16 pixels, and Home and End go to their limits.
- Help names Esc, then Tab, to leave the text.
- 5 new catalog rows in French, Japanese, and Simplified Chinese.
- Docs: UI-051, ui-design.md, and the user guide.

Tests: the new layout/keyboardFocus. backgroundImages now expects the
check mark on the current radio row.
This commit is contained in:
Knotty Wyvern
2026-10-28 20:44:35 -07:00
parent c8cf56b224
commit b7a9784f55
19 changed files with 322 additions and 23 deletions
+15
View File
@@ -950,3 +950,18 @@ Native shell, background image, and desktop acceptance remain open.
- Evidence: `tests/smoke/layout/titleBar.smoke.mjs` and the Rust command list test.
- Replaces / replaced by: The left pane footer, and the ribbon rule "The ribbon has no width when it has no entries."
- Limits: Browser checks use desktop service mocks. Snap Layouts, the native drag area, and the macOS title bar need native acceptance. The macOS code path was not compiled here. On Windows 10, Win+Z does nothing.
### UI-051 — Check marks, focus rings, and control states
- Type: Rule change
- Date: 2026-10-28
- Status: Implemented for user review
- Decision source: Owner decisions 8 and 13 (keyboard and focus) of 2026-10-27 (interface review issues 4 and 14, and finding 2 on UI-003), stage 5-5.
- Previous rule: The current radio row had the hover fill and no check mark, so a hovered row and the current row looked the same. Hover and keyboard focus shared one fill. Hover and active toggles shared one look. Disabled controls faded to 40 to 50% opacity (2.46:1 in light). The focus ring was 1 pixel and inset. Every file tree row was a Tab stop, and the tree had no arrow keys. Splitters took no keyboard focus.
- New rule: The current radio row shows a check mark in the icon column and no fill. Keyboard focus adds a 2-pixel ring to the shared hover fill. Active toggles get the accent color, the selection fill, and a 2-pixel accent bar. Disabled controls use `--rs-text-dim` at full opacity, and enabled icon buttons use `--rs-text`. The global focus ring is 2 pixels with a 1-pixel offset. The file tree has one Tab stop, arrow keys, Home, End, and type-ahead. Splitters take focus and move by 16 pixels with the arrow keys. Help names Esc, then Tab, to leave the text.
- Reason: The current choice, the pointer, and the keyboard focus must each be visible on their own. Disabled text must stay readable.
- Scope: Shared menus and pickers, icon buttons, all disabled buttons, the file tree, and the workbench splitters.
- Shared implementation: `actionMenu.ts` (the check mark), `menu.css`, `base.css`, `IconButton.svelte`, `FileTree.svelte`, `TreeNode.svelte`, and `splitterKey` in `Workbench.svelte`.
- Evidence: `tests/smoke/layout/keyboardFocus.smoke.mjs`.
- Replaces / replaced by: The radio rule of [UI-003](#ui-003--quiet-menu-choices). Other parts of UI-003 remain.
- Limits: The check mark replaces the icon of a radio row. The list of all tabs names pinned tabs in text. Browser checks use desktop service mocks.