Show the view control with icons only

- Write, Source, Read, and Split show icons only, at every width.
- Each control keeps its accessible name and a tooltip with its shortcut.
- UI-056 records the rule. It replaces the names of UI-049.
This commit is contained in:
Knotty Wyvern
2026-10-29 16:28:25 -07:00
parent 8c43f598fb
commit 115c32fa92
4 changed files with 27 additions and 18 deletions
+16 -1
View File
@@ -923,7 +923,7 @@ Native shell, background image, and desktop acceptance remain open.
- Type: Rule change
- Date: 2026-10-28
- Status: Implemented for user review
- Status: Implemented for user review. The names beside the icons are superseded by [UI-056](#ui-056--icon-only-view-control).
- Decision source: Owner decisions 4 and 5 of 2026-10-27 (interface review issues 5 and 7), stage 5-3.
- Previous rule: Two icon-only switchers, "Document view" (Edit, Read, Split) and "Editor layout" (Writer, IDE), showed only the current choice until hover. Hover widened them, so the target moved. The same views had other names in the tab menu ("Reading view", "Source mode") and in the status bar ("IDE"). The file name showed in the tab, in the breadcrumb as a full path, as a title, and in the status bar.
- New rule: One radio group shows Write, Source, and Read at all times, with an icon and a name. Narrow panes show only the icons. The arrow keys move the choice, and the group has one Tab stop. The current choice gets the selection fill and an accent bar. Hover gets only a fill. A separate **Split** toggle shows Read beside Write or Source. Write and Source keep Split, and Read ends it. Ctrl+E switches between Write and Source, and Ctrl+Shift+E switches between Read and the editor. The tab menu, the status bar, the docs, and the code use the same names. "IDE" is not a view name.
@@ -1027,3 +1027,18 @@ Native shell, background image, and desktop acceptance remain open.
- Evidence: `tests/smoke/features/settings.smoke.mjs` and `tests/smoke/features/git.smoke.mjs`, with screenshots in both themes and at 360 pixels in `output/smoke/features/`.
- Replaces / replaced by: The Git plugin (`runestone.git` 0.1.10).
- Limits: Code that a window loaded stays in memory until the window reloads. The old package stays installed until the user removes it.
### UI-056 — Icon-only view control
- Type: Rule change
- Date: 2026-10-29
- Status: Implemented for user review
- Decision source: The owner's review of 0.1.50 (2026-10-29): the buttons at the top right of the editor went "from icon only to icon + text".
- Previous rule: [UI-049](#ui-049--one-view-control-and-one-file-name). Write, Source, and Read, and the Split toggle, showed an icon and a name. Panes narrower than 560 pixels showed only the icons.
- New rule: Write, Source, Read, and Split show icons only, at every width. All choices stay visible, so the targets do not move. Each control keeps its accessible name and a tooltip with the name and the shortcut. The current choice keeps the selection fill and the accent bar.
- Reason: The editor header is a compact toolbar of familiar actions, and the other header tools are icon only.
- Scope: The view control and the Split toggle of each document pane.
- Shared implementation: `src/lib/layout/ViewModes.svelte`.
- Evidence: `tests/smoke/layout/viewModes.smoke.mjs`.
- Replaces / replaced by: The names of UI-049.
- Limits: None.