Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
feat(desktop): 浅色侧栏玻璃遮盖调到 85%
Dashae54be028498
diff --git a/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.ts b/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.tsindex 4be9e3fc9e..9ca5f1a017 100644--- a/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.ts+++ b/apps/desktop/src/renderer/themes/__tests__/cindyDecisionData.ts@@ -324,7 +324,7 @@ export const CINDY_EXPECTED_VALUES: Record<string, { light: string; dark: string'sidebar-muted': { light: '60.0 2.1% 52.4%', dark: '0 0% 43.5%' }, // 2026-08 §9 更新;沿革: E1D 侧栏层级 #9A9DA3/#6F6F6F'status-badge-fg': { light: '#1F1F1F', dark: '#121212' }, // 2026-08 §9 更新;沿革: §7 必炸点(lead 裁决)'surface-translucent-sidebar': {- light: 'rgba(238, 238, 233, 0.90)',+ light: 'rgba(238, 238, 233, 0.85)',dark: 'rgba(5, 5, 5, 0.85)',}, // 用户调参 2026-07-20:双端 80%(light #F6F6F6 试色后退回纯白)'sidebar-search-input-bg': {diff --git a/apps/desktop/src/renderer/themes/builtin/cindy-light.ts b/apps/desktop/src/renderer/themes/builtin/cindy-light.tsindex c25b159330..e024942d1a 100644--- a/apps/desktop/src/renderer/themes/builtin/cindy-light.ts+++ b/apps/desktop/src/renderer/themes/builtin/cindy-light.ts@@ -136,7 +136,7 @@ const overrides = {'sidebar-search-bg': '60.0 12.8% 92.4%', // 侧栏搜索区: 同侧栏面'sidebar-search-input-bg': 'rgba(255, 255, 250, 0.55)', // 暖化'sidebar-muted': '60.0 2.1% 52.4%', // 侧栏灰字: 同上- 'surface-translucent-sidebar': 'rgba(238, 238, 233, 0.90)', // 侧栏面: 独立压暗一档+90% 遮盖(用户调参 2026-08-13/14)+ 'surface-translucent-sidebar': 'rgba(238, 238, 233, 0.85)', // 侧栏面: 独立压暗一档+85% 遮盖(用户调参 2026-08-17, 与深色对齐)'surface-translucent-main': '#F2F2ED', // 直映: 页底(暖象牙)'surface-translucent-overlay': 'rgba(251, 251, 246, 0.90)', // 浮层玻璃: 暖化'composer-pill-bg': '#FFFFFA', // 近白档diff --git a/docs/design-rules/DESIGN.md b/docs/design-rules/DESIGN.mdindex 1ed3a602b4..30f14f8188 100644--- a/docs/design-rules/DESIGN.md+++ b/docs/design-rules/DESIGN.md@@ -1224,13 +1224,13 @@ The execution rulebook for subsequent desktop / mobile UI updates. Sources: the> Value authority: [`token-decision-table.md`](./token-decision-table.md) §9 (full ladders, text tiers, contrast matrix, approval trail). Frozen in `cindyDecisionData.ts`; this subsection pins the rules.-- **Light** = warm ivory: page `#F2F2ED`; every surface/border is warm with **B = R−5** (single warmth constant; one sanctioned ceiling exception — pure white `#FFFFFF` stays for floating planes that need maximum lift above the near-white card, currently `ask-option-list-bg` only). Cards stay near-white (`#FDFDF8`) — card lift ≈9.4%, matching the original spec. Hover/chip tiers sit **below** the page (the white ceiling leaves no room above); the sidebar is its own plane one step darker (`#EEEEE9` at 90% glass opacity).+- **Light** = warm ivory: page `#F2F2ED`; every surface/border is warm with **B = R−5** (single warmth constant; one sanctioned ceiling exception — pure white `#FFFFFF` stays for floating planes that need maximum lift above the near-white card, currently `ask-option-list-bg` only). Cards stay near-white (`#FDFDF8`) — card lift ≈9.4%, matching the original spec. Hover/chip tiers sit **below** the page (the white ceiling leaves no room above); the sidebar is its own plane one step darker (`#EEEEE9` at 85% glass opacity).- **Dark** = pure neutral: page `#181818`, all layers R=G=B (zero warmth), simple parallel shift from the 2026-07 values. Known debt: near-black compression keeps only ~65% of the original perceived layer separation — recorded in [#2559](https://github.com/makecindy/cindy/issues/2559), fix is the equal-luminance ladder.- **Text ramp (light)**: deepest emphasis `#0C0C0C` → body `#1A1A1A` (both neutral, crisp) → tertiary `#6B6B67` (warm −4) → secondary/meta `#888883` (warm −5, ≥3.0 floor) → disabled `#9D9D98` (WCAG-exempt). Warmth increases as text gets lighter; dark text tiers are all neutral (tertiary `#C1C1C1`, equal-luminance neutralized 2026-08).- **Dual anchoring**: interactive fills that sit on the **page** anchor to the page (`surface-hover` tier); fills that sit on **cards/popovers** anchor to the card (light `#F6F6F1`, ≈6% below card — `settings-menu-bg-selected`, `perm-item-selected-bg`, `ask-badge-bg`, `cmd-palette-item-hover`, etc.). Dark exception, this revision only: `settings-menu-bg-selected` uses the menu-hover lift `#282828`, not the page-anchored `#1D1D1D` chip. `perm-item-selected-bg`, `ask-badge-bg`, and `cmd-palette-item-hover` stay on the page-anchored chip/hover values until their own follow-up. A single token cannot serve both planes after the revision; do not "unify" them back.- **Twin sync**: every color carried in both hex and HSL forms (24 pairs) must stay value-identical; derived translucent inlines (e.g. `chat-input-border-focus` = tertiary at 30%) must be re-derived when their source moves.- **Exempt families untouched**: `login-*` (58 tokens), `diff-*`, `error-*`, `overlay-*`, semantic status colors, shadows — per §10/§16 and `protected-tokens.ts`.-- User-tuned one-offs: dark sidebar glass `rgba(5,5,5,0.85)` (2026-08-11); light sidebar glass 90% opacity (2026-08-13/14).+- User-tuned one-offs: dark sidebar glass `rgba(5,5,5,0.85)` (2026-08-11); light sidebar glass 85% opacity (2026-08-17, aligned with dark).## 16. Login Flow (登录链路)diff --git a/docs/design-rules/token-decision-table.md b/docs/design-rules/token-decision-table.mdindex 10a57f282a..648d7c15b5 100644--- a/docs/design-rules/token-decision-table.md+++ b/docs/design-rules/token-decision-table.md@@ -192,7 +192,7 @@ export const loginColors = {| **页底** | **`#F2F2ED`** | surface / titlebar / panel | 0 || 柔和 hover | `#F0F0EB` | surface-hover-soft | −1.7% || 通用 hover/chip | `#EEEEE9` | surface-hover / chip | −3.3% |-| 侧栏 | `#EEEEE9` @ 90% 玻璃 | 独立面(玻璃遮盖度用户调参) | −3.3% |+| 侧栏 | `#EEEEE9` @ 85% 玻璃 | 独立面(玻璃遮盖度用户调参) | −3.3% || 下拉行 hover | `#EFEFEA` | model-item-hover(锚定弹层面板 −11.9%) | — || 菜单 hover | `#E8E8E3` | settings-menu-bg-hover | −8.1% || 边框 | `#E4E4DF` | border-default(冷 `#DCDFE3` 转暖) | −11.2% |