diff --git a/AGENTS.md b/AGENTS.md index cc7846df..2f71f2d3 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -121,6 +121,8 @@ After changing an action name, parameter, result description/schema, example or SDK breaking changes also update [CHANGELOG.md](packages/sdk/CHANGELOG.md) and [VERSIONING.md](packages/sdk/VERSIONING.md). WebUI changes follow its [interaction conventions](packages/webui/README.md). Keep user-facing documentation aligned with behavior. +Standalone WebUI branding uses the [SnowLuma mascot](assets/readme/mascot.png) and a lavender default accent. Keep server defaults, frontend presets and pre-mount CSS aligned as described in [WebUI default appearance](packages/webui/README.md#default-appearance), while preserving saved user choices and host appearance overlays. + The root [README.md](README.md) presents the project's purpose, overall capabilities, quick start and documentation entry points. Update it only when those overview details change; adding or fixing an individual feature does not justify adding a dedicated section there. Put feature-specific API usage, configuration, limitations and troubleshooting in the relevant package README or topic document, preferring existing documentation. Edit sources rather than `dist` outputs. Native artifacts in `packages/runtime/native` are supplied build inputs; do not substitute arbitrary local binaries to make a build pass. Packaging changes must preserve the checks in [Core's build configuration](packages/core/vite.config.ts) and [the release layout validator](tools/check-release-layout.mjs). diff --git a/assets/brand/mascot-avatar.png b/assets/brand/mascot-avatar.png new file mode 100644 index 00000000..557bee74 Binary files /dev/null and b/assets/brand/mascot-avatar.png differ diff --git a/packages/core/src/webui/ui-config.ts b/packages/core/src/webui/ui-config.ts index 63ec06ba..8cd3539f 100644 --- a/packages/core/src/webui/ui-config.ts +++ b/packages/core/src/webui/ui-config.ts @@ -44,7 +44,7 @@ export type SidebarStyle = 'follow' | 'panel' | 'accent'; export type BackgroundType = 'none' | 'solid' | 'gradient' | 'image'; export type Density = 'cozy' | 'compact'; export type TimeFormat = '12h' | '24h'; -/** Full color scheme. 'default' keeps the sky theme (driven by `mode`); the +/** Full color scheme. 'default' keeps the lavender theme (driven by `mode`); the * Catppuccin flavors are complete palettes that also fix light/dark. */ export type Palette = | 'default' @@ -85,7 +85,7 @@ export interface UiAppearance { accentCustom: string; accentScope: AccentScope; darkIntensity: DarkIntensity; - /** Full color scheme; 'default' = the built-in sky theme. */ + /** Full color scheme; 'default' = the built-in lavender theme. */ palette: Palette; sidebarStyle: SidebarStyle; background: UiBackground; @@ -203,12 +203,12 @@ export interface UiConfig { } // ─── Defaults ──────────────────────────────────────────────────────────── -// Mirror the pre-existing ThemeContext defaults so an upgrade is a no-op -// visually until the operator changes something. +// Keep these defaults aligned with ThemeContext. Saved appearance choices +// are normalized independently and remain the operator's preference. const DEFAULT_BACKGROUND: UiBackground = { type: 'none', - color: '#0ea5e9', + color: '#b99ae6', gradient: 'none', imageOpacity: 0.15, imageBlur: 0, @@ -220,8 +220,8 @@ const DEFAULT_BACKGROUND: UiBackground = { const DEFAULT_APPEARANCE: UiAppearance = { mode: 'system', accentMode: 'preset', - accentPreset: 'sky', - accentCustom: '#38bdf8', + accentPreset: 'lavender', + accentCustom: '#8561bd', accentScope: 'global', darkIntensity: 'soft', palette: 'default', diff --git a/packages/webui/README.md b/packages/webui/README.md index d84dd902..9c3580be 100644 --- a/packages/webui/README.md +++ b/packages/webui/README.md @@ -3,6 +3,23 @@ SnowLuma's browser console is a Vite + React application for managing runtime status, OneBot configuration, logs, storage, and server settings. +## Default appearance + +New installations and appearance resets use the mascot's lavender accent. +The light variant uses a deeper purple for readable button labels; dark mode +uses a softer lavender. Existing saved accents and custom colors are preserved. +The original sky-blue accent remains available in Settings. + +Keep the server defaults in `packages/core/src/webui/ui-config.ts`, the frontend +defaults and preset in `src/contexts/ThemeContext.tsx`, and the pre-mount tokens +in `src/index.css` aligned when changing the default accent. + +The browser favicon, home-screen icon and in-app logo share the mascot avatar +in [`assets/brand/mascot-avatar.png`](../../assets/brand/mascot-avatar.png). +Its exported sizes live in `public/`: `logo.png` (512 px), `favicon.png` (64 px), +and `apple-touch-icon.png` (180 px). Export from the master without redrawing +individual sizes. + ## Host appearance integration `SNOWLUMA_WEBUI_TARGET=maibot` opts a deployment into a reversible millennium diff --git a/packages/webui/index.html b/packages/webui/index.html index 80cc5386..84b7eac4 100644 --- a/packages/webui/index.html +++ b/packages/webui/index.html @@ -2,9 +2,10 @@
- + + - + diff --git a/packages/webui/public/apple-touch-icon.png b/packages/webui/public/apple-touch-icon.png new file mode 100644 index 00000000..d3f4d517 Binary files /dev/null and b/packages/webui/public/apple-touch-icon.png differ diff --git a/packages/webui/public/favicon.png b/packages/webui/public/favicon.png new file mode 100644 index 00000000..b205ca17 Binary files /dev/null and b/packages/webui/public/favicon.png differ diff --git a/packages/webui/public/favicon.svg b/packages/webui/public/favicon.svg deleted file mode 100644 index 6893eb13..00000000 --- a/packages/webui/public/favicon.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/webui/public/logo.png b/packages/webui/public/logo.png index ea437bbb..bb89d10f 100644 Binary files a/packages/webui/public/logo.png and b/packages/webui/public/logo.png differ diff --git a/packages/webui/src/components/layout/sidebar.tsx b/packages/webui/src/components/layout/sidebar.tsx index 287973a7..ee17bd74 100644 --- a/packages/webui/src/components/layout/sidebar.tsx +++ b/packages/webui/src/components/layout/sidebar.tsx @@ -147,7 +147,7 @@ export function Sidebar({ collapsed = false, onItemClick }: SidebarProps) {
+
+