Update editor, themes, menus, backgrounds, and release tooling

This commit is contained in:
Knotty Wyvern
2026-10-14 16:19:51 -07:00
parent f6eaa52949
commit edef2520af
113 changed files with 5722 additions and 386 deletions
+3 -1
View File
@@ -21,11 +21,13 @@ The first build needs internet access to download the packaging tools and the We
Find the installer in:
```text
src-tauri/target/release/bundle/nsis/RuneStone_<version>_x64-setup.exe
releases/<version>/RuneStone_<version>_x64-setup.exe
```
Distribute this setup file. Users do not need the repository, a local server, or build tools.
Build output stays outside version control.
The build moves the completed installer into `releases/<version>/` with its `host.json` metadata.
The toolchain bundle folder does not retain a second installer copy.
## Installer settings
+338 -2
View File
@@ -177,16 +177,41 @@ Entry status describes the record. It does not move a Kanban card to Done or rep
- Type: Recurring problem
- Date: 2026-10-12
- Status: Resolved
- Status: Implemented for user review
- Existing rule: Shared action menus in the interface guide.
- Scope: Browser settings and Project Management card, priority, background, and list-status controls.
- Scope: Browser settings and Project Management card, priority, background, and list-status controls. Scope also includes BG Slideshow settings menus.
- Occurrences: Cards 41461dfe and 1d823866 follow earlier menu corrections in UI-002 and UI-003. Card b8cc5ef1 repeats the issue in background and list-status choices.
- Occurrence: Card f6baf300 repeats the menu problem in a modal Settings dialog.
- Cause: Browser settings used native selects. PM card and priority controls used local popup renderers. Background and list-status choices missed the shared-choice conversion.
- Modal cause: BG Slideshow passed no dialog parent to the shared menu. The menu opened outside the modal and could not receive input.
- Correction: Use the shared menu API for these controls. Match the host background labels and retain the numeric overlay field.
- Modal correction: Pass the nearest dialog as the menu parent.
- Prevention: Check each background choice and the list-status choice with the real host menu API, in both themes and narrow layouts.
- Modal prevention: Run the settings harness with showModal to catch blocked pointer and keyboard input.
- Check: The current host and PM check reports record the results.
- Evidence: output/round4-pm-report.json, output/round4-editor-menu-report.json, and output/round4-overlay-report.json.
- Modal evidence: RuneStone_BG_Slideshow/tests/artifacts/settings and the card review notes.
- Resolution: The combined checks passed on 2026-10-12. Reopen this entry if the problem returns.
- Editor occurrence: Cards e7edc2ca and e6dfcb06 report different menus over words, blank space, and IDE content.
- Editor cause: Writer opened its spelling-only menu over words. Code files retained the default Monaco menu.
- Editor correction: Combine spelling suggestions with Markdown actions. Route code actions through the shared menu.
- Editor prevention: Compare word, blank-space, Markdown IDE, and code IDE menus in both themes with keyboard dismissal.
- Editor evidence: `.audit/editor-surfaces` and the shared menu smoke report accompany the card review.
- Relationship occurrence: Card 2f5052e8-965d-4f12-8010-befdd87fa2e9 repeats the menu problem in linked-card Relationship choices.
- Relationship cause: createRelations did not receive the existing shared-choice adapter.
- Relationship correction: Pass useSharedChoices to createRelations and apply it to the Relationship selector.
- Relationship prevention: Test the card relationship selector with the real host menu API, both themes, narrow windows, and keyboard focus.
- Relationship evidence: RuneStone_ProjectManagement/tests/relations-menu.spec.ts and .audit/linked-card-relationship screenshots.
- Reopened on 2026-10-13: cards 2f5052e8 and 048353f7.
The linked-card card returned to To Do because the earlier fix changed Relationship but left Card to link as a native select.
The move-to-board card exposed the same missing adapter in the destination form.
The earlier checks covered the relationship selector only. Rich-picker exemptions also allowed independent visual styles.
The correction applies the adapter to all short PM choices and shares presentation with searchable pickers.
Browser, Terminal, Local Autocomplete, and Slideshow choices form part of the same source audit.
Keyboard focus now scrolls only the menu panel. It cannot dismiss a menu by scrolling its parent dialog.
### UI-008 — Keep native editing menus focused
@@ -204,3 +229,314 @@ Entry status describes the record. It does not move a Kanban card to Done or rep
- Evidence: Native payloads and two full smoke runs in output/todo-menus.
- Replaces: None.
### UI-009 — Character theme appearances
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card 7421c542 requests stronger character colors, syntax colors, and one suitable appearance per character.
- Previous rule: Character themes offered separate light and dark appearances with mostly surface colors.
- New rule: Each character uses one appearance with distinct text, accent, and syntax colors. Asuka also offers a school uniform palette.
- Reason: Reflect the character through hair, eyes, clothing, and readable code colors.
- Scope: Character palettes, the theme picker, preview, export, import, and IDE syntax colors.
- Shared implementation: characterThemes.ts, appearance.ts, syntax tokens, and Monaco theme rules.
- Exceptions: None.
- Evidence: Character theme smoke checks passed all five palettes. Contrast checks passed for text and syntax. Screenshots remain in .audit/character-themes.
- Limits: Native desktop checks remain untested.
- Replaces: None.
- Replaced by: UI-012 changes the palette selection. Fixed appearances and syntax rules remain.
### UI-010 — Background surface visibility
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card f0250163 requests transparent new-tab buttons, board lists, and cards.
- Previous rule: New-tab buttons used opaque surfaces. Board lists used a nearly opaque surface, and cards used opaque surfaces.
- New rule: New-tab controls use shared image control tokens. Board lists and unselected cards use modest transparency when an image is active.
- Reason: Keep the image visible while labels and selections remain clear.
- Scope: New-tab buttons and Project Management lists and cards with images.
- Shared implementation: --rs-image-control-bg, --rs-image-control-hover-bg, EditorPane.svelte, and existing PM background styles.
- Exceptions: Selected cards retain the shared selection treatment.
- Evidence: Background browser checks passed both themes and narrow layouts. Screenshots remain in .audit/background-frames and RuneStone_ProjectManagement/.audit/pm-background-*.
- Limits: Native desktop interaction remains untested.
- Replaces: None.
- Replaced by: UI-011 extends the app image across the work area. Control and card rules remain.
- Replaced by: UI-014 changes Project Management surfaces and host image inheritance.
### UI-011 — Backgrounds across the work area
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Cards 0fbf1d44, 17cd5ff2, and 3c610e21.
- Previous rule: The app image appeared only behind the new-tab screen. Sidebars and editors used opaque surfaces.
- New rule: One background spans the work area below the titlebar. Sidebars use an 82% tint. Editors use a 90% tint.
- Reason: Show a continuous image while text and controls remain readable.
- Scope: New tabs, sidebars, Writer, Reading, split views, and IDE.
- Shared implementation: Workbench background layer and --rs-image-sidebar-bg, --rs-image-editor-bg, and --rs-workarea-* tokens.
- Splash controls: Keep buttons, icons, labels, and shortcuts. Remove headings, descriptions, and hint text. Button tint matches Project Management lists.
- Exceptions: Headers, menus, dialogs, and embedded plugin views retain their own surfaces.
- Evidence: Background and appearance browser reports and screenshots accompany the card review.
- Limits: Native desktop appearance and distraction levels require user review.
- Replaces: The new-tab-only scope of UI-010. Its control and card rules remain.
- Replaced by: UI-013 adds menu transparency. UI-014 lets Project Management share the host background.
### UI-012 — Retain three stronger character themes
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card 541c87e6.
- Previous rule: Five character palettes included Renamon and Asuka School Uniform.
- New rule: Retain Holo, Asuka, and Malfoid with stronger identity colors. Remove Renamon and Asuka School Uniform.
- Reason: Reduce unused choices and replace soft colors with recognizable clothing, hair, and eye colors.
- Scope: Theme registry, appearance selection, syntax colors, saved settings, and export.
- Shared implementation: characterThemes.ts, appearance.ts, the shared theme picker, and Monaco theme rules.
- Migration: Removed themes return to RuneStone while their saved mode and background remain.
- Evidence: Palette contrast checks and character browser checks. Screenshots remain in .audit/character-themes.
- Limits: Native desktop appearance requires user review.
- Replaces: The palette selection rule in UI-009. Its fixed appearance and syntax rules remain.
### UI-013 — Translucent menu surfaces
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- 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.
- Reason: Keep background images visible while menu labels remain readable.
- Scope: Host action menus, submenus, plugin menus through the host API, and the workspace picker.
- Shared implementation: `menu.css`, `--rs-menu-bg`, and `--rs-menu-active-bg`.
- Exceptions: Native system menus retain platform presentation. Rich dialogs retain their own surfaces.
- Evidence: Menu smoke checks pass both themes, keyboard navigation, disabled rows, focus return, submenus, and viewport edges.
- 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.
### UI-014 — Readable Project Management surfaces
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Cards ed544871, c290007f, 312ee71d, 399f6818, and 6e1b418d.
- Previous rule: Project Management retained an opaque root. Cards and fields used different tints. Gantt and calendar lacked a shared readable panel.
- New rule: Project Management shows one host image unless a board supplies its own image. Related surfaces share an 82% tint.
- Reason: Show the image once and keep tasks, dates, details, and search text readable.
- Scope: Project Management backgrounds, lists, cards, details, fields, Gantt, and calendar.
- Shared implementation: Host work-area tokens and Project Management surface tokens.
- Exceptions: Selected cards retain the shared selection treatment.
- Evidence: Unit, clipping, keyboard, background, and surface browser checks accompany the card review.
- Limits: Native desktop appearance requires user review.
- Replaces: The Project Management surface scope of UI-010 and the opaque plugin exception in UI-011.
- Background recurrence: Card ed544871 returned to To Do on 2026-10-13 with left and right sidebar examples.
- Background cause: Slideshow published the same frame to the app and boards. Each renderer scaled that image to a different area.
- Background correction: Compare app and board frames, including appearance and transitions. Matching frames use only the host layer.
- Background prevention: Publish matching frames to app and boards in the host integration test. Check both sidebars and narrow layouts.
- Background evidence: `.audit/host-pm-matching-slideshow-*.png` in the Project Management checkout and transient frame tests.
### UI-015 — Slower slideshow fades
- Type: Rule change
- Date: 2026-10-12
- Status: Implemented for user review
- Decision source: Card 9ae11a7a reports that fades are too fast.
- Previous rule: Images faded for 800 milliseconds.
- New rule: Images fade for two seconds. Reduced motion removes the animation.
- Reason: Give the image change a slower visual pace.
- Scope: App and Project Management slideshow frames.
- Shared implementation: Background Slideshow `transitionMs`, host BackgroundHub, and Project Management frame rendering.
- Exceptions: Manual Next and image intervals below two seconds can interrupt a fade.
- Evidence: All 11 slideshow unit tests, TypeScript checks, and the settings browser check pass.
- Limits: Native desktop appearance requires user review.
- Replaces: The 800-millisecond fade rule in the interface guide.
### UI-016 — Translucent code blocks
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card ea3ab6df requests transparent code blocks.
- Previous rule: Fenced code blocks used opaque elevated surfaces.
- New rule: Writer and Reading code blocks share an 82% elevated tint.
- Reason: Keep the image visible through code blocks while code text remains readable.
- Scope: Fenced code blocks in Writer and Reading, including split layouts.
- Shared implementation: `--rs-code-block-bg` in the theme tokens.
- Evidence: Editor browser screenshots and checks accompany the card review.
- Limits: Native desktop appearance requires user review.
### UI-017 — Quiet card detail controls
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card 165db7bc requests transparent buttons and plain label removal.
- Previous rule: Card detail buttons and the footer used separate tinted surfaces.
- New rule: Buttons have transparent resting backgrounds. The footer stays in the content flow with no extra tint.
- Reason: Remove the large label removal button and the dark bar without obscuring the form.
- Scope: Project Management card details. Shared menu rows retain their existing presentation.
- Shared implementation: Existing Project Management hover, focus, surface, and radius tokens.
- Evidence: `.audit/pm-details-fixed-*.png`, focused keyboard checks, and the Project Management browser suite.
- Limits: Native desktop appearance requires user review.
### UI-018 — Named palettes and local fonts
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Cards f7b0eaae, c46f6614, 7c3abb8e, d86825df, and 26f515c6.
- Previous rule: The palettes used character names and the common interface font.
- New rule: Harvest Moon, Crimson Pilot, and Silver Serpent use distinct palettes and local font stacks. Saved choices migrate to the new names.
- Reason: Give each palette a clear identity with readable surfaces, text, and syntax colors.
- Scope: Theme settings, previews, exports, saved choices, and editor colors.
- Shared implementation: Appearance normalization, palette definitions, and font tokens.
- Evidence: Nine theme checks and the theme browser smoke pass. Screenshots are in .audit/character-themes.
- Limits: Native desktop appearance requires user review.
- Replaces: The names and typography in UI-009 and UI-012.
### UI-019 — One tooltip surface
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Cards 18c41c19 and 218d43f3.
- Previous rule: Table cells used native titles. Plugin and toolbar hints used separate styles.
- New rule: Tooltip tokens set the surface, padding, text, font size, shadow, and shared control radius. Controls show one hint.
- Reason: Keep hints readable and remove duplicate labels.
- Scope: Table cell hints, toolbar controls, view switches, and Project Management hints.
- Shared implementation: --rs-tooltip-* tokens, attachTooltip, IconButton, ModeSwitcher, and pm-tooltip.
- Evidence: Browser checks cover light and dark themes, keyboard focus, Escape, narrow windows, and viewport edges.
- Evidence files: Host .audit/todo-ui and Project Management .audit/tooltip-*.png.
- Limits: Native desktop appearance requires user review.
Cards 07e0c4e4 and 0f9fc3b9 exposed remaining tooltip drift after UI-019.
Cause: native titles and local CSS bypassed attachTooltip. Earlier tests did not cover these control paths.
Correction: prose links and editor controls use the shared tooltip helper. The table keeps a concise cell hint.
Prevention: check the exact screenshot target with pointer and keyboard focus, both themes, Escape, and viewport edges.
Evidence: editorLinkEditing.smoke.mjs and the editor screenshot attachments. Native desktop acceptance remains open.
### UI-020 — Per-image slideshow layout
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card 9c5ae261 and the user's approval of the draft on October 13.
- Previous rule: One global layout applied to every slideshow image.
- New rule: Per-image fit, position, and overlay settings override the global layout. Portrait images use a full foreground over blurred fill by default.
- Reason: Show portrait images without cropping their content or leaving empty bands.
- Scope: Slideshow settings, app backgrounds, and Project Management backgrounds.
- Shared implementation: The image sidecar API, optional blurredUrl frames, and separate foreground and cover layers.
- Evidence: Host frame and sidecar checks cover layout, cleanup, size limits, and external changes. Plugin checks accompany the card review.
- Limits: Native desktop appearance requires user review.
### UI-021 — Workspace links in document panes
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: Card 68ccce34 requests workspace link actions, including Open to the right.
- Previous rule: Documents used one editor pane. Split layouts supported plugin views.
- New rule: Workspace links can open another document beside the current pane. Each document has one visible pane. Duplicate targets focus their existing pane.
- Reason: Keep the source note visible while users read or edit its linked note.
- Scope: Document panes, focus, save routing, selection, model lifetime, and close controls.
- Shared implementation: splitLayout geometry, documentPanes state, document sessions, and IconButton.
- Narrow layout: Document panes stack vertically and keep their content scrollable.
- Close behavior: Closing a split removes its pane and preserves the document tab and unsaved text.
- Evidence: Document unit checks and the split browser smoke accompany the card review.
- Limits: Native desktop acceptance requires user review. Pane layouts remain local to the open window.
### UI-022 — Functional color without an artificial ceiling
Type: Rule change
Date: 2026-10-13
Status: Superseded
Decision source: The user's request for functional color and current character references, plus cards 093e372f and 4bb33e4f.
Previous rule: Quiet surfaces and accents reserved for attention, without a clear boundary between layout restraint and color strength.
New rule: Quiet structure places no ceiling on saturation or HSV value. Color strength follows function and the current references.
Reason: Repeated muted palettes reduced identity and priority visibility.
Scope: Host and plugin themes, status indicators, syntax colors, and review evidence.
Shared implementation: Character palette roles, selection tokens, priority variables, and shared menu presentation.
Evidence: Exact Holo color measurements, contrast checks, and screenshots accompany the card review. Native desktop acceptance remains open.
Replaces: The interpretation that quiet structure requires globally muted colors.
Replaced by: [UI-024](#ui-024--assertive-functional-color-by-default) strengthens the default and required evidence.
### UI-023 — Separate theme font roles
- Type: Rule change
- Date: 2026-10-13
- Status: Implemented for user review
- Decision source: The user's request to review all three theme fonts.
- Previous rule: Each named theme used one family for controls, prose, and headings.
- New rule: Compact controls and longer prose can use separate families. Each role keeps a fallback stack.
- Reason: Small serif controls were harder to scan. Bahnschrift prose gave long passages the same condensed appearance as tool labels.
- Scope: Harvest Moon, Crimson Pilot, and Silver Serpent.
- Shared implementation: --rs-font-ui, --rs-font-prose, and --rs-font-heading in tokens.css.
- Evidence: themeTypography.smoke.mjs checks actual rendered fonts, selected text, narrow menus, and long settings navigation.
- Limits: Native WebView rendering and subjective reading comfort require user acceptance.
- Replaces: The single-family rule in UI-018. Its saved theme names remain.
### UI-024 — Assertive functional color by default
- Type: Rule change
- Date: 2026-10-13
- Status: Accepted
- Decision source: The user's explicit request for stronger color requirements for future agents and human developers, including a global skill.
- Previous rule: UI-022 permitted full saturation and value but did not require a stronger candidate or evidence for softer choices.
- New rule: Start with assertive functional colors. Prefer stronger candidates when readability and meaning remain sound. Require concrete evidence for softer choices.
- Reason: Permission alone leaves the default unclear. Earlier soft palettes required repeated corrections.
- Scope: RuneStone and all plugins. The user's global skill applies the same preference to other UI work within its stated scope.
- Shared implementation: [Functional color requirements](ui-color.md), theme tokens, project agent instructions, and the global ui-functional-color skill.
- Exceptions: Explicit user direction and approved project exceptions retain their scope. Readability remains required.
- Evidence: The [October 13 review](menu-audit.md), cards 093e372f and 4bb33e4f, and the user's direction in this chat.
- Limits: This policy cannot guarantee future adherence. Reviews still need measured values and rendered screenshots.
- Replaces: [UI-022](#ui-022--functional-color-without-an-artificial-ceiling) for the strength of the default and required evidence.
- Release impact: Documentation and instructions only. No version or artifact change.
### UI-025 — Table links hide their source after repeated fixes
- Type: Recurring problem
- Date: 2026-10-13
- Status: Resolved
- Existing rule: Inline editing keeps attention on the document under the interface design principles.
- Scope: Writer links inside Markdown table cells.
- Occurrences: Cards 8ee17b99-3a69-49c0-8aa1-e3d67e8f966f, 08f4f317-6273-4279-8136-4afe6f665b1d, and e9105823-69b2-440b-8931-5782256c8ce8.
- Cause: A normal click placed the caret in rendered text but did not reveal the link source. Earlier tests checked caret position and invoked Edit link before checking the URL.
- Correction: Reveal inline Markdown when the caret enters a link. Preserve the caret position within its label.
- Prevention: Check ordinary clicks and keyboard entry before invoking any menu. Check the visible URL, label edits, target edits, undo, and save.
- Check: The ordinary-click and keyboard regression passed in both themes at wide and narrow widths. Source checks and 245 unit tests passed.
- Evidence: The current card includes the actual and expected screenshots. New screenshots accompany its review.
- Resolution: Source checks passed on 2026-10-13. Native WebView acceptance remains open. Reopen this entry if the problem returns.
### UI-026 — Compact shared menu rows
- Type: Rule change
- Date: 2026-10-14
- Status: Implemented for user review
- Decision source: Card e16480da-be7d-426c-969e-8af0cd894e54 requests more actions within the same vertical space.
- Previous rule: Menus used 30-pixel rows and 4-pixel vertical padding.
- New rule: Menus use 24-pixel rows and 2-pixel vertical padding. Text, icons, panel padding, and horizontal padding retain their shared dimensions.
- Reason: Compact rows reduce menu height while preserving readable labels and keyboard access.
- Scope: Host and plugin action menus, submenus, and shared picker rows.
- Shared implementation: --rs-menu-row-height and --rs-menu-row-padding in tokens.css, consumed by menu.css and plugin controls.
- Evidence: The file menu measures 456 pixels after the change and 558 pixels with the previous tokens, in both themes.
- Checks: menuConsistency.smoke.mjs compares host menus, keyboard access, disabled actions, modal menus, and viewport bounds.
- Limits: Browser checks use desktop mocks. Native display scaling and user acceptance remain open.
### UI-027 — Direct spelling corrections
- Type: Rule change
- Date: 2026-10-14
- Status: Implemented for user review
- Decision source: Card 658fc42d-6d6d-4d90-8d32-0e350ebfbc9f and its Obsidian screenshot.
- Previous rule: The Markdown menu placed spelling corrections inside a final Spelling submenu.
- New rule: Put corrections and Add to dictionary first in the main editing menu.
- Reason: Users can see and choose a correction immediately after a right click.
- Scope: The shared Markdown menu in Writer and the Markdown source editor.
- Shared implementation: markdownMenu.ts with the shared actionMenu renderer.
- Checks: editorSurfaces.smoke.mjs checks direct corrections, keyboard activation, replacement, undo, and narrow menus in both themes.
- Limits: Browser checks mock Windows spelling results. Native dictionary behavior remains a user acceptance check.
+87
View File
@@ -0,0 +1,87 @@
# Menu and color review — October 13, 2026
The seven boards contained eight To Do cards: five in RuneStone and three in Project Management. No selected card was blocked.
Reference cards remain in Backlog. They supply evidence and do not count as implementation tasks.
## Menu coverage
The source audit covers RuneStone, Project Management, Terminal, Background Slideshow, Local Autocomplete, Git, PDF Viewer, and Table Formulas.
The [inventory](menu-surfaces.json) records 38 source files, their design route, and their check.
Project Management has 21 distinct menu, choice, and picker routes in its detailed local inventory.
PDF Viewer and Table Formulas contain no independent menu renderer. Git's commit list is a persistent listbox.
| Surface | Result |
| --- | --- |
| Linked cards | Both Relationship and Card to link use the shared menu. Search updates the card choices. |
| Move card to board | Destination board and list use shared menus inside the dialog. |
| Other PM choices | Cover, bulk moves, board, list, status, and backgrounds use the shared adapter. |
| Search results | Labels, tags, details, notes, workspace files, Terminal choices, and slideshow images use shared picker presentation. |
| Browser | Profile and web-data choices use the shared menu. |
| Local Autocomplete | Server type uses the host menu when the API is available. |
| Terminal | Menu snapshots match the host. The default profile uses a radio menu. |
| Keyboard navigation | Menu focus scrolls only its panel. A short modal no longer dismisses the menu during arrow navigation. |
The earlier linked-card check tested only Relationship. Its neighboring Card to link control remained native.
The richer-layout allowance also let independent picker styles persist. The guide now requires shared presentation within those layouts.
Run `pnpm check:menus` for the source audit. It rejects new or changed entry-point counts and stale Terminal snapshots.
This check detects known source patterns. It does not prove every runtime state, native menu, or future rendering method is compliant.
Browser tests must still open the exact control from each reported screenshot.
## Functional color
No inspected rule requires a saturation or HSV value ceiling. The local guide used quiet and restrained language without separating structure from color strength.
That ambiguity could influence choices. It does not establish the cause of every earlier model output.
The guide now permits 100% saturation and value where they serve recognition or meaning.
Holo's prior mean saturation across palette roles was 30.24%. Asuka was 53.05%, and Malfoid was 16.24%.
Some existing colors already reached 100% value. The problem was not a universal numeric cap.
Holo now uses copper, chestnut, cream, amber, and red from the current fan-art references.
Its amber accent has 82% saturation and 100% value. Its minimum tested syntax contrast is 4.61:1.
The further theme pass below covers Asuka and Malfoid. Priority symbols use full saturation and value, opaque strokes, and readable theme text.
## Theme refinements and font roles
Asuka now assigns more syntax roles to red, orange, yellow, and blue. One green role reflects the suit detail.
The old selected keyword contrast was 3.95:1. All tested solid-state text and syntax pairs now reach at least 4.71:1.
Malfoid now uses emerald for identity and selection, with separate silver, blonde, cream, and skin-tone roles.
Emerald accent saturation increased from 29% to 76%. Tested text and syntax pairs reach at least 4.61:1, including the measured image surfaces.
All three named themes use their selection token for tree and table fills as well as text selection.
| Theme | Controls | Prose | Headings |
| --- | --- | --- | --- |
| Harvest Moon / Holo | Candara | Constantia | Constantia |
| Crimson Pilot / Asuka | Bahnschrift | Segoe UI | Bahnschrift |
| Silver Serpent / Malfoid | Corbel | Palatino Linotype | Palatino Linotype |
The font roles separate compact controls from longer reading. Character identity remains in the selected families and headings.
Chrome's font inspection confirms the actual families on this machine. The check does not rely on CSS names alone.
The shared code font remains Cascadia Mono on this machine. Each role retains a fallback stack for other systems.
Checks use 13-pixel controls, 15-pixel prose, 24-pixel headings, selected text, 360-pixel settings, and a long plugin list.
Image contrast depends on the composited surface. Asuka's red accent reaches 3.22:1 on an 82% elevated tint over pure white.
Ordinary menu text passes there. Actual syntax surfaces use a 90% editor tint and pass the separate code checks.
This limit remains visible in the evidence. The palette does not claim universal contrast over every user image or overlay.
## Evidence and limits
Host checks pass with zero errors or warnings and 243 unit tests. Project Management passes 119 unit tests and 14 host-menu browser tests.
Terminal passes seven unit tests and browser checks. Slideshow passes 14 unit tests and both settings browser suites.
Local Autocomplete passes 11 unit tests and its modal-menu browser check.
Browser checks cover themes, narrow layouts, focus, keyboard use, and the reported controls. Screenshots remain in each project's `.audit` folder.
Operating-system menus, embedded website controls, older-host fallbacks, and upstream Monaco widgets retain their respective implementations.
Native desktop interaction and screen-reader output remain acceptance checks. Browser results use mocked desktop APIs.
Source versions remain unchanged. This review produced no installer or plugin ZIP.
## Build artifacts: 2026-10-13
RuneStone 0.1.32 contains the reviewed host changes. Its installer is in RuneStone/releases/0.1.32/.
Project Management 0.2.35 contains the reviewed plugin menu and priority changes. Its ZIP is in RuneStone_ProjectManagement/releases/.
The coordinated build also includes Terminal 0.1.7, Background Slideshow 0.0.7, and Local Autocomplete 0.1.4 in their respective release folders.
Checksums, release notes, and build metadata accompany each artifact.
The host passed 243 unit tests and 93 native tests, with three native tests ignored.
PM passed 119 unit tests and 161 browser tests, with 16 browser tests skipped.
Archive integrity and manifest versions pass for all four ZIPs.
These artifacts are ready for user acceptance. All eight cards remain in Review.
+316
View File
@@ -0,0 +1,316 @@
{
"date": "2026-10-14",
"scope": [
"RuneStone",
"RuneStone_ProjectManagement",
"RuneStone_Terminal",
"RuneStone_BG_Slideshow",
"RuneStone_LocalAutocomplete",
"RuneStone_Git",
"RuneStone_PDFViewer",
"RuneStone_TableFormulas",
"RuneStone_CSVViewer"
],
"limits": [
"Source patterns detect known menu construction routes. Browser evidence remains a separate check.",
"Native operating-system menus and embedded website controls keep platform presentation.",
"Older plugin hosts without ui.showActionMenu retain documented fallbacks."
],
"surfaces": {
"RuneStone/src/lib/browser/Browser.svelte": {
"counts": {
"action": 2
},
"design": "Shared action menu",
"check": "scripts/builtinBrowser.smoke.mjs; scripts/browserWebData.smoke.mjs"
},
"RuneStone/src/lib/browser/Settings.svelte": {
"counts": {
"action": 1,
"localPopup": 2
},
"design": "Shared action menu",
"check": "scripts/builtinBrowser.smoke.mjs; scripts/browserWebData.smoke.mjs"
},
"RuneStone/src/lib/browser/WebData.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/builtinBrowser.smoke.mjs; scripts/browserWebData.smoke.mjs"
},
"RuneStone/src/lib/editor/codeMenu.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs; scripts/editorLinkEditing.smoke.mjs; scripts/editorSurfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/imageControls.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs; scripts/editorLinkEditing.smoke.mjs; scripts/editorSurfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/markdownMenu.ts": {
"counts": {
"action": 2
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs; scripts/editorLinkEditing.smoke.mjs; scripts/editorSurfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/readingMenu.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs; scripts/editorLinkEditing.smoke.mjs; scripts/editorSurfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/spellingMenu.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs; scripts/editorLinkEditing.smoke.mjs; scripts/editorSurfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/tableSelectionControls.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs; scripts/editorLinkEditing.smoke.mjs; scripts/editorSurfaces.smoke.mjs"
},
"RuneStone/src/lib/editor/WriterHost.svelte": {
"counts": {
"svelteMenu": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs; scripts/editorLinkEditing.smoke.mjs; scripts/editorSurfaces.smoke.mjs"
},
"RuneStone/src/lib/layout/ContextMenu.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone/src/lib/layout/FileTree.svelte": {
"counts": {
"svelteMenu": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone/src/lib/layout/QuickOpen.svelte": {
"counts": {
"picker": 1,
"localPopup": 3
},
"design": "Shared searchable picker used by quick file open and document link picker",
"check": "scripts/workspaces.smoke.mjs; scripts/editorLinkMenus.smoke.mjs"
},
"RuneStone/src/lib/layout/TabBar.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone/src/lib/layout/Workbench.svelte": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone/src/lib/layout/WorkspacePicker.svelte": {
"counts": {
"picker": 1,
"localPopup": 7
},
"design": "Shared rich picker; paths retain a detail row",
"check": "scripts/workspaces.smoke.mjs"
},
"RuneStone/src/lib/plugins/externalSession.ts": {
"counts": {
"action": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone/src/lib/plugins/PluginAccessMenu.svelte": {
"counts": {
"svelteMenu": 1
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone/src/lib/plugins/sdk.ts": {
"counts": {
"action": 1
},
"design": "API type declaration, no renderer",
"check": "pnpm check"
},
"RuneStone/src/lib/theme/AppearanceSettings.svelte": {
"counts": {
"action": 2,
"localPopup": 3
},
"design": "Shared action menu",
"check": "scripts/characterThemes.smoke.mjs"
},
"RuneStone/src/lib/ui/actionMenu.ts": {
"counts": {
"action": 1,
"localPopup": 2
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone/src/lib/ui/managedActionMenu.ts": {
"counts": {
"action": 2
},
"design": "Shared action menu",
"check": "scripts/menuConsistency.smoke.mjs"
},
"RuneStone_ProjectManagement/src/choices-ui.ts": {
"counts": {
"action": 1
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_ProjectManagement/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_ProjectManagement/src/details-ui.ts": {
"counts": {
"picker": 1,
"localPopup": 4
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_ProjectManagement/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_ProjectManagement/src/labels-ui.ts": {
"counts": {
"picker": 1,
"localPopup": 3
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_ProjectManagement/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_ProjectManagement/src/preferences.ts": {
"counts": {
"action": 1,
"nativeChoice": 1
},
"design": "Shared choice adapter; native selects hidden on current host, older-host fallback retained",
"check": "RuneStone_ProjectManagement/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_ProjectManagement/src/priority-ui.ts": {
"counts": {
"action": 1,
"picker": 1,
"localPopup": 3
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_ProjectManagement/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_ProjectManagement/src/relations-ui.ts": {
"counts": {
"nativeChoice": 1,
"picker": 1,
"localPopup": 5
},
"design": "Shared relationship choice and direct searchable picker rows; older-host choice fallback retained",
"check": "RuneStone_ProjectManagement/tests/relations-menu.spec.ts; tests/menu-audit.spec.ts; tests/related-cards.spec.ts"
},
"RuneStone_ProjectManagement/src/tags.ts": {
"counts": {
"picker": 2,
"localPopup": 2
},
"design": "Shared action menus and searchable picker classes; older-host fallback retained",
"check": "RuneStone_ProjectManagement/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_ProjectManagement/src/ui.ts": {
"counts": {
"action": 4,
"nativeChoice": 14,
"picker": 1,
"localPopup": 1
},
"design": "Shared choice adapter; native selects hidden on current host, older-host fallback retained",
"check": "RuneStone_ProjectManagement/tests/menu-audit.spec.ts; tests/shared-menu.spec.ts; tests/relations-menu.spec.ts"
},
"RuneStone_Terminal/src/TerminalDock.svelte": {
"counts": {
"action": 1
},
"design": "Synchronized shared action menu snapshot",
"check": "RuneStone_Terminal/scripts/terminal.smoke.mjs"
},
"RuneStone_Terminal/src/TerminalPicker.svelte": {
"counts": {
"picker": 2,
"localPopup": 3
},
"design": "Shared searchable picker",
"check": "RuneStone_Terminal/scripts/terminal.smoke.mjs"
},
"RuneStone_Terminal/src/TerminalSettings.svelte": {
"counts": {
"action": 1,
"localPopup": 1
},
"design": "Synchronized shared action menu snapshot",
"check": "RuneStone_Terminal/scripts/terminal.smoke.mjs"
},
"RuneStone_BG_Slideshow/src/contracts.ts": {
"counts": {
"action": 1
},
"design": "API type declaration, no renderer",
"check": "pnpm check"
},
"RuneStone_BG_Slideshow/src/image-settings-ui.ts": {
"counts": {
"action": 1,
"nativeChoice": 1,
"picker": 2,
"localPopup": 3
},
"design": "Host action menus and shared searchable image picker; native image select only on older hosts",
"check": "RuneStone_BG_Slideshow/tests/settings.smoke.mjs"
},
"RuneStone_BG_Slideshow/src/settings.ts": {
"counts": {
"action": 1
},
"design": "Host action menus and shared searchable image picker; native image select only on older hosts",
"check": "RuneStone_BG_Slideshow/tests/settings.smoke.mjs"
},
"RuneStone_LocalAutocomplete/src/main.mjs": {
"counts": {
"action": 1,
"nativeChoice": 1
},
"design": "Host radio menu; native server select only on older hosts",
"check": "scripts/pluginChoiceMenus.smoke.mjs"
},
"RuneStone_Git/src/view.js": {
"counts": {
"picker": 1
},
"design": "Commit history listbox, not a popup menu",
"check": "Source inspection: persistent history list retains its own layout"
},
"RuneStone_CSVViewer/src/index.js": {
"counts": {
"action": 1
},
"design": "Host action menus for columns, sorting, filter types, and operators",
"check": "RuneStone_CSVViewer/tests/browser.mjs; tests/host.mjs"
}
}
}
+46 -4
View File
@@ -12,7 +12,7 @@ Terminal and Table formulas use the same installed package system as all other p
1. Clone `RuneStone_TableFormulas` beside RuneStone and run `pnpm install --frozen-lockfile` in that checkout.
2. Run `pnpm build:plugins` from the RuneStone repository root for Table formulas.
3. In Settings → Plug-ins, choose Install plugin ZIP.
4. Select the ZIP files in `plugin-packages/`, then choose Install and enable.
4. Select the ZIP files in `../RuneStone_TableFormulas/releases/`, then choose Install and enable.
The build creates `runestone.table-formulas-0.1.0.zip`.
Table formulas is a development package in its [own repository](https://git.knottywyvern.com/kwyvern-gitea/RuneStone_TableFormulas).
@@ -61,7 +61,7 @@ Each package succeeds or fails independently. The result identifies any failures
A changed source requires a new review. Cancelling the review removes its temporary copies.
Try the example with `pnpm package:plugin fixtures/plugins/workspace-overview`.
Install the resulting ZIP from `plugin-packages/`, then choose Install and enable.
Install the resulting ZIP from `releases/`, then choose Install and enable.
Use Open tab or view beside New tab to open Workspace overview.
Use Commands in the toolbar to run Show workspace overview.
@@ -216,7 +216,9 @@ Keep JavaScript readable where practical. Avoid minification and obfuscation tha
3. Install the resulting ZIP in RuneStone and test its features, disable action, and uninstall action.
4. Share that same ZIP as the release file.
Use Node.js 24 or later for the packaging command. The default output folder is `plugin-packages/`.
Use Node.js 24 or later for the packaging command. The default output folder is `releases/` in the project that contains the compiled folder.
Keep plugin release ZIPs in that plugin project, including when the host calls the build.
Explicit output folders are for temporary checks or staging. Move completed releases into the owning project's `releases/` folder.
It checks the manifest, paths, entry module, and size limits before it writes `<id>-<version>.zip`.
It includes every file in the input folder. Keep dependencies, credentials, and unrelated build files outside that folder.
The output folder must be outside the input folder.
@@ -447,7 +449,7 @@ The plugin must stop its mounted controls and native sessions in `onDispose` bef
| `src/lib/plugins/TerminalSlot.svelte` | The host element for terminal controls |
| `../RuneStone_Terminal/src/` | Terminal plugin source in its own repository |
| `../RuneStone_TableFormulas/` | Table formulas source, unit tests, and package build |
| `scripts/buildPlugins.mjs` | Table formulas compilation and ZIP release in `plugin-packages/` |
| `scripts/buildPlugins.mjs` | Table formulas compilation and ZIP release in `../RuneStone_TableFormulas/releases/` |
| `scripts/packagePlugin.mjs` | Shared checks and ZIP creation for plugin authors |
Run `pnpm build:plugins`, `pnpm check`, `pnpm test`, `pnpm build`, and `cargo test --manifest-path src-tauri/Cargo.toml --lib --offline`.
@@ -497,3 +499,43 @@ The Git graph uses graphical commit nodes and parent links. It shows forks, merg
The host returns structured history from `git.graph()`: `{ commits: [{ id, parents, refs, summary, author, date }] }`.
The graph keeps the latest 100 commits. Dashed links mark parents outside that history.
The updated Git package requires the matching host build. An older host shows an update message instead of a graph.
## Temporary background API
RuneStone 0.1.25 adds optional `api.backgrounds` with `version: 1`.
Background Slideshow uses it for local image folders and temporary backgrounds.
Project Management 0.2.29 uses it for board backgrounds.
| Method | Contract |
| --- | --- |
| `chooseFolder()` | Open the native folder picker. Return an absolute path or null on cancellation. |
| `defaultFolder()` | Optional. Create and return Pictures/RuneStone Backgrounds for new settings. |
| `list(folder)` | List PNG, JPEG, GIF, and WebP filenames directly inside the folder. |
| `read(folder, name)` | Read one raster image as bytes, with a 50 MiB limit. |
| `set(target, frame)` | Apply a temporary frame. Pass null to remove this plugin's frame. |
| `get(target)` | Read the active frame or null. |
| `subscribe(listener)` | Receive the changed target. Return a cleanup function. |
Targets are `app`, `pm-all`, and `pm-board:<board UUID>`.
A frame contains `url`, `overlay`, `position`, and `size`.
It can also contain `previous` with those four fields and `transitionMs` from 0 to 5000.
Renderers fade between these frames unless reduced motion is active. Keep both blob URLs valid until replacement or cleanup.
Use a blob URL. The publishing plugin owns the URL and must release it after replacement or cleanup.
Overlay ranges from -1 to 1. Negative values lighten the image, and positive values darken it.
Position and size use the same choices as custom image settings.
Frames belong to the plugin activation in the current window. They do not change saved background settings.
The last published frame wins. Removing it reveals an earlier active frame or the saved background.
Project Management checks a temporary board frame first, then `pm-all`, then the saved board image.
Disable removes the plugin's frames and subscriptions before cleanup.
File access requires an active plugin lease. Pending reads fail after access is revoked.
Image reads reject path traversal, linked files, unsupported formats, and oversized files.
Each window keeps its own sequence. The plugin settings API shares folder and playback settings across windows.
### Per-image background settings
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.
+85
View File
@@ -0,0 +1,85 @@
# Functional color requirements
[Interface design](ui-design.md#functional-color-and-complete-menu-checks) · [Decision UI-024](design-decisions.md#ui-024--assertive-functional-color-by-default)
RuneStone uses assertive color to help users recognize information, distinguish states, and identify themes.
This policy applies to human developers and agents across the host and all plugins.
Start with vivid functional colors. Choose softer colors only when a concrete requirement or measured problem supports that choice.
## What aggressive color selection means
Actively evaluate strong colors for accents, priority marks, status indicators, selection outlines, links, syntax, and important data.
Include high-saturation and high-value candidates. Treat 100% saturation and 100% HSV value as ordinary options when they serve the role.
Prefer the stronger candidate when readability, meaning, and distinction remain sound.
Do not automatically turn red into dusty coral, emerald into sage, gold into beige, or clear data colors into similar pastels.
Words such as quiet, refined, professional, premium, minimal, and cohesive do not set color limits.
Keep the layout focused through spacing, hierarchy, restrained repetition, and the amount of color on screen.
Use vivid colors where users must recognize identity, state, or meaning.
Set surfaces and dividers for their support role. There is no requirement to saturate every background, neutral, or text color.
A palette average is not a design target, and one bright token cannot excuse a mostly indistinct palette.
## Requirements by role
| Role | Requirement |
| --- | --- |
| Theme identity | Preserve characteristic hues and their strength from current references. |
| Priority and status | Use clear, assertive colors with opaque symbols. Pair color with shape or text. |
| Links and actions | Keep actionable text distinct and readable against its actual surface. |
| Selection and focus | Show a clear state change and boundary. Preserve readable content inside the selected area. |
| Syntax and data | Give different meanings distinct roles. Avoid several nearly identical muted colors. |
| Backgrounds and dividers | Support content and visible boundaries. Choose their strength by function rather than a palette-wide muting rule. |
| Disabled states | Distinguish unavailable actions while keeping labels readable. Do not apply their opacity to enabled content. |
Use shared theme tokens. Correct an inappropriate token at its source instead of adding local saturation or opacity overrides.
Do not fade an entire badge, row, or container when only its background needs transparency.
Keep meaningful foreground symbols and text opaque.
## References and known failures
Read the current reference cards and respect the user's stated source priority.
For Holo, prefer the current fan art. Exclude removed images from later palette decisions.
Separate characteristic colors from scenery, lighting, alternate clothing, and unrelated details.
The first trading screenshot and Bloomberg example demonstrate clear information and state distinctions. They do not prescribe a terminal-like appearance for RuneStone.
The October 13 review found specific problems:
- Holo used marshy green and pink roles that did not match the requested identity. Warm copper, chestnut, amber, and red replaced them.
- Asuka repeated green and similar cyan roles. Red, orange, yellow, and blue now carry clearer meanings.
- Malfoid used a sage accent and near-gray syntax. The emerald accent changed from about 29% saturation to 76%.
- Priority marks were too dark to draw attention. Their symbols now use full saturation and value with readable text.
These values record that correction. They are not universal quotas or fixed limits for future themes.
See the [menu and color review](menu-audit.md) for implementation evidence and image-surface limits.
## Readability and visual checks
Check contrast against the actual rendered background, including alpha, layered surfaces, images, overlays, and selected states.
HSV value is not perceived brightness or a contrast ratio. Full value does not guarantee readable text.
When contrast fails, compare foreground, background, local surface, and role changes before reducing color strength.
Preserve readable text and state recognition. Follow the project's accessibility thresholds and existing contrast checks.
Passing contrast alone does not prove useful color distinctions, theme identity, or effective priority emphasis.
Inspect screenshots at normal display scale. Check relevant light and dark appearances, narrow layouts, focus, hover, selection, and disabled states.
Check actual content, code, menus, and priority marks where the changed tokens appear.
Record unavailable checks and failures. Browser mocks do not replace native desktop acceptance.
## Evidence required for review
For each changed role, record:
| Field | Required evidence |
| --- | --- |
| Purpose | Meaning, theme reference, or recognition task |
| Implementation | Shared token and affected controls |
| Color | Old and new hex values, HSV saturation and value, and opacity |
| Readability | Foreground/background pairs, actual composite surface, and contrast results |
| Visual result | Normal-scale screenshots of affected states and layouts |
| Softer choice | Concrete requirement or measured problem, plus the stronger candidate considered |
A generic claim that muted colors look elegant or comfortable is insufficient.
Correct unexplained muting or record the unresolved issue before moving the work to Review.
Use the project's exception process for deliberate departures from this policy. A documented exception does not itself authorize the departure.
User acceptance still determines Done.
Agents also use the global `ui-functional-color` skill. This document supplies the project rules for contributors without that skill.
+112 -11
View File
@@ -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).