Update editor, themes, menus, backgrounds, and release tooling
This commit is contained in:
+112
-11
@@ -1,13 +1,13 @@
|
||||
# Interface design
|
||||
|
||||
[Back to development](development.md)
|
||||
[Back to development](development.md) · [Functional color requirements](ui-color.md)
|
||||
|
||||
RuneStone uses compact controls, clear icons, and shared theme values.
|
||||
This reference describes the interface and its shared dimensions. Agent instructions remain in [AGENTS.md](../AGENTS.md).
|
||||
|
||||
## Design principles
|
||||
|
||||
Keep attention on the user's work. Use quiet backgrounds for the active view and reserve strong accents for alerts or actions that need attention.
|
||||
Keep attention on the user's work. Use quiet structure for the active view. Preserve clear colors for identity, meaning, and attention.
|
||||
Show only what the current task needs. Let users collapse optional sections and hide panes when they need more space.
|
||||
Tabs can join visually with their content area. A selected view does not need a bright border or a repeated heading.
|
||||
|
||||
@@ -61,29 +61,37 @@ Feature code does not override menu rows. Menu width can expand when content nee
|
||||
| --- | --- | --- |
|
||||
| `--rs-menu-width` | 248px | Standard menu width |
|
||||
| `--rs-menu-padding` | 5px | Inset around rows |
|
||||
| `--rs-menu-row-height` | 30px | Minimum row height |
|
||||
| `--rs-menu-row-padding` | 4px 10px | Vertical and horizontal row padding |
|
||||
| `--rs-menu-row-height` | 24px | Minimum row height |
|
||||
| `--rs-menu-row-padding` | 2px 10px | Vertical and horizontal row padding |
|
||||
| `--rs-menu-font-size` | 13px | Shared text size |
|
||||
| `--rs-menu-border` | `transparent` | Borderless panel |
|
||||
| `--rs-menu-icon-size` | 14px | Action icon size |
|
||||
| `--rs-menu-icon-gap` | 8px | Space between icon and label |
|
||||
|
||||
See [UI-026](design-decisions.md#ui-026--compact-shared-menu-rows) for compact shared rows.
|
||||
Spelling corrections appear first in the main editing menu. Add to dictionary follows them, before ordinary editing actions.
|
||||
See [UI-027](design-decisions.md#ui-027--direct-spelling-corrections) for direct corrections.
|
||||
|
||||
Menus with only text choices omit the icon column. Mixed action menus reserve the icon column for every row.
|
||||
Shortcut text and submenu arrows occupy trailing columns.
|
||||
Enabled rows share hover and keyboard focus colors. Disabled rows stay readable and cannot run.
|
||||
Menus support arrow keys, Home, End, Enter, Space, and Escape.
|
||||
Right opens a submenu. Left returns to its parent. Keyboard dismissal restores focus.
|
||||
Menus stay inside the viewport and scroll when their contents exceed its height.
|
||||
Menus use 30-pixel rows, 13-pixel text, and a borderless panel with a shadow.
|
||||
Keep hover and keyboard focus fills quiet, with an inset from the panel edge.
|
||||
Menus use 24-pixel rows, 13-pixel text, and a borderless panel with a shadow.
|
||||
Menus use an 82% surface tint through `--rs-menu-bg` and `--rs-menu-active-bg`.
|
||||
The shared action menu applies this tint to host and plugin menus, including submenus.
|
||||
The workspace picker shares the menu surface. Labels and icons remain opaque.
|
||||
See [UI-013](design-decisions.md#ui-013--translucent-menu-surfaces).
|
||||
Use the shared hover and keyboard focus fills, with an inset from the panel edge.
|
||||
Theme, appearance, board, and list menus share these values. See [decision UI-002](design-decisions.md#ui-002--share-the-requested-dropdown-design).
|
||||
See [UI-006](design-decisions.md#ui-006--borderless-shared-menus) for the borderless panel rule.
|
||||
Radio choices show the current option with a quiet fill and no checkmark.
|
||||
Radio choices show the current option with the shared fill and no checkmark.
|
||||
The current enabled radio choice receives focus when its menu opens. See [UI-003](design-decisions.md#ui-003--quiet-menu-choices).
|
||||
A menu row can have a default action and a submenu.
|
||||
Clicking the label, Enter, or Space runs the default action. Hover, the submenu arrow, or Right opens the submenu.
|
||||
New note creates a blank note. Its submenu contains templates and Manage templates.
|
||||
Searchable pickers and form dialogs can use richer layouts. Native select controls retain platform behavior.
|
||||
Searchable pickers and form dialogs can use richer layouts. Their menu surfaces still use the shared presentation below.
|
||||
Native editing menus retain recognized editing, spelling, and emoji commands.
|
||||
They omit system sharing, writing direction, dictation, and unsupported unnamed tools.
|
||||
The host filters the native collection before shared display or native fallback. See [UI-008](design-decisions.md#ui-008--keep-native-editing-menus-focused).
|
||||
@@ -93,7 +101,7 @@ The host filters the native collection before shared display or native fallback.
|
||||
Settings navigation pairs icons with labels. Each settings page uses readable text and ordinary controls.
|
||||
Related plugin metadata and actions occupy compact rows. Controls wrap at narrow widths, and the content area scrolls.
|
||||
Long navigation lists must leave room for the selected page.
|
||||
New tabs and Project Management keep separate background images and settings in every theme. Images can be up to 50 MiB.
|
||||
The app work area and Project Management keep separate background images and settings in every theme. Images can be up to 50 MiB.
|
||||
Image bytes stay in IndexedDB. Settings retain a small image reference.
|
||||
Both support image size, nine alignment positions, and an overlay that lightens or darkens the image.
|
||||
Set the overlay with the slider or type a percentage from -100 to 100.
|
||||
@@ -122,6 +130,8 @@ Tables use shared cell padding and line height. Entering a cell does not change
|
||||
A plain paragraph after a table remains a paragraph when the separator line is removed.
|
||||
Table rows need an unescaped pipe. Writer and Reading use the same row boundary rule.
|
||||
|
||||
Table links reveal their Markdown source when the caret enters the link. Keep the caret at the chosen label character. Edit link selects the complete target inside the cell. Check ordinary clicks and keyboard entry before menu actions. See [UI-025](design-decisions.md#ui-025--table-links-hide-their-source-after-repeated-fixes) for the repeated failure and its regression checks.
|
||||
|
||||
## Checks for interface changes
|
||||
|
||||
Check light and dark themes, keyboard use, focus indicators, narrow windows, and viewport edges.
|
||||
@@ -133,7 +143,7 @@ The menu check covers file, folder, pane, tab, editor, table, and submenu exampl
|
||||
Use `SMOKE_URL` to select the server URL. Use `PLAYWRIGHT_MODULE` and `CHROME_PATH` when the environment needs explicit paths.
|
||||
Browser tests with desktop mocks do not replace native installer and window acceptance checks.
|
||||
|
||||
## Keep controls quiet
|
||||
## Keep controls focused
|
||||
|
||||
Keep empty forms hidden until the user chooses an add action. Keep section names, counts, and expand controls visible.
|
||||
Remember that a collapsed section still contains work. Do not remove its data or hide errors that need attention.
|
||||
@@ -147,13 +157,75 @@ Board switching, renaming, and adding work remain separate controls. Put plug-in
|
||||
Use the shared action menu for short option lists, including board and theme choices. Mark the current option with a radio state.
|
||||
Use a searchable picker for long lists. Native selectors remain an older-host fallback for plugins.
|
||||
Menu rows use the same inset, hover fill, focus fill, and corner radius. A menu choice and a file selection serve different purposes.
|
||||
File selections retain the shared selection fill and outer outline. Hover uses the quiet active background across both surfaces.
|
||||
File selections retain the shared selection fill and outer outline. Hover uses the shared active background across both surfaces.
|
||||
Do not copy feature-specific colors into a shared control.
|
||||
|
||||
The Claude palette follows the [Anthropic brand guide](https://github.com/anthropics/skills/blob/main/skills/brand-guidelines/SKILL.md).
|
||||
Keep its warm light and dark surfaces, orange accent, Lora body font, and Poppins headings with their documented fallbacks.
|
||||
Shared dimensions and interaction rules apply to every palette.
|
||||
|
||||
Named palettes use one fixed appearance.
|
||||
Harvest Moon, Crimson Pilot, and Silver Serpent each use one dark appearance. Their palettes use multiple surface, text, accent, and syntax colors. Saved choices retain their colors and backgrounds after the names change. Harvest Moon uses Candara controls and Constantia prose and headings. Crimson Pilot uses Bahnschrift controls and headings with Segoe UI prose. Silver Serpent uses Corbel controls and Palatino Linotype prose and headings. Each local font stack has fallback fonts. Code keeps the shared monospace stack. See [UI-023](design-decisions.md#ui-023--separate-theme-font-roles).
|
||||
Removed palettes return to the default appearance.
|
||||
Saved selections for removed themes return to RuneStone and retain their mode and background settings.
|
||||
The theme preview includes code colors. See [UI-009](design-decisions.md#ui-009--character-theme-appearances) for this rule change.
|
||||
|
||||
New-tab controls use `--rs-image-control-bg` and `--rs-image-control-hover-bg`.
|
||||
Their backgrounds retain enough color for readable labels while the image remains visible.
|
||||
The new-tab screen shows only its action buttons, with icons, labels, and shortcuts.
|
||||
Buttons use the same 82% tint as Project Management lists.
|
||||
One app image spans the work area below the titlebar, including new tabs and document views.
|
||||
Sidebars use `--rs-image-sidebar-bg` at 82%. Editor surfaces use `--rs-image-editor-bg` at 90%.
|
||||
Without an image, both use their ordinary opaque surfaces.
|
||||
Writer, Reading, split, and IDE share the tinted editor surface. Monaco layers remain transparent above it.
|
||||
Code blocks in Writer and Reading use `--rs-code-block-bg`, an 82% tint of the elevated surface.
|
||||
See [UI-016](design-decisions.md#ui-016--translucent-code-blocks) for this rule.
|
||||
The IDE command palette uses the shared selection fill, outline, and corner radius.
|
||||
Headers and dialogs retain their own surfaces. Menus and Project Management use the image rules below.
|
||||
The image remains fixed while content scrolls. Saved appearance and slideshow settings keep their existing controls.
|
||||
See [UI-011](design-decisions.md#ui-011--backgrounds-across-the-work-area) for the work-area rule.
|
||||
See [UI-012](design-decisions.md#ui-012--retain-three-stronger-character-themes) for the theme changes.
|
||||
Project Management without its own image shows the single host background through a transparent root.
|
||||
A saved or temporary board image retains its own background area.
|
||||
The host exposes `--rs-workarea-plugin-bg` and `--rs-workarea-surface-opacity` for saved images and slideshow frames.
|
||||
Lists, cards, card details, and search fields share an 82% tint when an image is active.
|
||||
Gantt and calendar views use one tinted panel. Date cells and headings keep the image visible.
|
||||
Selected cards retain the shared selection treatment. Nested surfaces keep their own tint to preserve readable controls.
|
||||
See [UI-014](design-decisions.md#ui-014--readable-project-management-surfaces).
|
||||
See [UI-010](design-decisions.md#ui-010--background-surface-visibility) for the surface rule.
|
||||
Slideshow frames override saved board images while active. A temporary board frame takes priority over the all-board frame.
|
||||
Identical app and Project Management slideshow frames use the host image once across both sidebars and the board.
|
||||
Distinct board frames retain their own background area.
|
||||
Card detail buttons have transparent resting backgrounds. Hover, pressed, and keyboard focus states remain visible.
|
||||
See [UI-017](design-decisions.md#ui-017--quiet-card-detail-controls) for the detail controls.
|
||||
Removal restores the saved image.
|
||||
Image changes fade for two seconds. Reduced motion removes the animation.
|
||||
Short image intervals and manual Next can interrupt a fade.
|
||||
See [UI-015](design-decisions.md#ui-015--slower-slideshow-fades).
|
||||
|
||||
## Functional color and complete menu checks
|
||||
|
||||
Use [Functional color requirements](ui-color.md) for all color choices and reviews in the host and plugins.
|
||||
Start with vivid candidates for accents, priorities, status, selection outlines, syntax, and important data.
|
||||
Prefer stronger colors when readability, meaning, and distinction remain sound. Full saturation and full HSV value are normal options.
|
||||
Require concrete evidence for softer choices. Quiet layout does not authorize weak color or broad opacity reductions.
|
||||
The guide defines role requirements, current references, rendered checks, and the evidence needed for Review.
|
||||
See [UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default) for the stronger default.
|
||||
|
||||
Searchable pickers can contain search, descriptions, and forms. Their panels and result rows use the shared menu presentation.
|
||||
Use `rs-picker`, `rs-picker-row`, `rs-picker-icon`, and `rs-picker-hint` from `src/lib/ui/menu.css`.
|
||||
Keep their different layout and semantics. Do not use the richer layout allowance to override panel color, row padding, font, or focus states.
|
||||
Use the shared action menu for native select replacements whenever the host API exists.
|
||||
Native selects remain only as documented fallbacks for older plugin hosts. Embedded website controls retain the website design.
|
||||
|
||||
Run `node scripts/menuSurfaceAudit.mjs` before menu work moves to Review.
|
||||
See the [menu and color review](menu-audit.md) and [source inventory](menu-surfaces.json) for scope and known limits.
|
||||
The inventory covers menu renderers, callers, native selects, and searchable pickers across the host and sibling plugins.
|
||||
An added or changed menu entry point requires inventory review. Source coverage does not prove runtime compliance.
|
||||
Run the listed browser checks for affected surfaces and retain screenshots of the exact reported control.
|
||||
A neighboring selector does not satisfy a card. Check every control shown in its screenshots.
|
||||
|
||||
|
||||
## Prevent repeated UI drift
|
||||
|
||||
Before a new control, find its shared component and an existing example. Extend that component when the same change helps other callers.
|
||||
@@ -199,3 +271,32 @@ Run the shared menu check after menu changes and relevant feature checks after b
|
||||
Keep native desktop checks separate from browser tests with mocked desktop services.
|
||||
Automated checks support visual and interaction review. They do not decide whether the interface keeps attention on the user's work.
|
||||
Move implementation-ready work to Review after the relevant checks pass. Keep unresolved work In progress and reserve Done for the user's acceptance.
|
||||
|
||||
|
||||
## Tooltips and text selection
|
||||
|
||||
Tooltips use the shared tooltip tokens for padding, font size, surface, text, and shadow. Controls keep one tooltip and no duplicate native title. Table cell hints use the same surface as toolbar hints. Hover and keyboard focus show the hint. Escape dismisses it. The hint stays within the viewport.
|
||||
|
||||
Text selection uses --rs-selection and --rs-selection-text in Writer, Reading, IDE, and Project Management fields. A CodeMirror selection layer must override its generated default styles.
|
||||
|
||||
See [UI-019](design-decisions.md#ui-019--one-tooltip-surface).
|
||||
|
||||
## Browser and slideshow images
|
||||
|
||||
New browser tabs with about:blank show the host background. Loaded pages retain their own rendering, including intentionally empty pages.
|
||||
|
||||
Slideshow stores per-image fit, position, and overlay in .runestone-backgrounds.json beside the images. The sidecar uses schema 1 and an images object. Settings saves compare the previous file text to preserve external changes. The sidecar has a 1 MiB limit.
|
||||
Portrait images show the full image over a blurred cover layer by default. Each target scales the foreground and blurred layer separately. The image editor shows a preview and lets users save or reset an override. Global settings remain the fallback for other images.
|
||||
The optional background API adds readImageSettings and writeImageSettings. Temporary frames can supply blurredUrl. The plugin owns all frame URLs and releases them after replacement or shutdown.
|
||||
|
||||
|
||||
See [UI-020](design-decisions.md#ui-020--per-image-slideshow-layout).
|
||||
|
||||
See [UI-018](design-decisions.md#ui-018--named-palettes-and-local-fonts) for the palette names and font choices.
|
||||
|
||||
|
||||
## Document panes
|
||||
|
||||
Workspace links can open another document to the right. Duplicate targets focus their existing pane. Closing a split preserves its tab and unsaved text. The focused pane controls Save, outline, and Terminal selection. Narrow work areas stack the panes vertically. Pane layouts stay local to the open window.
|
||||
|
||||
See [UI-021](design-decisions.md#ui-021--workspace-links-in-document-panes).
|
||||
|
||||
Reference in New Issue
Block a user