diff --git a/.docs/dev-design/2026-04-11-外观设置增强-缩放与主题色-implementation-plan.md b/.docs/dev-design/2026-04-11-外观设置增强-缩放与主题色-implementation-plan.md deleted file mode 100644 index fc3757e..0000000 --- a/.docs/dev-design/2026-04-11-外观设置增强-缩放与主题色-implementation-plan.md +++ /dev/null @@ -1,2674 +0,0 @@ -# 外观设置增强:缩放与主题色 — 实施计划 - -> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. - -**Goal:** 为外观设置页面添加 Window Zoom Level(6 档百分比缩放)和 Theme Color(12 个 shadcn 官方预设主题色),所有偏好通过浏览器 `localStorage` 持久化,首次加载无 FOUC,并提供"恢复默认"按钮。 - -**Architecture:** 采用 shadcn 官方推荐方案——CSS `[data-theme]` 属性选择器 + `:root` 字号 inline style,由 `
` 中的同步执行 inline 脚本在 hydration 前写入 DOM 防止闪烁。React 侧由独立的 `- {t("sectionDescription")} -
- -- {t("currentTheme", { theme: resolvedThemeLabel })} -
-- {t("themeColor.sectionDescription")} -
- -- {t("themeColor.current", { - color: t(`themeColor.options.${themeColor}`), - })} -
-- {t("zoomLevel.sectionDescription")} -
- -- {t("zoomLevel.current", { zoom: zoomLevel })} -
-