feat(theme): 左右停靠栏配色对齐主色调(进灰阶 ramp + 头部深一档 + 卡片白底)v3.25.58

- 新增 --iwb-dock-bg = color-mix(chrome 55%, canvas 45%):亮 #E2E4E6 / 暗 #717171
  改前栏身 = --iwb-panel(亮 #FFF 比画布 1.39:1;暗 #A5A5A5 比画布 2.04:1),两侧像亮度泄漏
- 新增 --iwb-dock-head-bg = color-mix(dock-bg 94%, #000):亮 #D4D6D8 / 暗 #6A6A6A
  不用「往画布色混」:暗色灰阶只有 #6F–#75,那种混法 ΔL 仅 0.006 看不见
- .iwb-pcard 补 background: var(--iwb-panel):灰栏上卡片浮出(亮 1.28:1 / 暗 1.98:1)
  该类仅 promptlib / grouplib 使用,不影响弹窗、首页、工具栏;--iwb-panel 本身不动(56 处引用)
- 顺带修版本漂移:Cargo.toml/Cargo.lock 停在 3.25.55(56/57 两次 bump 漏改 Rust 侧),
  四处现已 3.25.58;核查无代码读 CARGO_PKG_VERSION、tauri.conf 显式写 version,界面版本一直正确
- 插件零改动(其样式用 token,新栏底下对比自动成立)
This commit is contained in:
qiqi committed 2026-11-20 20:50:04 +08:00
1 parent 411a7c9572
commit c2c208f5ce
6 files changed
+34 -7

No files matched your search

+11 -3
View File
@@ -14,6 +14,14 @@
/* 首页(暗一档底)上的细分隔线:border 与 border2 混色,
在 --iwb-home-bg 上保持与旧版(亮底+--iwb-border)相近的可见度,不隐形也不过重 */
--iwb-hr: color-mix(in srgb, var(--iwb-border) 50%, var(--iwb-border2) 50%);
/* 左右停靠栏底色(v3.25.58):栏是「结构层」不是「浮层」,之前直接用 --iwb-panel(纯白),
比页面底还亮 ⇒ 亮色下与画布 1.39:1、暗色下 2.04:1,两侧像亮度泄漏。
这里把它排进既有灰阶 ramp(bg → chrome → home → canvas):取 chrome 与画布的中段,
与标签条同级、只比画布亮一点点;两主题都用同一公式(chrome/canvas 本身随主题变)。
头部再深一档用「栏身 + 6% 黑」而不是往画布色混:暗色整条灰阶只有 #6F–#75,
混画布色实测 ΔL 仅 0.006(看不见),黑色叠加在亮/暗下都能看出头部带(1.14:1 / 1.11:1)。 */
--iwb-dock-bg: color-mix(in srgb, var(--iwb-chrome) 55%, var(--iwb-canvas-bg) 45%);
--iwb-dock-head-bg: color-mix(in srgb, var(--iwb-dock-bg) 94%, #000);
--iwb-panel: #ffffff;
--iwb-layer: #f0f1f4;
--iwb-layer2: #ffffff;
@@ -374,7 +382,7 @@ button { font-family: inherit; }
.iwb-ptext-clickable:hover { color: var(--iwb-text); }
.iwb-ptext-open { -webkit-line-clamp: unset; overflow: visible; }
.iwb-pcard-foot { margin-top: 6px; align-items: center; }
.iwb-pcard { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 8px 10px; }
.iwb-pcard { border: 1px solid var(--iwb-border); border-radius: 8px; padding: 8px 10px; background: var(--iwb-panel); }
.iwb-pname { font-weight: 600; font-size: 12px; }
.iwb-pbtns { margin-left: auto; display: flex; gap: 4px; }
.iwb-ptext { font-size: 11px; color: var(--iwb-text2); margin-top: 4px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@@ -2152,13 +2160,13 @@ html { scrollbar-width: thin; scrollbar-color: var(--iwb-border2) color-mix(in s
.iwb-overlay.iwb-view-landing { --iwb-dock-l: 0px; --iwb-dock-r: 0px; }
.iwb-dock {
position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
background: var(--iwb-panel); pointer-events: auto; min-width: 100px;
background: var(--iwb-dock-bg); pointer-events: auto; min-width: 100px;
}
.iwb-dock.left { left: 0; border-right: 1px solid var(--iwb-border2); }
.iwb-dock.right { right: 0; border-left: 1px solid var(--iwb-border2); }
.iwb-dock-head {
height: 40px; flex: 0 0 auto; display: flex; align-items: center; gap: 2px;
padding: 0 6px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-panel);
padding: 0 6px; border-bottom: 1px solid var(--iwb-border); background: var(--iwb-dock-head-bg);
}
.iwb-dock.right .iwb-dock-head { justify-content: flex-start; }
.iwb-dock-btn {