# Design decision log [Interface design](ui-design.md) · [Functional color](ui-color.md) This log records interface rule changes, recurring problems, and exceptions for RuneStone and its plugins. The [interface design guide](ui-design.md) holds the current rules and says when an entry is necessary. ## Use this log - Copy the matching template to the end of Entries. Give the entry the next free ID (UI-NNN) and a date. Replace every placeholder. - Link guide sections, source files, cards, and saved evidence. Record missing evidence as pending. Do not claim a check or an acceptance without evidence. - Record the decision source of a rule change or an exception, such as the user's direction or an accepted review. - State the scope: the app, named plugins, or specific controls. Do not extend a local decision to every plugin. - Rule change: update the guide in the same change. - Recurring problem: update the existing entry when the problem returns. Mark it resolved only after the prevention and its check pass. Record an unknown cause as unknown. - Exception: put a short note beside the affected rule in the guide and link the entry. When the exception ends, mark it retired and remove the note. - Keep replaced entries. Mark them superseded and link old and new entries in both directions. - Entry status describes the record only. It does not move a card to Done or replace the user's acceptance. ## Templates ### Rule change ```markdown ### UI-NNN — Short decision title - Type: Rule change - Date: YYYY-MM-DD - Status: Proposed / Accepted / Superseded - Decision source: User direction or review link - Previous rule: Old behavior and guide section - New rule: New behavior and guide section - Reason: User benefit and design principle - Scope: App, plugins, and controls - Shared implementation: Component or token paths - Exceptions: None, or entry links - Evidence: Screenshots, check results, review link, or pending - Replaces / replaced by: None, or entry links ``` ### Recurring problem ```markdown ### UI-NNN — Short problem title - Type: Recurring problem - Date: YYYY-MM-DD - Status: Open / Resolved - Existing rule: Guide section that still applies - Scope: App, plugins, and controls - Occurrences: Links to each violation, or to the regression and its earlier fix - Cause: Evidence, or unknown and the next investigation step - Correction: How this occurrence returns to the rule - Prevention: Shared component change, override removal, check, or rule clarification - Check: How to detect a recurrence, and the result or pending - Evidence: Screenshots and card, commit, or review links - Resolution / recurrence: Date and result, or pending ``` ### Exception ```markdown ### UI-NNN — Short exception title - Type: Exception - Date: YYYY-MM-DD - Status: Proposed / Accepted / Retired / Superseded - Decision source: User direction or review link - Current rule: Guide section and its exception note - Departure: Exact difference from the rule - User benefit: Why the standard pattern does not meet the need - Scope: Controls and states - Shared implementation: Component or token paths, and why a local difference is necessary - Review: Owner, and a date or trigger - Exit condition: When the standard pattern can return - Evidence: Screenshots, accessibility and interaction checks, or pending - Replaces / replaced by: None, or entry links ``` ## Entries ### UI-003 — Quiet menu choices - Type: Rule change - Date: 2026-10-12 - Status: Accepted - Decision source: User-selected cards d10adda6 and 48687378. - Previous rule: Menus used accent outlines and checkmarks for radio choices. Every row reserved an icon column. - New rule: Use neutral outlines, quiet radio highlights, and text columns for menus without icons. - Reason: Reduce competing accents and make the current choice clear. - Scope: Host menus and Project Management menus through the host API. - Shared implementation: actionMenu.ts, menu.css, and --rs-menu-border. - Exceptions: None. - Evidence: Shared menu checks and appearance checks passed. Screenshots are in output/appearance-pass3 and output/pm-october12. - Replaces: The outline and radio presentation from UI-002. UI-006 replaces this entry's panel outline. Its quiet radio choices remain. ### UI-004 — Detached tab work area - Type: Rule change - Date: 2026-10-12 - Status: Accepted - Decision source: User-selected card 5a8bc531. - Previous rule: Detached tabs hid side panes and allowed users to reopen them. - New rule: Detached tabs do not mount side panes, their switches, or the plugin ribbon. - Reason: Keep the new window focused on the transferred tab. - Scope: Windows opened through tab transfer. - Shared implementation: Workbench.svelte and its detached grid layout. - Exceptions: None. - Evidence: Browser transfer checks passed in both themes and narrow windows. Native window acceptance remains pending. - Replaces: None. ### UI-005 — Heading spacing - Type: Rule change - Date: 2026-10-12 - Status: Accepted - Decision source: User-selected card 17207fbc. - Previous rule: Document headings used separator lines. - New rule: Use spacing between headings and sections without separator lines. - Reason: Keep attention on the document text. - Scope: Writer and Reader headings. - Shared implementation: the heading rules in src/lib/layout/reading.css. - Exceptions: None. - Evidence: Editor browser checks passed in both themes. Screenshots are in output/editor-october12. - Replaces: None. ### UI-002 — Share the requested dropdown design - Type: Rule change - Date: 2026-10-11 - Status: Accepted - Decision source: RuneStone cards 71b17a71-13cb-4d8c-a9cb-8822b433a889 and 52b6f235-6c3e-44c0-9ab6-dcbfd371c0ce, selected by the user for implementation. - Previous rule: Menus used 26-pixel rows, 12-pixel text, and the ordinary panel border. Submenu parents had no default action. - New rule: Share the reference dropdown geometry across menus. A submenu parent can also run a default action. - Reason: Make dropdown choices easier to read. Let users create a blank note directly from New note. - Scope: Host action menus and plugin menus that use the host API, including theme, appearance, board, and list menus. - Shared implementation: [actionMenu.ts](../src/lib/ui/actionMenu.ts), [menu.css](../src/lib/ui/menu.css), and the `--rs-menu-*` tokens in [tokens.css](../src/lib/theme/tokens.css). - Exceptions: None. Existing older-host plugin fallbacks remain available. - Evidence: The card reference image `pass3-ref-0ce1efe3` (local `output/` file, not in the repository). Shared menu checks passed in both themes. Further screenshots accompany the card review. - Replaces / replaced by: The outline and radio presentation changed in [UI-003](#ui-003--quiet-menu-choices). Other rules remain. ### UI-001 — Separate design decisions from routine corrections - Type: Rule change - Date: 2026-10-11 - Status: Accepted - Decision source: The user's request to implement this policy in the guide, agent instructions, and decision log. - Previous rule: The guide required UI review evidence but did not distinguish corrections, rule changes, recurring problems, and exceptions. - New rule: Use the [record categories](ui-design.md#decision-records) and templates above. Keep current design rules in the guide. - Reason: Preserve useful design history without a log entry for every isolated correction. - Scope: Documentation and review workflow for the app and its plugins. - Shared implementation: [Decision records](ui-design.md#decision-records) and [review evidence](ui-design.md#review-checklist). No component or token change. - Exceptions: None. - Evidence: The user's explicit instruction in this chat. This entry changes documentation policy and has no visual reference image. - Replaces / replaced by: None. ### UI-006 — Borderless shared menus - Type: Rule change - Date: 2026-10-12 - Status: Accepted - Decision source: User-selected card 8aa18bb1 requests removal of menu borders across Project Management. - Previous rule: Shared menus used a neutral panel outline. - New rule: Shared menus use a transparent outline while retaining their shadow, inset rows, and keyboard focus. - Reason: Keep attention on the work and give plugin menus one shared design. - Scope: Host action menus and Project Management menus through the host API. Older-host fallback menus also omit panel borders. - Shared implementation: --rs-menu-border in tokens.css, menu.css, and PM style.css. - Exceptions: None. - Evidence: Menu and PM check reports and screenshots accompany the card review. - Replaces: The panel outline from UI-003. Its quiet radio choices remain. ### UI-007 — Repeated menu drift - Type: Recurring problem - Date: 2026-10-12 - 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 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. - Language occurrence: The French code menu truncated its longer action label during the language-card review on 2026-10-15. - Language cause: A global .action-label rule forced ellipsis and prevented the shared menu label from wrapping. - Language correction: The shared menu label explicitly resets overflow, text overflow, and white space in menu.css. - Language prevention: The shared menu check now includes a long translated action beside a shortcut at a viewport edge. - 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 - Type: Rule change - Date: 2026-10-12 - Status: Accepted - Decision source: User-selected card 48671ea0. - Previous rule: Editable native menus exposed all default WebView2 tools. - New rule: Retain recognized editing commands and omit unsupported system tools. - Reason: Keep note menus focused on work within RuneStone. - Scope: Editable WebView2 targets in the host. - Shared implementation: src-tauri/src/spelling.rs filters command names before either menu path. - Exceptions: Separators retain their layout role. Non-editable native menus retain their unrelated actions. - 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: Superseded by [UI-043](#ui-043--opaque-menus) - Decision source: Card e3c5261f requests transparency across menus. - Previous rule: Menus used opaque elevated surfaces. - New rule: Shared menus use an 82% theme tint, including hover and active rows. - 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. - Replaced by: [UI-043](#ui-043--opaque-menus) makes menus opaque without a background image. ### 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. Card a18e86d1 exposed native tab titles outside the shared tooltip helper. Tab labels and close buttons now use attachTooltip. The exact tab receives hover, focus, Escape, and theme checks in october15Appearance.smoke.mjs. Card 44460b1d exposed native and local tooltips in Git after UI-019. Cause: Git controls used title attributes and a separate tooltip style. Correction: Git uses a delegated tooltip helper with the shared .rs-tooltip presentation and theme tokens. Prevention: Check each reported changed-file, commit, and commit-file control with hover, focus, Escape, both themes, and narrow windows. Evidence: RuneStone_Git/.audit/git-tooltip-evidence.json and git-tooltip-*.png. 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](archive/menu-audit-2026-10-13.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. ### UI-028 — Adjustable surface transparency and fixed custom palettes - Type: Rule change - Date: 2026-10-15 - Status: Implemented for user review - Decision source: Cards 31d8931e-9d1b-4688-bb4f-03ee727b0f8f and 90906e18-4082-445e-a6fd-3cbda4d94226. - Previous rule: Image surfaces and menus used fixed tint percentages. Theme templates contained separate light and dark palettes. - New rule: Appearance controls surface transparency from 0% to 100% and can make surfaces opaque. The slider uses current theme tokens. Theme templates contain one fixed palette and the current interface, prose, heading, and code font stacks. - Reason: Users need control over image visibility and compositing. A single palette matches the selected theme without a separate mode toggle. - Scope: Host menus, image surfaces, compatible plugin surfaces, and custom theme import and export. - Shared implementation: appearance.ts, customThemes.ts, and the surface-opacity tokens in tokens.css. - Compatibility: Default surface and editor tints remain 82% and 90%. Schema 1 files remain importable. - Evidence: tests/smoke/settings/displayLanguage.smoke.mjs, tests/unit/theme/customThemes.spec.ts, and the affected cards retain checks and screenshots. - Follow-up evidence: Cards 5a56a250-b46a-4319-8f25-5f6ac4362a32, 682ad51f-66a1-477d-b02e-c1acb1c14d4e, and 97fe6f6b-5780-436e-abd8-a8135efbbe87 cover the full range, themed slider, and missing font stacks. `tests/smoke/appearance/themeVariants.smoke.mjs` checks the exact controls and exports. - Limits: Browser checks use desktop mocks. Native display and user acceptance remain open. - Replaced by: [UI-042](#ui-042--theme-file-format-3-and-terminal-colors) replaces the template format. The transparency rule remains. ### UI-029 — Text selection transparency - Type: Rule change - Date: 2026-10-15 - Status: Implemented for user review - Source: Card cf9f6f56-d7c3-4ed9-9c15-61456c1009b2 requests transparency in selected text. - Previous rule: The shared selection color could be opaque. - New rule: Cap selection opacity at 65%. Preserve the theme hue and any lower custom opacity. - Reason: Keep the background visible beneath selected text. - Scope: Writer, Reading, IDE, and compatible plugin fields. - Implementation: appearance.ts sets --rs-selection after the theme palette. Theme exports retain their source colors. - Evidence: october15Appearance.smoke.mjs checks the exact tab, selected text, slider, background, and installation checkbox. Screenshots stay in output/october15-appearance. - Limits: Native desktop appearance and user acceptance remain open. Card d3b52384 exposed opaque Terminal selection after UI-029. Cause: The xterm DOM renderer blends selection colors into opaque backgrounds, including selected glyph backgrounds. Correction: Terminal applies the shared selection color through --rs-terminal-selection. Its adapter caps alpha at 65% and preserves lower alpha values. The overlay retains the source hue. Selected glyph backgrounds stay transparent, and text stays opaque. Evidence: RuneStone_Terminal/.audit/terminal-selection-evidence.json records source colors, alpha, composites, and contrast. Screenshots cover both themes at 620 and 1440 pixels. Measured text contrast is 8.94:1 in dark and 11.80:1 in light. Native shell, background image, and desktop acceptance remain open. ### UI-030 — Settings installation checkbox theme drift - Type: Recurring problem - Date: 2026-10-15 - Status: Implemented for user review - Source: Card 55911872 reports repeated Settings theme drift. Related theme-control corrections appear in UI-028. - Cause: The installation checkbox omitted accent-color and used the browser default. - Correction: PluginManager now reads --rs-accent. This correction adds no fixed palette colors. - Prevention: Check the exact installation control in the reported theme and another appearance. - Evidence: october15Appearance.smoke.mjs and output/october15-appearance retain the checks and screenshots. - Limits: Native desktop appearance and user acceptance remain open. ### UI-031 — Shared Find controls in plugin views - Type: Rule change - Date: 2026-10-15 - Status: Implemented for user review - Decision source: Cards 59c3a70a and 4621dd41. - Previous rule: Document modes shared FindPanel. Plugin views without a Find handler exposed the native browser search. - New rule: Plugin editor views use FindPanel to search their visible text when the plugin supplies no Find handler. - Reason: Keep Ctrl+F consistent across the central work area. - Scope: Plugin editor views. A plugin Find handler retains control of its own search engine. - Shared implementation: PluginEditor.svelte, Workbench.svelte, readingSearch.ts, FindPanel.svelte, and find.css. - Evidence: pluginFind.smoke.mjs covers two plugin views, card buttons, hidden content, keyboard navigation, focus return, both themes, and narrow windows. - Evidence files: output/todo-oct15/plugin-find/. - Limits: Rendered text search excludes input values and content inside embedded documents. Native desktop acceptance remains open. ### UI-032 — Checklist marker keyboard entry - Type: Recurring problem - Date: 2026-10-15 - Status: Implemented for user review - Source: Card 56229174 returned after the 0.1.37 review. - Cause: The checkbox replacement starts at the list bullet. The edit interval started later, at the opening bracket. - Test gap: The earlier smoke placed the caret inside the marker through the editor API. It missed real keyboard entry. - Correction: The edit interval includes the replacement start. Task text retains its rendered checkbox. - Shared implementation: liveMarkdown.ts. Existing checkbox styles and theme tokens remain. - Prevention: Use ArrowLeft and Home from task text. Edit the raw marker, return to text, and toggle the checkbox. - Evidence: editorClipboardChecklist.smoke.mjs passes in both themes at 1440 and 600 pixels. - Evidence files: output/editor-clipboard-checklist/. - Limits: Browser tests use desktop service mocks. Native desktop acceptance remains open. ### UI-033 — List capacity and a frozen All Tasks overview - Type: Rule change - Date: 2026-10-15 - Status: Implemented for user review - Decision source: Cards ae44dc20 and 8561a6a0. - Previous rule: Lists showed counts without capacity. All Tasks grouped cards by status and allowed direct movement. - New rule: Lists can set an optional maximum. All Tasks shows each board list and prevents direct movement between lists. - Reason: Show list capacity and prevent accidental moves between similarly named cards and lists from different boards. - Scope: Project Management Kanban lists and the All Tasks overview. - Shared implementation: BoardList.maxCards, BoardStore.setLimit, listMenu, allTaskColumns, shared menu tokens, and --rs-error. - Behavior: Capacity warns at or above the maximum. It permits extra cards, as the supplied references show. - Behavior: All Tasks retains empty and custom lists with board names. Card details and named boards retain move controls. - Evidence: List limit, All Tasks, board drag, and package browser checks. Screenshots are in RuneStone_Project_Management/output/card-work/. - Release separation: 0.2.43 contains list limits. 0.2.43b adds the complete freeze. The earlier 0.2.43a is superseded. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-034 — Find scope and shared list names - Type: Rule change - Date: 2026-10-16 - Status: Implemented for user review - Decision source: Cards 04b333b0 and 505c6a28. - Previous rule: UI-031 added fallback Find to generic plugin views. UI-033 kept separate columns for matching list names. - New rule: Document editors expose fallback Find. Generic plugin views and Kanban documents do not expose fallback Find. - New rule: Matching list names share one All Tasks column. Name matching ignores case and outer spaces. - Reason: Keep document search relevant and avoid repeated columns across boards. - Scope: Host plugin Find controls and the Project Management All Tasks overview. - Shared implementation: PluginEditor.svelte, FindPanel.svelte, readingSearch.ts, and PM all-tasks.ts. - Behavior: Plugins with a Find handler retain their search behavior. Distinct lists and empty lists remain visible. - Behavior: Cards appear once per matching column. The overview keeps movement controls disabled. - Behavior: Merged columns omit board-specific capacity limits. Named boards retain their limits and movement controls. - Evidence: Host pluginFind smoke, PM All Tasks browser checks, 129 PM unit tests, and shared menu checks pass. - Evidence files: Host .audit/host-privacy-find and PM output/card-work/all-tasks-{light,dark}-{1100,390}.png. - Local overrides: No color or shared menu presentation overrides changed. Shared focus and control tokens remain. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-035 — Board dividers in All Tasks - Type: Rule change - Date: 2026-10-16 - Status: Implemented for user review - Decision source: Card 0e80098e-f6a4-4552-a503-601be8b0310c and its divider mockup. - Previous rule: Matching lists shared a column without board labels. - New rule: Each populated column groups cards under board names with a divider below each heading. - Behavior: Shared cards appear once per column. Their heading names all boards represented by that placement. - Behavior: Cards without a matching active board use No active board. Empty groups stay hidden. - Reason: Show board membership without repeated columns or card copies. - Scope: Project Management All Tasks Kanban columns. - Shared implementation: allTaskGroups, pm-board-group-heading, --pm-text, and --pm-line. - Local overrides: No palette changes or menu overrides. Heading text stays opaque. - Evidence: Type checks, unit tests, and All Tasks browser checks cover shared memberships, detail moves, and frozen cards. - Evidence files: RuneStone_Project_Management/output/card-work/all-tasks-{light,dark}-{1100,390}.png. - Design check: Headings replace repeated card badges. Existing controls and the work area retain their layout. - Limits: Browser tests use desktop service mocks. Native desktop acceptance remains open. ### UI-036 — Compact list collapse and assigned creation - Type: Rule change - Date: 2026-10-16 - Status: Implemented for user review - Decision source: Cards fe74c884-3511-4c11-9f6a-8a7e584d940e and f73144cc-6567-4ed3-8b79-14a3ac038016. - Previous rule: Collapse hid cards without reducing column width. All Tasks lacked creation controls for most board lists. - New rule: Collapsed lists use narrow strips with vertical names, counts, and an accessible expand control. - New rule: All Tasks creation requires an active board and resolves list names to that board's list IDs. - Reason: Recover horizontal space and create assigned cards without leaving the overview. - Scope: Project Management Kanban columns and the shared card editor. - Shared implementation: BoardStore.collapse, PMViewState.collapsedLists, openEditor, createSharedChoices, and TaskStore.create. - Shared tokens: Existing --pm-panel, --pm-line, --pm-text, --pm-radius, and host focus tokens. - Local overrides: Column layout changes only. No new palette values or menu presentation overrides. - Design check: The vertical strip preserves list identity and count. Existing Board and List controls handle assignment without a second form. - Evidence: Unit tests cover assigned creation and stale destinations. Browser tests cover collapse, focus, board switching, required assignment, cancellation, and saved cards. - Evidence files: RuneStone_Project_Management/output/card-work/collapsed-*, create-all-*, create-board-menu-*, and create-list-menu-* screenshots. - Limits: Browser tests use mocked workspace services. Native desktop acceptance remains open. ### UI-037 — Saved metadata and explicit description drafts - Type: Rule change - Date: 2026-10-17 - Status: Implemented for user review - Decision source: Cards 220b0d31, 58575469, f44bdd09, and 4ade34d0. The user chose drafts until Save in this chat. - New rule: Existing card descriptions remain drafts until the user chooses Save. Cancel restores the saved description. - Behavior: Closing card details preserves the draft separately. Reopening shows an unsaved marker. Edit opens the draft. - Behavior: Board and list choices save immediately. Other card metadata uses the same save path on outside click and Close. - Reason: Keep description edits safe while making the commit action clear. Prevent a close action from discarding metadata. - Scope: Project Management card details and local draft storage. - Shared implementation: openEditor, descriptionEditor, and the description draft store. - Shared tokens: Existing control, focus, panel, and text tokens. No palette changes. - Evidence: TypeScript and 134 unit tests pass. All 236 browser checks pass across the full run and the focused fixture rerun. - Evidence files: RuneStone_Project_Management/.audit/october-{description,timestamp}-{theme}-{width}.png. - Limits: Native desktop acceptance remains open. ### UI-038 — Fixed workspace default board - Type: Rule change - Date: 2026-10-17 - Status: Implemented for user review - Decision source: Cards 2596f9c9 and 8cffc80a, including the agreed default-board scope. - New rule: The Project Management launcher opens a fixed workspace default: All tasks or a selected board. - Behavior: Restored tabs and explicit board links retain their targets. An unavailable default returns to All tasks. - Behavior: A workspace without boards shows a visible New board action. - Reason: Give first-time users a clear start and let each workspace retain its chosen entry point. - Scope: Project Management settings, initial empty state, and host view launch handling. - Shared implementation: PluginView.launch, ExternalSession.launch, and the existing Project Management board registration. - Shared tokens: Existing action, control, focus, and menu tokens. No palette changes. - Evidence: Host session tests and browser checks pass for launch, explicit opening, and restored tabs. Plugin checks pass, including all 236 browser checks across full and focused runs. - Evidence files: RuneStone_Project_Management/.audit/october-{default,onboarding}-{theme}-{width}.png. The packaged plugin also passes its host state check. - Local overrides: The new onboarding control uses the existing standard button for readable text in both themes. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-039 — Close secondary windows after the last tab - Type: Rule change - Date: 2026-10-21 - Status: Implemented for user review - Decision source: Card 6fcee006-c5a5-4d1b-9605-5d763715b95c. - New rule: Closing the last tab closes a secondary workspace window. The main window keeps a New tab. - Reason: Close an empty secondary window when the user finishes its work. - Scope: Ordinary secondary workspace windows and detached tabs, including documents, plugin views, and empty tabs. - Shared implementation: Workbench.closeTabs calls the existing window-close handler. Cancel preserves the last tab and unsaved edits. - Shared tokens: Existing tab controls, icons, focus, and theme tokens. No style or color changes. - Local overrides: None added. - Evidence: Type checks and 268 unit tests pass. The tab browser check passes for button, middle-click, shortcut, and Close all. - Evidence: The browser check also covers mixed tabs, pinned tabs, plugin tabs, and Cancel with unsaved edits. - Evidence files: .audit/secondary-last-tab-cancel.png and .audit/compact-tabs-{width}-{theme}.png. - Limits: Desktop calls use browser mocks. Native window closure and active terminal confirmation still need desktop acceptance. ### UI-040 — Nested lists and one editor for Write and Source - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: Cards 088e778b and 696c30ce, and the approved Phase 4 plan of 2026-10-28. - Previous rule: Tab in a list item added indentation and kept the number. Write indented by 2 spaces, and the IDE view by 2 spaces in Monaco. - New rule: Tab in a list item makes a nested item, and Shift+Tab moves it one level up. Both renumber the list. - New rule: Nested ordered lists show decimal numbers at level 1, letters at level 2, and Roman numerals at level 3 in Write and Read. The Markdown source keeps the numbers, for example `1.`. - New rule: The indent is a fixed 4 spaces in Write and Source, with no setting. - New rule: Write and Source are two configurations of one CodeMirror state. They share the undo history. - Reason: Lists behave as in common word processors. One editor removes the Monaco model bridge and its timers. - Scope: Markdown documents in Write and Source, and all source files. - Shared implementation: DocumentEditor.svelte, markdownLists.ts, liveMarkdown.ts, sourceView.ts, codeLanguages.ts, editorStates.ts, and the `.reading ol ol` styles in reading.css. - Exceptions: An empty nested item cannot start a list inside a paragraph in CommonMark. Write labels it, and Read shows it as text until the item has text. - Evidence: editor/listNesting.smoke.mjs covers Tab, Shift+Tab, labels, Read letters, the shared history, and the 4-space indent in both themes at 1440 and 600 pixels. - Evidence files: output/smoke/editor/listNesting/. - Replaces / replaced by: None. - Limits: Source has no minimap, no command palette, and no bracket pair colors. Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-041 — Theme roles and theme data - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: The approved Phase 5a plan of 2026-10-28, stage 5a-1. - Previous rule: `appearance.ts` kept palettes as arrays with fixed slot positions. Branches on theme IDs chose the secondary accent, status, syntax, and font values. `tokens.css` repeated the fonts and the selection fill for each palette. The contrast tests covered only the character palettes. - New rule: Each built-in theme is a data file in `src/lib/theme/themes/`. `roles.ts` names each color role and the one rule that fills a missing role. No code outside the theme data names a theme ID. `contrast.ts` holds the readability rules, and a test applies them to every palette. - New roles: `--rs-link`, `--rs-focus`, `--rs-on-accent`, `--rs-highlight`, and `--rs-scrim`. `--rs-item-selection-bg` and `--rs-line-highlight` are now roles. `--rs-danger` is removed, and its users take `--rs-error`. - Reason: One definition for each color, and one place to correct it. The rules show which palettes fail and why. - Scope: Built-in and custom themes, link text, focus outlines, dialog backdrops, highlighted text, and plugin views through the tokens. - Shared implementation: `roles.ts`, `color.ts`, `contrast.ts`, `themes/`, `appearance.ts`, and `tokens.css`. [Theme tokens](plugin-development.md#theme-tokens) lists the tokens for plugin authors. - Visible changes: The save conflict banner uses `--rs-warn` for its line. It used the fallback of the undefined token `--rs-warning`. Highlighted text in Write takes its color from `--rs-highlight` (`#edc65b` instead of `#e7c56a`, with the same 22% fill). Plugin Manager and image viewer backdrops use the shared 53% scrim instead of 60%. - Custom themes: A theme export now writes the colors that the app applies. A derived role follows the theme's own colors, not the RuneStone colors. - Evidence: A comparison of the applied colors before and after the change gives the same values for every built-in theme and mode. `tests/unit/theme/contrast.spec.ts` lists 29 rule failures of the current palettes as `todo`. Stages 5a-3 and 5a-4 remove them. - Replaces / replaced by: None. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-042 — Theme file format 3 and terminal colors - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: The approved Phase 5a plan of 2026-10-28, stage 5a-2, and card 90906e18. The owner approved the terminal roles on 2026-10-28. - Previous rule: Theme files used schema 2: one `colors` palette with 26 keys and no mode. A custom theme took missing colors from RuneStone in the mode of its background. Five syntax keys had Monaco names, and two of them had no use in Source. - New rule: Theme files use schema 3 with `mode`, an optional built-in `base`, and `colors` keys equal to the role names. The export writes every role and font. An import takes the missing colors and fonts from the base theme, by default RuneStone. Built-in themes pass the same parser. - Syntax roles: `variable`, `property`, `constant`, `punctuation`, and `heading` replace `local`, `instance`, and `global`. `parameter` and `static` are gone. Schema 1 and 2 files convert on import. - Terminal roles: `--rs-ansi-*` and `--rs-ansi-bright-*` give the 16 terminal colors. Red, green, and yellow follow the status colors. Blue, magenta, and cyan have their own defaults, so a red accent no longer makes terminal blue red. - Reason: Short theme files that build on a built-in theme. One name for each color in the file, the CSS token, and the docs. Terminal colors that keep their meaning in every theme. - Scope: Theme import, export, saved custom themes, Source syntax colors, and the terminal tokens. The Terminal plugin adopts the terminal roles in its own repository. - Shared implementation: `customThemes.ts`, `roles.ts`, `appearance.ts`, `contrast.ts`, and `sourceView.ts`. - Visible changes: None in the app. Exported files and import error messages change. The terminal colors change only after the Terminal plugin uses the new tokens. - Evidence: The applied colors and the Source colors of each tag group are the same as before stage 5a-1, for every built-in theme and a saved schema 2 custom theme. `tests/unit/theme/customThemes.spec.ts` covers schema 3, `base`, and the conversion of old syntax names. - Replaces / replaced by: The template format of [UI-028](#ui-028--adjustable-surface-transparency-and-fixed-custom-palettes). Its transparency rule remains. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-043 — Opaque menus - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: Owner decision 1 of 2026-10-27 (interface review issue 1), in stage 5a-3 of the approved Phase 5a plan. - Previous rule: [UI-013](#ui-013--translucent-menu-surfaces). Menus used an 82% theme tint without blur, so document text showed through menu rows. - New rule: Menus are opaque. `--rs-menu-bg` is `--rs-bg-elevated`, and `--rs-menu-active-bg` is `--rs-bg-active`. Only with a background image, menus are at least 92% opaque and blur the image. A lower transparency amount makes them more opaque. - Submenus: Submenus show as manual popovers in the top layer. A blur makes the parent menu the containing block of its fixed children, so the blur clipped and moved submenus inside it. - Reason: Menu labels must not collide with document text. Without an image, nothing behind a menu needs to show. - Scope: Host action menus, submenus, plugin menus through the host API, and the workspace picker. - Shared implementation: `tokens.css` (`--rs-menu-bg`, `--rs-menu-active-bg`, `--rs-menu-backdrop`, and the `--rs-image-menu-*` tokens), `menu.css`, `appearance.ts` and `backgrounds.ts` (the image switch), and `actionMenu.ts` (popover submenus). - Evidence: `tests/smoke/menus/consistency.smoke.mjs` checks an opaque menu without an image, and 92% with a blur over an image. Screenshots are in `output/phase-5a/5a-3/` in the main checkout. - Replaces: [UI-013](#ui-013--translucent-menu-surfaces). - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-044 — Core palettes and the lightest page - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: Owner decision 9 and the theme-colors group of decision 13 (interface review issues 6 and 20). The owner chose candidate B of each palette on 2026-10-28. - Previous rule: In RuneStone Light, the page was darker than the side panes. In Claude Light, the page and the panes had one color. Each core palette failed 2 to 8 readability rules, for example Claude Light links at 2.96:1. - New rule: In a light palette, the page (`bg`) is the lightest surface, and the side panes (`bg-elevated`) have a slight tint. Every core palette passes all readability rules in `contrast.ts`. A text role keeps the hue of its source and changes only its lightness to reach 4.5:1. - RuneStone Dark (Graphite): neutral graphite surfaces. The rune cyan of the app icon, `#55dcf5`, is the only hue in the frame. - RuneStone Light (Paper): a warm paper page `#fdfdfa`, neutral gray panes, and a teal accent `#026f79`. - Claude Dark (App): the layout of the Claude app, a `#262624` page with darker `#1f1e1d` panes, and the orange `#ed8968`. - Claude Light (White): a white page, brand Light `#faf9f5` panes, and the orange `#ab4e2f` for text. The brand orange `#d97757` has only 2.5:1 on the light grays. - Sakura (Petal): a Blossom White page, Petal Veil for active rows, a light Spring Leaf tint on the panes, and the Rose Garden hue `#a0446b` as accent. - Rule addition: The `accent-text` rule also checks `accent-2`, because inline code in Read uses it as text. - Reason: Readable text, links, status colors, and syntax in every core palette. The page draws the eye, not the frame. - Scope: RuneStone, Claude, and Sakura. Stage 5a-4 redesigns the character palettes. - Shared implementation: `themes/runestone.ts`, `themes/claude.ts`, `themes/sakura.ts`, `contrast.ts`, and the root defaults in `tokens.css`. - Visible changes: The colors of the five palettes. - Evidence: The comparison sheets and `readability.md` in `output/phase-5a/5a-3/` in the main checkout. `tests/unit/theme/contrast.spec.ts` lists no failures for these palettes. - Replaces / replaced by: None. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-045 — Character palettes from the reference cards - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: The approved Phase 5a plan, stage 5a-4, and the reference cards 0344ab0f (Holo), abada65c (Asuka), and 6d09b547 (Malfoid). The owner chose candidate B of each palette on 2026-10-28. - Previous rule: Crimson Pilot used a saturated red for every border, and its accent and error were nearly the same red. In Harvest Moon, the accent and the warn color were both amber. In Silver Serpent, the accent and the ok color were both green. Harvest Moon and Silver Serpent errors were below 4.5:1 on panels. - New rule: A character color goes to the accents, the selection, and the syntax roles. Surfaces and borders get low-chroma tints of the character. Each status color differs from the accent. Every character palette passes all readability rules. - Harvest Moon (Tail): copper from the tail `#f38c48` as the accent, cream from the tail tip as the second accent, red from the eyes for numbers, and red-brown surfaces. Every identity role stays warm. - Crimson Pilot (Plugsuit): plugsuit red `#ff564e` as the accent, orange hair as the second accent, blue eyes for types, the yellow dress for strings, wine surfaces, and a navy selection. Error is a light rose red `#ff8cc1`, so it differs from the accent. - Silver Serpent (Silver): silver from the grey eyes `#bfd4e7` as the accent, Slytherin emerald as the second accent, platinum hair for strings, and charcoal surfaces from the robes. - Method: A script measured the main hue clusters of the reference images, without white backgrounds, the Gryffindor scarf image, and the casual clothes image. The clusters include skin and backgrounds, so each color is an adaptation, not a sample. Text roles keep their hue and change only lightness to reach 4.5:1. - Test change: `tests/unit/theme/characterPalettes.spec.ts` measures text selection as the app draws it, at most 65% opaque over the page ([UI-029](#ui-029--text-selection-transparency)). It measured the raw selection color before. The known-failure list in `contrast.spec.ts` is gone, because no palette fails a rule. - Reason: Status colors stand out from the frame. Each theme keeps the colors of its character. - Scope: Harvest Moon, Crimson Pilot, and Silver Serpent. - Shared implementation: `themes/harvestMoon.ts`, `themes/crimsonPilot.ts`, and `themes/silverSerpent.ts`. - Visible changes: The colors of the three palettes. File, table, and search-match selections keep the selection color at 65%, as before. - Evidence: The comparison sheets and `readability.md` in `output/phase-5a/5a-4/` in the main checkout. - Replaces / replaced by: The palette values of [UI-012](#ui-012--retain-three-stronger-character-themes). Its theme set and names remain. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. The KnottyWyvern Portal still uses the earlier Harvest Moon colors. ### UI-046 — Readable matches and selected rows - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: A gap found in stage 5a-4. The owner approved the fix on 2026-10-28. - Previous rule: `--rs-item-selection-bg` came from the accent at 20%. Source draws search matches and selection matches with this fill behind code, and no rule checked that surface. In four core palettes, syntax colors were 3.8:1 to 4.3:1 on it. In RuneStone Light and Claude Light, dim text was 4.0:1 to 4.2:1 on the file selection fill. - New rule: The `text` rule also checks the item selection fill over `bg-elevated`. The `syntax` rule also checks the item selection fill over `bg`. The derived fill is the accent at 12%. - Reason: Code inside a search match and dim text in a selected row stay readable. The selection outline keeps the boundary visible. - Scope: Every theme that does not set its own `item-selection-bg`: RuneStone, Claude, and custom themes. Sakura and the character themes set their own fill and pass. - Shared implementation: `roles.ts` (the derivation), `contrast.ts` (the `match` surface), and the root default in `tokens.css`. - Visible changes: Selected rows, table cells, Settings navigation, and Source matches have a lighter fill in RuneStone and Claude. - Evidence: `tests/unit/theme/contrast.spec.ts` applies the new checks to every built-in palette. Screenshots are in `output/phase-5a/5a-4/match-fill/` in the main checkout. - Replaces / replaced by: None. - Limits: Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-047 — Theme editor tab and theme cards - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: The approved Phase 5a plan of 2026-10-28, stage 5a-5: the editor is a workbench tab, and the picker shows preview cards with a check mark. - Previous rule: Appearance chose the theme from a text menu. A custom theme came only from an edited JSON file. - New rule: Appearance shows a preview card for each theme. The cards are one radio group: the arrow keys move and select, and the current card has the selection outline and a check mark. **Edit theme** opens the theme editor as a workbench tab in the window that opened Settings. - Editor: Seven groups show every color role. Each role has a color picker, a hex field, the lowest result of the readability rules that it takes part in, and a reset button after a change. A warning icon and the text of the result mark a failure, not color alone. The window shows each change at once. Save writes a short schema 3 theme with the built-in theme as its base. A built-in theme does not change: Save creates a custom theme. Discard returns to the saved colors. Duplicate saves a copy. Closing the tab without a save returns the window to the saved theme. - Implementation: The editor is a built-in package, like the browser. Its view uses the editor tab code of plugins. The Settings window sends `runestone-theme-editor-open` to the window that opened it. The in-window Settings dialog closes when the editor opens. - Reason: The real window is the preview. The cards show each theme before a choice. - Scope: Settings → Appearance and the theme editor tab. - Shared implementation: `ThemePicker.svelte`, `ThemeEditor.svelte`, `themeEditor.ts`, `editorView.ts`, `themeEditorRequest.ts`, `appearance.ts` (`applyThemeColors`), and the built-in activation in `plugins/external.ts`. - Evidence: `tests/smoke/appearance/themeEditor.smoke.mjs` and `tests/unit/theme/themeEditor.spec.ts`. Screenshots are in `output/phase-5a/5a-5/` in the main checkout. - Replaces / replaced by: The theme choice in the action menu rule of "Choice lists and pickers". Other short choices stay in the action menu. - Limits: The editor changes colors, not fonts. Browser checks use desktop service mocks. Native desktop acceptance remains open. ### UI-048 — Command palette, formatting shortcuts, and platform labels - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: Owner decisions 2, 7 (shortcut labels), and 10 of 2026-10-27 (interface review issues 2, 15, and 22), stage 5-2. - Previous rule: Ctrl+B toggled the sidebar, so Writer had no Ctrl+B, Ctrl+I, or Ctrl+K. Formatting needed the context menu. Interface text wrote "Ctrl" in three styles ("Ctrl T", "Ctrl+T", "Ctrl N"). Help listed 6 shortcuts in a closed section, and no command list existed. - New rule: In Writer, Ctrl+B, Ctrl+I, Ctrl+Shift+X, and Ctrl+Shift+H format the selection, and Ctrl+K inserts a Markdown link. The Format menu shows these shortcuts. Ctrl+\ (the physical key on every layout) toggles the sidebar. Ctrl+Shift+P opens the command palette: every workbench command with its shortcut, then the plugin commands. Help lists every shortcut in groups, open by default. `src/lib/ui/shortcuts.ts` writes each shortcut label for the platform, and the catalog uses placeholders. - Reason: A writing app needs the common formatting keys. A shortcut that a user cannot find does not help. - Scope: The workbench, Writer, Help, the menus, the tooltips, and the catalog. - Shared implementation: `workbenchKeys.ts` (labels, `commandShortcut`, and the Help list), `shortcuts.ts`, `CommandPalette.svelte`, `formatKeys.ts`, and `SettingsDialog.svelte`. - Evidence: `tests/smoke/layout/commands.smoke.mjs`, `tests/unit/ui/shortcuts.spec.ts`, and `tests/unit/layout/workbenchKeys.spec.ts`. - Replaces / replaced by: The Ctrl+B sidebar shortcut in the user guide. - Limits: The macOS labels are tested as unit cases, not on a Mac. Browser checks use desktop service mocks. ### UI-049 — One view control and one file name - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - 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. - File name: The file name title stays on by default. **Settings → General → File name title** hides it in Write and Read. The breadcrumb shows only the folder, with the full path in its tooltip. The status bar shows the view, not the path. - Reason: A choice that a user cannot see does not help, and a target must not move under the pointer. "IDE" promised language services that Source does not have. The tab already names the file. - Scope: Document panes, the tab menu, the status bar, Settings → General, and the docs. - Shared implementation: `ViewModes.svelte`, `documentPanes.ts` (`split` beside `reading`), `fileTitle.ts`, and the `Source` value of the `Chrome` type. - Evidence: `tests/smoke/layout/viewModes.smoke.mjs`, `tests/unit/layout/documentPanes.spec.ts`, and `tests/unit/layout/settings.spec.ts`. - Replaces / replaced by: `ModeSwitcher.svelte` and its hover test. - Limits: Split now shows Write beside Read when Write is the editor. Choose Source for the former source and preview layout. Browser checks use desktop service mocks. ### UI-050 — Global actions, tabs, and platform title bars - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: Owner decisions 3, 7, and 12 of 2026-10-27 (interface review issues 3, 8, and 15), stage 5-4. - Previous rule: The workspace button, Help, and Settings sat in the footer of the left pane, so they left the window with the pane. The plugin ribbon had no width without plugin entries. Tabs could shrink to 69 pixels, with no list and no sign of hidden tabs. The fixed drag area was 40 pixels. Every platform got rounded 40-pixel caption buttons, and macOS got Windows caption buttons. - New rule: A bar at the bottom of the side pane holds the workspace switcher, Help, and Settings, as in Obsidian. The switcher shows the workspace name and opens the workspace list above it. The left ribbon is always present and holds plugin views. While the side pane is closed, the workspace switcher, Help, and Settings move to the bottom of the ribbon. Tabs keep 120 pixels and scroll, with fades at the ends and a ⌄ list of all tabs that marks pinned and unsaved tabs. The header keeps a drag area of 120 pixels after the tabs. In a narrow header, the tabs shrink first, and the drag area keeps at least 48 pixels. Windows and Linux get square caption buttons, 46 pixels wide and full height. macOS keeps its native traffic lights through an overlay title bar, and each title bar leaves `--rs-titlebar-inset-start` (78 pixels) free for them. - Snap Layouts: The custom title bar has no native caption buttons, so a hit test cannot show the flyout. When the pointer rests 500 ms on maximize, the host presses Win+Z for the focused window. This is the method of the existing Win+H dictation command. - Reason: Global actions must stay reachable when the side pane closes. A tab label must stay readable. Each platform keeps its own window conventions. - Ribbon tools (2026-10-28, owner direction): New browser tab, Terminal, Plug-in views, and Commands moved from the header to the top of the left ribbon, so the tabs have more room. Save, the outline toggle, and the window controls stay in the header. A detached tab window has no ribbon and keeps these tools in its header. - Correction (2026-10-28): The first version put the workspace button in the header and Help and Settings in the ribbon. The owner meant one bar at the bottom left, as in Obsidian. The record of decision 3 said "left ribbon", which I read as the vertical ribbon. - Scope: The main header, the side pane, the left ribbon, the tab bars, the Settings and Browser window title bars, and the window builders of the host. - Shared implementation: `WorkbenchHeader.svelte`, `LeftPane.svelte`, `PluginRibbon.svelte`, `TabBar.svelte`, `WindowControls.svelte`, `src-tauri/src/window_frame.rs`, `src-tauri/tauri.macos.conf.json`, and the `--rs-titlebar-inset-start` token. - 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. ### UI-052 — Panes that give way, one icon per action, and consistent Settings - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: Owner decisions 6 (menu separator and danger color) and 13 (layout and icons, Settings) of 2026-10-27 (interface review issues 9, 11, 13, 19, and 21), stage 5-6. - Previous rule: Side panes kept 260 and 240 pixels in every window, so a 900-pixel window gave the document 44% of its width. The copy icon stood for 7 functions, and one action had two labels ("Show in Explorer" and "Show in system explorer"). Delete sat after Rename with no separator or color. The tree used CSS triangles. Search showed a flat list of paths. Bookmarks were bare paths. Settings had three switch designs, a Save button only for the browser, and the first focus on "Minimize window". Some targets were 22 pixels. - New rule: The outline gives way below 1100 pixels and the side pane below 800 pixels, when the window becomes narrow. They come back when it grows, and a pane that the user opens in a narrow window stays open. One function has one icon (`copy`, `duplicate`, `template`, and `tab`, added to the SDK icon set), and the reveal action has one label for each platform. The file menu follows one order and ends with Delete in the error color after a separator. The tree uses the shared chevron. Search hits come in groups by file, with counts and marked matches. Bookmarks show the name, the folder, and a remove button. All boolean settings use the `rs-switch` design, every setting applies at once, and the Settings window opens with the focus on its search. The tab close button, outline rows, switches, and the settings search are at least 24 pixels. - Reason: A narrow window must leave room for the document. A user must recognize an action by its icon and its label. Settings must behave the same on every page. - Scope: The workbench layout, the file and tab menus, the image and table menus, the left pane views, the outline, and Settings. - Shared implementation: `Workbench.svelte` (the narrow layout), `FileTree.svelte`, `menuTypes.ts` and `actionMenu.ts` (`danger`), `menuItems.ts` (`revealLabel`), `packages/plugin-sdk/src/icons.ts`, `SearchPane.svelte`, `BookmarksPane.svelte`, `TreeNode.svelte`, and `src/lib/ui/switch.css`. - Evidence: `tests/smoke/layout/panesAndSettings.smoke.mjs`. - Replaces / replaced by: The fixed side panes of narrow windows, and the Save button of the browser settings. - Limits: At startup, the saved layout applies as it is, also in a narrow window. Panes give way only when the window becomes narrower. Browser checks use desktop service mocks. The SDK release that publishes the new icon names is a separate step. ### UI-053 — Close prompts, conflicts, the status bar, tables, and line breaks - Type: Rule change - Date: 2026-10-28 - Status: Implemented for user review - Decision source: Owner decisions 11 and 14 of 2026-10-27 (interface review issues 10, 16, 17, 18, 23, and 24), stage 5-7. - Previous rule: A changed tab closed after "Discard unsaved edits? OK/Cancel", with no Save. The conflict banner had no status color or icon, and Use disk version came first in the same style as the other choices. The status bar showed the path, "native watch", and the mode. A tab without a document kept the outline of the last note. Every table cell showed its address in a tooltip over the next cell, tables had about 70 pixels above them, and their add controls showed only on hover. The plugin review had three equal buttons. Read showed each source line break. - New rule: A changed tab asks Save, Don't save, or Cancel. The conflict banner uses `--rs-warn` with a warning icon. Keep my edits is the primary choice and comes first, and Use disk version comes last in the error color. The status bar shows the save state, the line and column, the word count, the line endings, and the view, and it shows the watch mode only when it polls. The outline and the document facts follow the active tab. Only formula cells have a hover hint, the table adds no gap above its control area, and the add and drag controls show while a cell has focus. Install and enable is the primary plugin action, and the other choice is Install, keep disabled. Read follows CommonMark soft breaks, and **Keep line breaks** in Settings → General shows each source line break. - Reason: The safe choice must be the easy choice. The status bar must show useful facts. A hint must not hide text. - Scope: Tab closing, the conflict banner, the status bar, the outline, Write tables, the plugin install review, and Read. - Shared implementation: `closeTabs` in `Workbench.svelte`, `DocumentArea.svelte`, `StatusBar.svelte`, `tableControls.ts`, `PluginManager.svelte`, `reading.css`, and `fileTitle.ts` (the document settings). - Evidence: `tests/smoke/layout/plainFixes.smoke.mjs` and `tests/unit/layout/settings.spec.ts`. - Replaces / replaced by: The OK and Cancel close prompt, and `white-space: pre-line` for every Read paragraph. - Limits: The word count splits on spaces and counts each Han, Hiragana, and Katakana character as one word. The close prompt uses the native dialog, which browser checks mock. The table control area keeps its 26-pixel padding, because the drag handles need it. The drag handles still show only on hover: showing every row and column handle on focus was too busy. The line break setting applies to Read. The table preview and cell editors of Write keep each line break, because their editing depends on it. ### UI-054 — The browser engine as a separate download - Type: Rule change - Date: 2026-10-29 - Status: Implemented for user review - Decision source: The owner decision "Built-in browser: optional download, installed on first use" of 2026-10-27, and Phase 6 decisions 4 and 5 of 2026-10-29. - Previous rule: Each installer included the browser engine. A browser tab, Settings → Browser, and the browser bookmarks started the engine as soon as they opened. A web link opened in the app browser when **Open web links in RuneStone** was on. "Open link in app browser" failed when that setting was off. - New rule: Until the engine is installed, a browser tab shows the engine setup: the download size, **Download the engine** as the primary action, **Install from file…**, and **Open in default browser** when the tab has a web address. A download shows its progress and Cancel. A failure shows its cause in the error color and **Retry**. When the engine is installed, the same tab opens its page. Settings → Browser starts with a **Browser engine** section: the state, the version, and **Remove engine** in the error color with a confirmation. The other browser settings and the browser bookmarks show after the engine is installed. Web links in documents open in the system browser until the engine is installed. "Open link in app browser" always opens an app browser tab, with the engine setup if necessary. - Reason: A large download needs the user's consent and a clear size. A link must never wait for a download that the user did not start. The explicit command must do what its label says. - Scope: Browser tabs, browser windows, Settings → Browser, the browser bookmarks, and web links in documents. - Shared implementation: `src/lib/browser/engine.ts`, `EngineSetup.svelte`, `BrowserTab.svelte`, and `src-tauri/src/browser_engine.rs`. - Evidence: `tests/smoke/browser/engine.smoke.mjs`, with screenshots of each state in both themes and a 360-pixel Settings window. - Replaces / replaced by: The bundled engine. - Limits: The download does not resume. A failed download starts again from zero. The engine installs for the current Windows account only. Browser checks mock the native download. ### UI-055 — Settings → Features and native Git - Type: Rule change - Date: 2026-10-29 - Status: Implemented for user review - Decision source: The owner decisions "Native features decision" and "Phase 7 replaced" of 2026-10-29, and Phase 7 decisions 1A, 2A, 3A, 4A, and 5C. - Previous rule: Git was the optional Git plugin. Settings → Plug-ins enabled or disabled it. Its strings were English only, its file rows and buttons drew their own icons, and its status refreshed every 10 seconds. The "Show Git graph" command showed in the **Plug-in views** menu. - New rule: Git is a native feature. A new Settings page, **Features**, between Appearance and Plug-ins, has one switch for each native feature with its name and one line of description. A feature that is off loads no code and shows no controls. A feature that is on loads its code at first need. Off applies at once in all windows. Source control uses the shared `IconButton`, tooltips, icons, and catalog. Its status refreshes after a workspace change, on window focus, and after each Git action. **Show Git graph** is in the command palette and in Source control. The new shared icons are `toggle`, `minus`, and `upload`. - Reason: The owner chose response time and memory over the versatility of the plugin API. A switch lets users remove the controls of a feature that they do not use. - Scope: Settings → Features, the Source control pane, the Git diff and Git graph tabs, the line history in the status bar, and the command palette. - Shared implementation: `src/lib/features/`, `src/lib/layout/SettingsDialog.svelte`, `src/lib/plugins/external.ts`, and `src-tauri/src/features.rs`. - 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.