Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

feat(chat): add Chinese dark home mascot

vastsaf81f43b15d99
diff --git a/apps/desktop/src/assets/home-mascot-dark-zh.gif b/apps/desktop/src/assets/home-mascot-dark-zh.gif
new file mode 100644
index 000000000..e3b180a78
Binary files /dev/null and b/apps/desktop/src/assets/home-mascot-dark-zh.gif differ
diff --git a/apps/desktop/src/assets/home-mascot-still-dark-zh.png b/apps/desktop/src/assets/home-mascot-still-dark-zh.png
new file mode 100644
index 000000000..93943b825
Binary files /dev/null and b/apps/desktop/src/assets/home-mascot-still-dark-zh.png differ
diff --git a/apps/desktop/src/components/HomeMascotLogo.tsx b/apps/desktop/src/components/HomeMascotLogo.tsx
index c2cec851b..9e2dbee77 100644
--- a/apps/desktop/src/components/HomeMascotLogo.tsx
+++ b/apps/desktop/src/components/HomeMascotLogo.tsx
@@ -1,6 +1,8 @@
import mascotMotionDarkUrl from "../assets/home-mascot-dark.gif";
+import mascotMotionDarkZhUrl from "../assets/home-mascot-dark-zh.gif";
import mascotMotionLightUrl from "../assets/home-mascot-light.gif";
import mascotStillDarkUrl from "../assets/home-mascot-still-dark.png";
+import mascotStillDarkZhUrl from "../assets/home-mascot-still-dark-zh.png";
import mascotStillLightUrl from "../assets/home-mascot-still-light.png";
export function HomeMascotLogo() {
@@ -18,6 +20,14 @@ export function HomeMascotLogo() {
height={100}
draggable={false}
/>
+ <img
+ className="home-mascot-motion home-mascot-dark home-mascot-dark-zh"
+ src={mascotMotionDarkZhUrl}
+ alt=""
+ width={100}
+ height={100}
+ draggable={false}
+ />
<img
className="home-mascot-motion home-mascot-light"
src={mascotMotionLightUrl}
@@ -34,6 +44,14 @@ export function HomeMascotLogo() {
height={100}
draggable={false}
/>
+ <img
+ className="home-mascot-still home-mascot-dark home-mascot-dark-zh"
+ src={mascotStillDarkZhUrl}
+ alt=""
+ width={100}
+ height={100}
+ draggable={false}
+ />
<img
className="home-mascot-still home-mascot-light"
src={mascotStillLightUrl}
diff --git a/apps/desktop/src/styles/chat-shell.css b/apps/desktop/src/styles/chat-shell.css
index c0d02af6a..31c530f08 100644
--- a/apps/desktop/src/styles/chat-shell.css
+++ b/apps/desktop/src/styles/chat-shell.css
@@ -713,21 +713,29 @@
user-select: none;
}
-:root:not([data-theme="light"]) .home-mascot-logo .home-mascot-motion.home-mascot-dark,
+:root:not([data-theme="light"]):not([lang^="zh"]) .home-mascot-logo .home-mascot-motion.home-mascot-dark:not(.home-mascot-dark-zh),
:root[data-theme="light"] .home-mascot-logo .home-mascot-motion.home-mascot-light {
display: block;
}
+:root:not([data-theme="light"])[lang^="zh"] .home-mascot-logo .home-mascot-motion.home-mascot-dark.home-mascot-dark-zh {
+ display: block;
+}
+
@media (prefers-reduced-motion: reduce) {
:root:not([data-theme="light"]) .home-mascot-logo .home-mascot-motion.home-mascot-dark,
:root[data-theme="light"] .home-mascot-logo .home-mascot-motion.home-mascot-light {
display: none;
}
- :root:not([data-theme="light"]) .home-mascot-logo .home-mascot-still.home-mascot-dark,
+ :root:not([data-theme="light"]):not([lang^="zh"]) .home-mascot-logo .home-mascot-still.home-mascot-dark:not(.home-mascot-dark-zh),
:root[data-theme="light"] .home-mascot-logo .home-mascot-still.home-mascot-light {
display: block;
}
+
+ :root:not([data-theme="light"])[lang^="zh"] .home-mascot-logo .home-mascot-still.home-mascot-dark.home-mascot-dark-zh {
+ display: block;
+ }
}
.empty-hero h1 {
diff --git a/apps/desktop/test/renderer-branding.test.mjs b/apps/desktop/test/renderer-branding.test.mjs
index 1de2a5fbd..abb76c5d9 100644
--- a/apps/desktop/test/renderer-branding.test.mjs
+++ b/apps/desktop/test/renderer-branding.test.mjs
@@ -17,6 +17,7 @@ const [
composer,
styles,
mascotLogo,
+ appLanguage,
] = await Promise.all([
read("../../../packages/i18n/src/locales/en/index.ts"),
read("../../../packages/i18n/src/locales/zh-CN/index.ts"),
@@ -28,6 +29,7 @@ const [
readComposerSource(),
loadStyles(),
read("../src/components/HomeMascotLogo.tsx"),
+ read("../src/lib/app-language.ts"),
]);
test("renderer surfaces the PI-Desktop brand instead of the Codex shell brand", () => {
@@ -52,22 +54,36 @@ test("app chrome uses the shared brand asset without branding the composer input
assert.match(icons, /export const IconNewSession/);
assert.doesNotMatch(icons, /IconCodexHome|IconCompose|IconPiMark|IconPiHome/);
await access(new URL("../src/assets/home-mascot-dark.gif", import.meta.url));
+ await access(new URL("../src/assets/home-mascot-dark-zh.gif", import.meta.url));
await access(new URL("../src/assets/home-mascot-light.gif", import.meta.url));
await access(new URL("../src/assets/home-mascot-still-dark.png", import.meta.url));
+ await access(new URL("../src/assets/home-mascot-still-dark-zh.png", import.meta.url));
await access(new URL("../src/assets/home-mascot-still-light.png", import.meta.url));
await assert.rejects(
() => access(new URL("../src/assets/home-mascot-groups.png", import.meta.url)),
);
assert.match(chatSurface, /<HomeMascotLogo \/>/);
assert.match(mascotLogo, /import mascotMotionDarkUrl from\s*"\.\.\/assets\/home-mascot-dark\.gif"/);
+ assert.match(mascotLogo, /import mascotMotionDarkZhUrl from\s*"\.\.\/assets\/home-mascot-dark-zh\.gif"/);
assert.match(mascotLogo, /import mascotMotionLightUrl from\s*"\.\.\/assets\/home-mascot-light\.gif"/);
assert.match(mascotLogo, /import mascotStillDarkUrl from\s*"\.\.\/assets\/home-mascot-still-dark\.png"/);
+ assert.match(mascotLogo, /import mascotStillDarkZhUrl from\s*"\.\.\/assets\/home-mascot-still-dark-zh\.png"/);
assert.match(mascotLogo, /import mascotStillLightUrl from\s*"\.\.\/assets\/home-mascot-still-light\.png"/);
assert.match(mascotLogo, /className="home-mascot-logo"/);
assert.match(mascotLogo, /aria-hidden="true"/);
assert.match(mascotLogo, /className="home-mascot-motion home-mascot-dark"/);
+ assert.match(mascotLogo, /className="home-mascot-motion home-mascot-dark home-mascot-dark-zh"/);
+ assert.match(
+ mascotLogo,
+ /className="home-mascot-motion home-mascot-dark home-mascot-dark-zh"[\s\S]{0,100}src={mascotMotionDarkZhUrl}/,
+ );
assert.match(mascotLogo, /className="home-mascot-motion home-mascot-light"/);
assert.match(mascotLogo, /className="home-mascot-still home-mascot-dark"/);
+ assert.match(mascotLogo, /className="home-mascot-still home-mascot-dark home-mascot-dark-zh"/);
+ assert.match(
+ mascotLogo,
+ /className="home-mascot-still home-mascot-dark home-mascot-dark-zh"[\s\S]{0,100}src={mascotStillDarkZhUrl}/,
+ );
assert.match(mascotLogo, /className="home-mascot-still home-mascot-light"/);
assert.doesNotMatch(mascotLogo, /<svg/);
assert.doesNotMatch(
@@ -82,7 +98,11 @@ test("app chrome uses the shared brand asset without branding the composer input
);
assert.match(
styles,
- /:root:not\(\[data-theme="light"\]\) \.home-mascot-logo \.home-mascot-motion\.home-mascot-dark/,
+ /:root:not\(\[data-theme="light"\]\):not\(\[lang\^="zh"\]\) \.home-mascot-logo \.home-mascot-motion\.home-mascot-dark:not\(\.home-mascot-dark-zh\)/,
+ );
+ assert.match(
+ styles,
+ /:root:not\(\[data-theme="light"\]\)\[lang\^="zh"\] \.home-mascot-logo \.home-mascot-motion\.home-mascot-dark\.home-mascot-dark-zh\s*\{\s*display:\s*block;/,
);
assert.match(
styles,
@@ -90,8 +110,13 @@ test("app chrome uses the shared brand asset without branding the composer input
);
assert.match(
styles,
- /@media \(prefers-reduced-motion: reduce\)[\s\S]*?\.home-mascot-still\.home-mascot-dark,[\s\S]*?\.home-mascot-still\.home-mascot-light[\s\S]*?display:\s*block;/,
+ /@media \(prefers-reduced-motion: reduce\)[\s\S]*?:root:not\(\[data-theme="light"\]\):not\(\[lang\^="zh"\]\) \.home-mascot-logo \.home-mascot-still\.home-mascot-dark:not\(\.home-mascot-dark-zh\),[\s\S]*?\.home-mascot-still\.home-mascot-light[\s\S]*?display:\s*block;/,
+ );
+ assert.match(
+ styles,
+ /@media \(prefers-reduced-motion: reduce\)[\s\S]*?:root:not\(\[data-theme="light"\]\)\[lang\^="zh"\] \.home-mascot-logo \.home-mascot-still\.home-mascot-dark\.home-mascot-dark-zh\s*\{\s*display:\s*block;/,
);
+ assert.match(appLanguage, /document\.documentElement\.lang\s*=\s*target/);
assert.doesNotMatch(styles, /@keyframes home-mascot-orbit|@keyframes home-mascot-breathe|@keyframes home-mascot-blink/);
assert.doesNotMatch(styles, /background-size:\s*5000px 100px|image-rendering:\s*pixelated/);
assert.doesNotMatch(composer, /<BrandLogo/);
diff --git a/docs/adr/0152-eight-frame-empty-home-mascot-gif.md b/docs/adr/0152-eight-frame-empty-home-mascot-gif.md
index 402c6ac1e..b55f38f7c 100644
--- a/docs/adr/0152-eight-frame-empty-home-mascot-gif.md
+++ b/docs/adr/0152-eight-frame-empty-home-mascot-gif.md
@@ -9,35 +9,38 @@
## Context
ADR 0150 replaced a randomized pixel-art sprite atlas with a 100px inline SVG
-agent mark so the empty-home hero stayed quiet. A new eight-frame waving
-mascot is now the intended empty-home mark, with separate light and dark
-artwork that already uses a transparent background. The previous SVG
-orbit/breathe cycle no longer matches that artwork, and a single raster would
-read poorly when the shell theme changes.
+agent mark so the empty-home hero stayed quiet. The empty-home mark now uses
+transparent animated artwork, with dedicated light and dark variants. Chinese
+locales have a separate dark variant supplied as a 30-frame GIF; the standard
+light and dark variants remain eight-frame waves.
## Decision
-Replace the inline SVG with processed eight-frame GIFs in the existing 100px
-empty-home slot. `HomeMascotLogo` is decorative (`aria-hidden="true"`) and
-renders four images, of which CSS shows one at a time:
+Keep `HomeMascotLogo` in the existing 100px empty-home slot. It is decorative
+(`aria-hidden="true"`) and renders six images, of which CSS shows one at a
+time:
-- `src/assets/home-mascot-light.gif` / `home-mascot-dark.gif` — the looping
- wave, with a short idle hold on the first frame
-- `src/assets/home-mascot-still-light.png` / `home-mascot-still-dark.png` —
- the matching first frame, shown only under `prefers-reduced-motion: reduce`
+- `src/assets/home-mascot-light.gif` / `home-mascot-dark.gif` — the standard
+ eight-frame wave, with a short idle hold on the first frame
+- `src/assets/home-mascot-dark-zh.gif` — the supplied transparent 30-frame
+ artwork for Chinese locales in dark mode
+- The three matching still PNGs — the first frame for each artwork, shown only
+ under `prefers-reduced-motion: reduce`
-The active pair follows `document.documentElement[data-theme]`. Anything other
-than `light` uses the dark artwork, matching `BrandLogo`. Playback is native
-to the GIF. There is no random selection, no JavaScript timer, and pointer
-hover does not change cadence.
+Theme selection follows `document.documentElement[data-theme]`; language
+selection follows its `lang` attribute. Anything other than `light` uses dark
+artwork, and `lang` values beginning with `zh` select the Chinese dark
+variant. Playback is native to the GIF. There is no random selection, no
+JavaScript timer, and pointer hover does not change cadence.
## Consequences
- Empty-home branding uses the supplied mascot action set instead of a
code-native SVG.
- The 100px layout slot, decorative role, and reduced-motion freeze remain.
-- Light and dark surfaces each keep a dedicated mascot treatment instead of
- recoloring one asset through theme tokens.
+- Light and dark surfaces keep dedicated artwork. Chinese dark mode uses the
+ supplied Chinese action set, while other locales retain the existing dark
+ wave.
- The historical `home-mascot-groups.png` atlas is not in the repository;
the GIFs and still frames are the source assets.
diff --git a/docs/spec/04-ux/07-ui-design-system.md b/docs/spec/04-ux/07-ui-design-system.md
index 30832c084..f7e046002 100644
--- a/docs/spec/04-ux/07-ui-design-system.md
+++ b/docs/spec/04-ux/07-ui-design-system.md
@@ -124,14 +124,12 @@ Codex as a visual reference. The identity contract is deliberately small:
and NSIS shortcut identity stay aligned so native notifications,
notification settings, and taskbar groups identify the app as `PI-Desktop`
rather than Electron.
-- The empty-home hero uses a 100px `HomeMascotLogo` GIF: an eight-frame waving
- mascot compiled from the supplied light and dark action sets, with a short
- idle hold on the first frame. CSS selects the pair from
- `document.documentElement[data-theme]`; anything other than `light` uses the
- dark artwork. Playback is native to the GIF. There is no random pose
- selection, JavaScript timer, or hover-driven speed change. Reduced motion
- swaps the GIF for the matching first-frame PNG without changing the 100px
- slot.
+- The empty-home hero uses a 100px `HomeMascotLogo` GIF. The standard
+ eight-frame wave remains in light mode and non-Chinese dark mode. Chinese
+ locales (`lang` beginning with `zh`) use the supplied 30-frame transparent
+ GIF in dark mode. Reduced motion swaps each variant to its matching first
+ frame without changing the 100px slot. Playback is native to GIF; there is
+ no random pose selection, JavaScript timer, or hover-driven speed change.
`BrandLogo` remains 20px/18px in the expanded/collapsed sidebar and 64px in
the startup splash. Composer prompt rows do not render a leading brand icon
in either home or thread-docked mode.
@@ -852,11 +850,10 @@ model):
controls remain icon-only and use the semantic hover wash
- Empty hero title uses `var(--ds-text-primary)` (light override `#1a1c1f`);
never hardcode light ink for shared hero styles
-- Empty-home branding stays quiet: the 100px eight-frame mascot GIF is the
- sole animated hero mark. Light and dark themes each use a dedicated asset
- pair. It loops a short wave with an idle hold so the composer remains the
- primary task surface. Pointer hover does not change the cadence; reduced
- motion shows the matching still first frame.
+- Empty-home branding stays quiet: the 100px mascot GIF is the sole animated
+ hero mark. The standard light/dark variants keep their eight-frame wave;
+ dark Chinese locales use a 30-frame transparent variant. Pointer hover does
+ not change cadence; reduced motion shows the matching still first frame.
- Night home composer plate styles are **dark-scoped only** (elevated-primary
`#212121f5` + standard elevation-prominent)
- Empty draft row keeps **one visible line / 28px optical minimum** so the
diff --git a/docs/spec/04-ux/08-component-spec.md b/docs/spec/04-ux/08-component-spec.md
index db32a9169..e64afe93d 100644
--- a/docs/spec/04-ux/08-component-spec.md
+++ b/docs/spec/04-ux/08-component-spec.md
@@ -659,14 +659,14 @@ visually distinct from list content.
splash at 3x; ADR 0125). The component subscribes to
`document.documentElement[data-theme]` via a `MutationObserver` and swaps the
source at runtime for the sidebar and startup splash without a reload. The
- empty-home hero uses `HomeMascotLogo` as a 100px eight-frame GIF. Light and
- dark themes each have a dedicated GIF plus still PNG. CSS follows
- `document.documentElement[data-theme]` without a reload; anything other than
- `light` uses the dark artwork. The mascot loops a processed wave with a
- short idle hold on the first frame. Playback is native to the GIF and does
- not change on pointer hover; reduced motion swaps to the matching still
- first-frame PNG. The expanded/collapsed sidebar remains 20px/18px and the
- startup splash 64px.
+ empty-home hero uses `HomeMascotLogo` in a 100px slot. The standard light and
+ dark GIFs remain eight-frame waves with matching still PNGs. When the root
+ `lang` begins with `zh` and the theme is dark, CSS selects the supplied
+ 30-frame transparent Chinese GIF and its matching still PNG. Theme and
+ language changes take effect without a reload. Playback is native to GIF,
+ does not change on pointer hover, and reduced motion selects the matching
+ still. The expanded/collapsed sidebar remains 20px/18px and the startup
+ splash 64px.
Home and thread-docked composer prompt rows do not render a leading brand
icon.
- Project and Temporary session creation controls render the dedicated
diff --git a/docs/spec/06-delivery/04-e2e-test-plan.md b/docs/spec/06-delivery/04-e2e-test-plan.md
index 99df71764..b7922b590 100644
--- a/docs/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/spec/06-delivery/04-e2e-test-plan.md
@@ -3140,18 +3140,20 @@ identify the platform validation still needed.
#### E2E-046: PI-Desktop renderer branding and composer icon boundary
-- **Preconditions**: App running in both English and zh-CN locales, with an
- empty home and a docked transcript available.
-- **Steps**: 1) Inspect the expanded and collapsed sidebar. 2) Inspect the
- empty-home hero and docked composer. 3) Observe the eight-frame mascot GIF
- looping in place, move the pointer over it, and confirm its cadence and
- geometry do not change. Enable reduced motion and confirm the still first
- frame is shown. 4) Focus the footer Settings and Plugins icons, then each
- project/Temporary session create control. 5) Open Settings and the composer
- input.
+- **Preconditions**: App running in English, zh-CN, and zh-TW locales, with
+ an empty home and a docked transcript available.
+- **Steps**: 1) Inspect the expanded and collapsed sidebar. 2) In light mode,
+ inspect the empty-home hero in English and Chinese. 3) Switch to dark mode;
+ confirm English uses the standard dark wave and `zh-CN` / `zh-TW` use the
+ 30-frame Chinese GIF. Move the pointer over the mascot and confirm its
+ cadence and geometry do not change. Enable reduced motion and confirm each
+ locale/theme combination shows its matching still first frame. 4) Inspect
+ the docked composer, footer Settings and Plugins icons, and session-create
+ controls. 5) Open Settings and the composer input.
- **Expected**: Visible shell identity reads `PI-Desktop`; the empty-home hero
- renders the theme-matching 100px `HomeMascotLogo` GIF with a short idle hold
- and a looping wave. Pointer hover does not alter the cadence or geometry,
+ renders the theme- and locale-matching 100px `HomeMascotLogo` GIF. Only dark
+ Chinese locales use the supplied 30-frame artwork; other combinations keep
+ their existing variants. Pointer hover does not alter cadence or geometry,
and reduced motion shows the matching still first frame.
The expanded/collapsed
sidebar renders the derived `src/assets/brand/logo-*.png` asset through `BrandLogo`
@@ -5235,17 +5237,21 @@ must keep splitting are covered by `markdown-blocks.test.mjs`.
and inspect the light eight-frame `HomeMascotLogo` GIF in the empty-home
hero. Hover the mascot and verify that its cadence does not change.
3. Switch the theme to dark (Settings → Basics → Appearance, or system appearance change).
- 4. Re-inspect the same surfaces without reloading.
+ 4. In English, confirm the standard dark GIF. Switch the app language to
+ `zh-CN` and `zh-TW` and confirm the 30-frame Chinese dark GIF appears
+ without a reload. Enable reduced motion and confirm the matching Chinese
+ still frame appears.
5. Switch back to light and re-inspect.
- **Expected**:
- Light and dark mode render `src/assets/brand/logo-light.png` /
`src/assets/brand/logo-dark.png`
live in the sidebar and startup splash without a window reload.
- - The empty-home hero renders the 100px eight-frame mascot GIF for the
- active theme (`home-mascot-light.gif` / `home-mascot-dark.gif`) with a
- short idle hold and a looping wave. Switching theme swaps the pair live
- without a window reload. Pointer hover does not change the cadence;
- under reduced motion the matching still first frame remains visible.
+ - The empty-home hero renders the 100px mascot GIF for the active theme and
+ locale. Light mode uses `home-mascot-light.gif`; dark mode uses
+ `home-mascot-dark.gif`, except Chinese locales use
+ `home-mascot-dark-zh.gif`. Theme and language changes swap the asset live
+ without a window reload. Pointer hover does not change cadence; reduced
+ motion shows the matching still first frame.
- Sizes stay stable across theme changes (sidebar 20px, hero 100px, splash
64px), and the marks stay decorative with no click, keyboard, or focus
behavior.
@@ -8709,11 +8715,12 @@ This test plan spec is accepted when:
row, with no Logo/Home brand or back/forward buttons.
### US-UI-17 PI-Desktop home hero logo
-- On empty chat home, the 100px `HomeMascotLogo` GIF renders above the title
- as an eight-frame waving mascot with a short idle hold. Light and dark
- themes each use a dedicated GIF and still PNG.
-- Pointer hover does not change the cadence or geometry; reduced motion shows
- the matching still first frame. The mascot remains decorative.
+- On empty chat home, the 100px `HomeMascotLogo` renders above the title.
+ Light mode and non-Chinese dark mode use the existing eight-frame GIFs;
+ dark `zh-CN` and `zh-TW` use the 30-frame Chinese GIF and matching still.
+- Theme and locale changes select the matching art without a reload. Pointer
+ hover does not change cadence or geometry; reduced motion shows the matching
+ still first frame. The mascot remains decorative.
- Title is 28px / weight 400; active project name uses dotted underline (1px, offset 4px).
- Composer does not render attachment or appshot controls before their payload
reaches pi end to end.
diff --git a/docs/zh-CN/spec/04-ux/07-ui-design-system.md b/docs/zh-CN/spec/04-ux/07-ui-design-system.md
index 4f68a3591..62c0313c6 100644
--- a/docs/zh-CN/spec/04-ux/07-ui-design-system.md
+++ b/docs/zh-CN/spec/04-ux/07-ui-design-system.md
@@ -104,11 +104,11 @@ PI-Desktop 的行为类似于桌面应用程序 shell,因此意外拖动
和 NSIS 快捷方式标识保持一致,以便本机通知,
通知设置和任务栏组将应用程序标识为 `PI-Desktop`
而不是 Electron。
-- 空首页英雄使用 100px 的 `HomeMascotLogo` GIF:由浅色和深色八帧挥手
- 动作合成,首帧短暂停留后循环播放。CSS 根据
- `document.documentElement[data-theme]` 选择对应资源,非 `light` 时使用
- 深色稿。播放由 GIF 自身完成,没有随机姿势、JavaScript 定时器或悬停
- 加速。减少动态效果时切换为对应首帧 PNG,槽位仍为 100px。
+- 空首页英雄使用 100px 的 `HomeMascotLogo` GIF。浅色模式和非中文深色
+ 模式继续使用标准八帧挥手动画;深色模式下,根元素 `lang` 以 `zh` 开头
+ 的中文环境使用提供的 30 帧透明 GIF。减少动态效果时切换为对应首帧,
+ 槽位仍为 100px。播放由 GIF 自身完成,没有随机姿势、JavaScript 定时器
+ 或悬停加速。
`BrandLogo` 在 expanded/collapsed 侧边栏中保留 20px/18px,在
启动水花。 Composer 提示行不呈现领先品牌图标
在主模式或线程对接模式下。
@@ -770,10 +770,9 @@ Toast enter/exit 保留现有移除合同(`animationend` 于
控件仅保留图标并使用语义悬停清洗
- 空英雄标题使用`var(--ds-text-primary)`(轻覆盖`#1a1c1f`);
切勿对共享英雄样式的浅色墨水进行硬编码
-- 空置房屋品牌保持安静:100 像素的八帧吉祥物 GIF 是唯一的
- 动画英雄标记。浅色和深色主题各使用一套资源。它循环一段短挥手
- 并在首帧稍作停留,因此输入框仍然是主要的任务表面。指针悬停
- 不改变节奏;减少运动时显示对应静止首帧。
+- 空置房屋品牌保持安静:100 像素的吉祥物 GIF 是唯一的动画英雄标记。
+ 标准浅色和深色版本保留八帧挥手动画;深色中文环境使用 30 帧透明版本。
+ 指针悬停不改变节奏;减少动态效果时显示对应静止首帧。
- 夜间家庭输入框板样式**仅限黑暗范围**(高架主
`#212121f5` + 标准标高-突出)
- 空草稿行保持 **一条可见线/28 像素光学最小值**,因此
diff --git a/docs/zh-CN/spec/04-ux/08-component-spec.md b/docs/zh-CN/spec/04-ux/08-component-spec.md
index 335011a7e..9f481cc97 100644
--- a/docs/zh-CN/spec/04-ux/08-component-spec.md
+++ b/docs/zh-CN/spec/04-ux/08-component-spec.md
@@ -497,12 +497,12 @@ Collapsed (48px):
64 px 启动画面;ADR 0125)。该组件订阅了
`document.documentElement[data-theme]` 通过 `MutationObserver` 并交换
运行时侧边栏和启动画面的源代码,无需重新加载。的
- 空屋英雄在 100 像素处使用 `HomeMascotLogo` 八帧 GIF。浅色和深色主题
- 各有一套 GIF 和静止 PNG。CSS 跟随 `document.documentElement[data-theme]`,
- 无需重新加载;非 `light` 时使用深色稿。吉祥物循环一段处理后的挥手
- 动作,并在首帧稍作停留。播放由 GIF 自身完成,指针悬停不改变节奏;
- 减少运动时切换为对应静止首帧 PNG。这
-expanded/collapsed 侧边栏仍为 20px/18px 且启动画面为 64 像素。
+ 空屋英雄在 100 像素槽位使用 `HomeMascotLogo`。标准浅色和深色 GIF
+ 保留八帧挥手动画,并各有对应静止 PNG。根元素 `lang` 以 `zh` 开头且
+ 主题为深色时,CSS 会选择提供的 30 帧透明中文 GIF 及对应静止 PNG。
+ 主题和语言变化无需重新加载即可生效。播放由 GIF 自身完成,指针悬停
+ 不改变节奏;减少动态效果时显示对应静止图。展开和折叠侧边栏仍分别
+ 使用 20px/18px 图标,启动画面仍为 64px。
主目录和线程停靠的输入框提示行不会呈现领先品牌
图标。
- 项目和临时会话创建控件呈现专用
diff --git a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
index da087aec3..e80d1659f 100644
--- a/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
+++ b/docs/zh-CN/spec/06-delivery/04-e2e-test-plan.md
@@ -1784,17 +1784,19 @@ task-candidate E2E 从请求工作树运行,但使用主工作区已经准备
#### E2E-046:PI-Desktop 渲染器品牌和输入框图标边界
-- **先决条件**:应用程序在英语和中中文语言环境中运行,并带有
- 空荡荡的家和可用的停靠成绩单。
-- **步骤**:1) 检查展开和折叠的侧边栏。 2) 检查
- 空荡荡的英雄和停靠的输入框。 3) 观察八帧吉祥物 GIF 原地循环,
- 将指针移到其上并确认节奏与几何形状不变。开启减少动态
- 效果并确认显示静止首帧。 4)关注页脚设置和插件
+- **先决条件**:应用程序分别以英语、`zh-CN` 和 `zh-TW` 运行,并带有
+ 空首页和可用的停靠成绩单。
+- **步骤**:1) 检查展开和折叠的侧边栏。 2) 在浅色模式检查英语和中文
+ 空首页。 3) 切换到深色模式,确认英语使用标准深色动画,`zh-CN` 和
+ `zh-TW` 使用 30 帧中文 GIF。将指针移到吉祥物上,确认节奏和几何形状
+ 不变。开启减少动态效果,并确认每种语言和主题组合都显示对应静止图。
+ 4)检查停靠输入框、页脚设置和插件
图标,然后每个 project/Temporary 会话创建控件。 5)打开设置
和输入框输入。
-- **预期**:可见 shell 标识为 `PI-Desktop`;空荡荡的家英雄
- 渲染与当前主题匹配的 100px `HomeMascotLogo` GIF,首帧短暂停留后循环挥手;
- 指针悬停不改变节奏或几何形状,减少运动时显示对应静止首帧。
+- **预期**:可见 shell 标识为 `PI-Desktop`;空首页英雄渲染与主题和语言
+ 匹配的 100px `HomeMascotLogo` GIF。只有深色中文环境使用提供的 30 帧
+ 动画,其他组合保留原资源。指针悬停不改变节奏或几何形状,减少动态
+ 效果时显示对应静止首帧。
expanded/collapsed
侧边栏通过 `BrandLogo` 呈现派生的 `src/assets/brand/logo-*.png` 资源
并且停靠的输入框提示行没有前导
@@ -3253,16 +3255,18 @@ IPC 请求无法关闭。
并检查空首页英雄中的浅色八帧 `HomeMascotLogo` GIF。
将鼠标悬停在吉祥物上并验证节奏不变。
3. 将主题切换为深色(设置→基础→外观,或系统外观更改)。
- 4. 重新检查相同的表面,无需重新加载。
+ 4. 确认英语使用标准深色 GIF;将应用语言切换为 `zh-CN` 和 `zh-TW`,
+ 确认无需重新加载即可显示 30 帧中文深色 GIF。开启减少动态效果,
+ 确认显示对应的中文静止图。
5. 切换回光源并重新检查。
- **预期**:
- 明暗模式渲染 `src/assets/brand/logo-light.png` /
`src/assets/brand/logo-dark.png`
位于侧边栏和启动画面中,无需重新加载窗口。
-- 空首页英雄按当前主题渲染 100 像素的八帧吉祥物 GIF
- (`home-mascot-light.gif` / `home-mascot-dark.gif`),首帧短暂停留后
- 循环挥手。切换主题时即时更换资源,无需重新加载窗口。指针悬停
- 不改变节奏;减少运动时对应静止首帧仍然可见。
+ - 空首页英雄按当前主题和语言渲染 100 像素的吉祥物 GIF。浅色模式使用
+ `home-mascot-light.gif`;深色模式使用 `home-mascot-dark.gif`,但中文
+ 环境使用 `home-mascot-dark-zh.gif`。切换主题或语言时即时更换资源,
+ 无需重新加载窗口。指针悬停不改变节奏;减少动态效果时显示对应静止图。
- 尺寸在主题变化时保持稳定(侧边栏 20 像素、英雄 100 像素、启动栏
64px),标记保持装饰性,无需点击、键盘或焦点
行为。
@@ -5597,11 +5601,11 @@ eleven-tool-round desktop paths are verified by
行,没有 Logo/Home 品牌或 back/forward 按钮。
### US-UI-17 PI-Desktop 家庭英雄标志
-- 在空聊天主页上,100px `HomeMascotLogo` GIF 在标题上方呈现
- 八帧挥手吉祥物,并在首帧稍作停留。浅色和深色主题各使用一套
- GIF 和静止 PNG。
-- 指针悬停不改变节奏或几何形状;减少运动时显示对应静止
- 首帧。吉祥物保持装饰性。
+- 在空聊天主页上,100px `HomeMascotLogo` 显示在标题上方。浅色模式和
+ 非中文深色模式使用现有八帧 GIF;深色 `zh-CN` 和 `zh-TW` 使用 30 帧
+ 中文 GIF 及对应静止图。
+- 主题和语言变化无需重新加载即可选择对应图像。指针悬停不改变节奏或
+ 几何形状;减少动态效果时显示对应静止图。吉祥物保持装饰性。
- 标题为 28px / 粗细为 400;活动项目名称使用点下划线(1 像素,偏移 4 像素)。
- Composer 不会在有效负载之前渲染附件或 appshot 控件
首尾相连达到 pi。