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

+19
View File
@@ -14,6 +14,25 @@
> 3. 核验正式地址版本 → 之后才移动 `stable` / `stable-verified-<日期>` 标签、更新本 CHANGELOG、写 GitHub Release(`gh release create`)。
> 测试发现问题 → 改 → 再 `deploy:test`,正式环境不受影响。回滚点 `git reset --hard stable`。
## v3.25.58(2026-11-20)左右停靠栏配色与主色调对齐
- 停靠栏底色不再用 `--iwb-panel`(纯白):新增 `--iwb-dock-bg = color-mix(chrome 55%, canvas 45%)`,
把它排进既有灰阶 ramp(bg → chrome → home → canvas)。实测(浏览器解析 color-mix 后取色):
亮色 栏身 `#E2E4E6`(与画布 1.09:1、与标签条 1.07:1)/暗色 `#717171`(1.03:1)。
改前亮色栏身 `#FFFFFF` 比画布 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 条规则引用,含底部工具栏 / 状态栏 / 小地图 / 模态框 —— 那些是「该浮起来的白」)。
- 修复版本一致性遗留:`src-tauri/Cargo.toml` 与 `Cargo.lock` 停在 3.25.55(v3.25.56 / v3.25.57 两次 bump
漏改 Rust 侧)。四处现已对齐 3.25.58,并改用项目自带的 `scripts/set-version.js`(一次改三处)避免再漏。
影响面核查:无代码读取 `CARGO_PKG_VERSION`,`tauri.conf.json` 显式写 version,故界面/包内版本一直正确
(上一版 dmg 的 `CFBundleShortVersionString` 实测为 3.25.57)。
- 插件零改动(gallery 1.6.3 / grouplib 1.0.3 / promptlib 1.0.1 的样式都用 `--iwb-layer` / `--iwb-layer2`
等 token,在新栏底上对比自动成立)。
## v3.25.57(2026-11-20)提示词库插件化
- 新增宿主 capability `promptlib`(`src/plugin-api-promptlib.js`):`list / save / insert / copy / notify / onChanged`。
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "image-workbench-web",
"private": true,
"version": "3.25.57",
"version": "3.25.58",
"description": "Browser-based node canvas image workbench",
"scripts": {
"build": "node scripts/build.js && node scripts/copy-plugins.js",
+1 -1
View File
@@ -1983,7 +1983,7 @@ dependencies = [
[[package]]
name = "image-workbench"
version = "3.25.55"
version = "3.25.58"
dependencies = [
"arboard",
"base64 0.22.1",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "image-workbench"
version = "3.25.55"
version = "3.25.58"
description = "无限画布 · 生图工作台桌面版"
authors = ["malongan"]
license = ""
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "../node_modules/@tauri-apps/cli/config.schema.json",
"productName": "image-workbench",
"version": "3.25.57",
"version": "3.25.58",
"identifier": "com.malongan.imageworkbench",
"build": {
"frontendDist": "../dist",
+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 {