MusePi

MusePi GUI Settings Panel & Theme Design (Current-State Reference)

English 中文

Status: In sync with the current implementation of packages/gui / packages/desktop-web (2026-08-04). Earlier planning drafts (gui-architecture / gui-migration / gui-prototype) have been deleted — the implementation has shipped. Together with docs/gui-design.md (design spec) and docs/gui-implementation.md (implementation notes), this document is one of the three current references (split into two docs on 2026-08-06).

1. Desktop Shell & Entry Point

2. Settings Panel Layout

SettingsView (packages/gui/src/components/SettingsView.tsx) replaces the workspace full-window, in three parts:

gui-settings-view          ← flex:1 fills the shell (flex ROW); size does not follow tab content
├─ gui-settings-drag       ← 28px window drag bar
└─ flex row
   ├─ nav column (w-64)    ← grouped navigation (Basics / AGENT capabilities / Data & stats) + bottom guidance
   └─ gui-settings-main    ← flex:1
      └─ gui-settings-surface ← rounded floating card (same style as gui-chat-surface:
           m-2 + rounded-2xl + var(--color-surface) + 0 4px 24px shadow)
         └─ gui-settings-content ← centered column width:100% / max-width:840px /
              margin-inline:auto (openchamber SettingsPageLayout parity)

3. Theme System (Three Orthogonal Axes)

packages/desktop-web/src/lib/theme.ts + packages/desktop-web/src/styles/tokens.css:

Axis DOM attribute Values Storage key
Color scheme data-theme / data-color-scheme light / dark (always resolved explicitly, no system) omp-collab-theme
Accent color data-accent brand / mono / ocean / jade / custom omp-collab-accent (+ omp-collab-accent-custom)
UI theme data-ui-theme Light: default / warm / cool; Dark: default / midnight / graphite omp-collab-ui-theme-light / -dark

5. Frosted Glass

5. Appearance Page Sections

6. Code Highlighting (added 2026-08-04)

7. Key Gotchas