dsh-concierge 0.0.0-stage → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,101 @@
1
+ # 窗口缩放与全屏切换时的白闪
2
+
3
+ ## 结论
4
+
5
+ **已修复(0.7.0)**。根因是根层(`html`/`body`/`#root`)透明导致整帧被 Chromium 判定为非不透明,合成器无法拉伸上一帧,尺寸跳变时露出窗口表面色。
6
+
7
+ 修法:根层保持不透明(`html` 给壁纸底色,`body`/`#root` 透明)。这一条改动同时治好了**拖边框白带**和**全屏闪白**。
8
+
9
+ > **例外:真透明留边(0.7.5 起,默认关)。** 打开它之后 `body` 会被 `clip-path` 裁掉四周 10px,外圈本来就不画页面像素——尺寸跳变时那圈露出的是窗口的 Acrylic(桌面壁纸的模糊),不是白色,所以白带问题在这个模式下不适用。代价是内容区被裁掉 10px,且这个模式依赖 DWM 材质一直开着(见 README 的「窗口材质补丁」一节)。
10
+
11
+ ---
12
+
13
+ ## 1. 拖边框缩放窗口时的白带
14
+
15
+ **现象**:拖动窗口边框改变大小时,新露出的区域会闪一条白色/浅色带。
16
+
17
+ **原因**:根层透明 → 整帧判定为非不透明 → Chromium 不能拉伸上一帧 → 尺寸跳变的新露区域只能等下一次提交 → 一两帧露出窗口表面色。
18
+
19
+ **修法**:`html[data-dsh-glass="1"]` 设为不透明(浅色 `#dbe4f3`,深色 `#10151d`),与壁纸基色一致。
20
+
21
+ ---
22
+
23
+ ## 2. 点全屏时的白框
24
+
25
+ **现象**:点右上角最大化按钮进入全屏时,窗口会闪一帧白色/浅色框。
26
+
27
+ **原因**:同上。全屏切换是一次性大跳,空出的区域更大,所以看得特别明显。
28
+
29
+ **修法**:同上。
30
+
31
+ ---
32
+
33
+ ## 排查过程
34
+
35
+ 之前试过 15 条方向全部无效,原因是**一直在查「哪个颜色不对」而不是「帧够不够不透明」**。
36
+
37
+ ### 15 条无效的尝试
38
+
39
+ | # | 假设 | 做法 | 结果 |
40
+ | --- | --- | --- | --- |
41
+ | 1 | CSS 层(壁纸 / tint / 预模糊) | 皮肤整个关掉再拖 | ❌ 还有 |
42
+ | 2 | `bottomRow` 露底 | 该行改透明 | ❌ 无关 |
43
+ | 3 | 根画布底色 | `html/body/#root` 改不透明(之前错误地改成不透明但没改 `body`/`#root`) | ❌ 无关 |
44
+ | 4 | 视口比窗口矮 | 拖动探针抓 40 帧尺寸 | ❌ 差值恒为 7–14px |
45
+ | 5 | 窗口底色 `backgroundColor` | 改 `#ccd8eeff`、做**红色实验** `#ff0000ff` | ❌ 窗口纯红、带子仍白 |
46
+ | 6 | DWM 亚克力材质 | 关掉 `backgroundMaterial` | ❌ 无关 |
47
+ | 7 | WM_ERASEBKGND(窗口类背景刷) | 开 `transparent: true` 变分层窗口 | ❌ 分层窗口不会被类背景刷擦,带子还在 |
48
+ | 8 | 透明窗口本身 | Electron 44 的透明 + 可缩放组合 | ❌ 能拖,带子照旧 |
49
+ | 9–12 | GPU 合成层 | `--enable-features=windows11-mica-titlebar` 等 4 条开关 | ❌ 全无效 |
50
+ | 13–14 | Chromium 默认底色 | `--default-background-color=ffccd8ee` / `00000000` | ❌ 全无效 |
51
+ | 15 | 内核通病 | 拖 Chrome / Edge 窗口 | ✅ **它们不白** → 不是内核通病 |
52
+
53
+ **关键线索**:第 3 条试错看似无效,但真正的问题是当时只改了 `html`,没改 `body`/`#root`。整帧判定依然是「非不透明」(因为内容层还透着)。
54
+
55
+ ### 最终判据
56
+
57
+ 用外观页开关逐个排除,最后发现:
58
+
59
+ - 关掉整个玻璃皮肤 → 不闪 (问题在皮肤)
60
+ - 摘掉 B7 `will-change: transform` → 还闪 (不是合成层提升)
61
+ - 壁纸层 `display: none` → 还闪 (不是壁纸)
62
+ - **根层从透明改不透明** → 不闪 ✅
63
+
64
+ ---
65
+
66
+ ## 验证方式
67
+
68
+ - 渲染层改动:点「刷新与重启 → 刷新界面」
69
+ - 主进程/asar 改动:完全退出重开
70
+ - **注意**:Windows 上 Ctrl+R 没有绑定,不要试
71
+
72
+ ---
73
+
74
+ ## 技术细节
75
+
76
+ ### 为什么只改根层,不改内容?
77
+
78
+ 如果整个 `body` 也不透明,壁纸就被挡住了。正确做法是:
79
+
80
+ - **`html`**:不透明,底色 = 壁纸基色(浅色 `#dbe4f3`,深色 `#10151d`)
81
+ - **`body` / `#root`**:透明(让壁纸和皮肤层可见)
82
+
83
+ 这样窗口表面整体被判定为不透明,合成器能拉伸上一帧,同时内容和壁纸还是可见的。
84
+
85
+ ### 为什么需要分主题
86
+
87
+ 浅色主题壁纸底色是浅蓝灰 `#dbe4f3`,深色是暗蓝 `#10151d`。如果混用,露出的异色会很难看。
88
+
89
+ ### 对拖边框白带的影响
90
+
91
+ 之前拖边框时白带还在,不是因为那条带是「正常现象」或「无法修复」,而是因为根层透明。修好根层后,拖边框的新露区域也被拉伸了,白带消失。
92
+
93
+ ---
94
+
95
+ ## 时间线
96
+
97
+ - **0.5.6**:根层改透明(优化壁纸纹理,减少重绘)
98
+ - **0.5.9**:加了 B1/B6/B7 缓解措施(都无效,根本问题在根层)
99
+ - **0.6.0–0.6.8**:排查 15 条方向(全部无效)
100
+ - **0.7.0**:发现根本原因,修复
101
+
@@ -0,0 +1,127 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>维护中心弹窗预览</title>
6
+ <style>
7
+ :root {
8
+ --dsw-alias-bg-overlay: #ffffff;
9
+ --dsw-alias-bg-layer-1: #f6f7f9;
10
+ --dsw-alias-bg-layer-2: #eef0f4;
11
+ --dsw-alias-border-l1: #e3e6ec;
12
+ --dsw-alias-border-l2: #d5d9e2;
13
+ --dsw-alias-label-primary: #14171c;
14
+ --dsw-alias-label-secondary: #6b7280;
15
+ --dsw-alias-brand-primary: #4f6ef7;
16
+ --dsw-alias-state-success-primary: #16a34a;
17
+ --dsw-alias-state-warn-primary: #d97706;
18
+ --dsw-alias-state-error-primary: #dc2626;
19
+ }
20
+ body {
21
+ margin: 0;
22
+ padding: 40px;
23
+ background: linear-gradient(180deg, #e9ecf2, #f4f5f8);
24
+ font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
25
+ color: #14171c;
26
+ }
27
+ h1 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
28
+ .note { font-size: 12px; color: #6b7280; margin: 0 0 28px; }
29
+ .stage { position: relative; height: 150px; margin-bottom: 34px; }
30
+ .fake-chat {
31
+ position: absolute; inset: 0 0 0 0; border-radius: 14px;
32
+ border: 1px solid #dfe3ea; background: #fff; overflow: hidden;
33
+ }
34
+ .fake-chat::before {
35
+ content: "对话内容"; position: absolute; left: 24px; top: 22px;
36
+ font-size: 13px; color: #9aa1ac;
37
+ }
38
+ .fake-chat::after {
39
+ content: ""; position: absolute; left: 24px; top: 52px; right: 40%;
40
+ height: 8px; border-radius: 4px; background: #eef0f4;
41
+ box-shadow: 0 22px 0 #eef0f4, 0 44px 0 #eef0f4;
42
+ }
43
+ /* ---- 以下就是插件里的 BANNER_CSS(原样) ---- */
44
+ .uc-banner{position:absolute;top:10px;right:10px;left:auto;transform:none;width:min(376px,calc(100vw - 28px));z-index:9999;pointer-events:auto;display:flex;flex-direction:column;gap:9px;padding:12px 13px 12px 16px;border:1px solid var(--dsw-alias-border-l2);border-radius:14px;background:var(--dsw-alias-bg-overlay);color:var(--dsw-alias-label-primary);box-shadow:0 14px 34px rgba(0,0,0,.22),0 2px 6px rgba(0,0,0,.08);font-size:12px;line-height:1.45;}
45
+ .uc-banner::before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 3px 3px 0;background:var(--dsw-alias-state-success-primary);}
46
+ .uc-banner-error::before{background:var(--dsw-alias-state-error-primary);}
47
+ .uc-banner-update::before{background:var(--dsw-alias-state-warn-primary);}
48
+ .uc-banner-top{display:flex;align-items:flex-start;gap:10px;}
49
+ .uc-banner-icon{flex:none;width:28px;height:28px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-state-success-primary);}
50
+ .uc-banner-error .uc-banner-icon{color:var(--dsw-alias-state-error-primary);}
51
+ .uc-banner-update .uc-banner-icon{color:var(--dsw-alias-state-warn-primary);}
52
+ .uc-banner-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
53
+ .uc-banner-title{font-weight:600;font-size:12.5px;}
54
+ .uc-banner-detail{color:var(--dsw-alias-label-secondary);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
55
+ .uc-banner-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;}
56
+ .uc-banner-hint{color:var(--dsw-alias-label-secondary);font-size:11px;margin-right:auto;}
57
+ .uc-banner-action{appearance:none;border:1px solid transparent;background:transparent;color:var(--dsw-alias-label-secondary);border-radius:8px;padding:5px 10px;font-size:11px;cursor:pointer;}
58
+ .uc-banner-action:hover{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);}
59
+ .uc-banner-action-primary{background:var(--dsw-alias-brand-primary);border-color:var(--dsw-alias-brand-primary);color:#fff;font-weight:600;}
60
+ .uc-banner-progress{padding-bottom:18px;}
61
+ .uc-banner-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--dsw-alias-border-l1);border-radius:0 0 14px 14px;overflow:hidden;}
62
+ .uc-banner-bar-fill{height:100%;background:var(--dsw-alias-brand-primary);}
63
+ </style>
64
+ </head>
65
+ <body>
66
+ <h1>维护中心 · 弹窗三种状态</h1>
67
+ <p class="note">位置:窗口右上角,宽 376px。下面的浅灰方块代表对话区域,弹窗不压住它。</p>
68
+
69
+ <div class="stage">
70
+ <div class="fake-chat"></div>
71
+ <div class="uc-banner">
72
+ <div class="uc-banner-top">
73
+ <span class="uc-banner-icon">
74
+ <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>
75
+ </span>
76
+ <div class="uc-banner-copy">
77
+ <div class="uc-banner-title">插件更新完成 · 2 个插件</div>
78
+ <div class="uc-banner-detail">dsh-session-manager 0.7.10 → 0.7.11 · dshmarket 1.73.2 → 1.73.25</div>
79
+ </div>
80
+ </div>
81
+ <div class="uc-banner-actions">
82
+ <span class="uc-banner-hint">刷新后生效</span>
83
+ <button class="uc-banner-action uc-banner-action-primary">刷新界面</button>
84
+ <button class="uc-banner-action">知道了</button>
85
+ </div>
86
+ </div>
87
+ </div>
88
+
89
+ <div class="stage">
90
+ <div class="fake-chat"></div>
91
+ <div class="uc-banner uc-banner-update">
92
+ <div class="uc-banner-top">
93
+ <span class="uc-banner-icon">
94
+ <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-2.64-6.36"/><path d="M21 3v6h-6"/></svg>
95
+ </span>
96
+ <div class="uc-banner-copy">
97
+ <div class="uc-banner-title">更新完成,需要重启</div>
98
+ <div class="uc-banner-detail">dsh-session-manager 0.7.10 → 0.7.11</div>
99
+ </div>
100
+ </div>
101
+ <div class="uc-banner-actions">
102
+ <span class="uc-banner-hint">重启 DSH 后生效</span>
103
+ <button class="uc-banner-action uc-banner-action-primary">重启应用</button>
104
+ <button class="uc-banner-action">知道了</button>
105
+ </div>
106
+ </div>
107
+ </div>
108
+
109
+ <div class="stage">
110
+ <div class="fake-chat"></div>
111
+ <div class="uc-banner uc-banner-update uc-banner-progress">
112
+ <div class="uc-banner-top">
113
+ <span class="uc-banner-icon">
114
+ <svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 4v11"/><path d="M7 10l5 5 5-5"/><path d="M5 20h14"/></svg>
115
+ </span>
116
+ <div class="uc-banner-copy">
117
+ <div class="uc-banner-title">正在下载更新</div>
118
+ <div class="uc-banner-detail">0.2.2-rc.5 · 42%</div>
119
+ </div>
120
+ </div>
121
+ <div class="uc-banner-bar"><div class="uc-banner-bar-fill" style="width:42%"></div></div>
122
+ </div>
123
+ </div>
124
+
125
+ <p class="note">成功提示 20 秒后自动消失;带「重启应用」的提示会一直留着,直到点掉。</p>
126
+ </body>
127
+ </html>
Binary file
@@ -0,0 +1,76 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>玻璃 · 浅色</title>
6
+ <style>
7
+ * { box-sizing: border-box; }
8
+ html, body { margin: 0; height: 100%; background: #eef2ff; font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; color: #14171c; }
9
+ #wall { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
10
+ #wall > div {
11
+ position: absolute; inset: 0;
12
+ background:
13
+ radial-gradient(420px 300px at 14% 22%, rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0) 62%),
14
+ radial-gradient(380px 280px at 84% 16%, rgba(244, 114, 182, 0.5), rgba(244, 114, 182, 0) 60%),
15
+ radial-gradient(520px 360px at 68% 92%, rgba(56, 189, 248, 0.5), rgba(56, 189, 248, 0) 62%),
16
+ radial-gradient(300px 220px at 42% 62%, rgba(250, 204, 21, 0.35), rgba(250, 204, 21, 0) 60%),
17
+ linear-gradient(150deg, #f4f7ff 0%, #fdf2f8 40%, #ecfeff 72%, #f8fafc 100%);
18
+ }
19
+ .glass {
20
+ background: rgba(255, 255, 255, 0.3);
21
+ backdrop-filter: blur(20px) saturate(170%) brightness(1.04);
22
+ -webkit-backdrop-filter: blur(20px) saturate(170%) brightness(1.04);
23
+ border: 1px solid rgba(255, 255, 255, 0.6);
24
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 12px 32px rgba(20, 30, 60, 0.1);
25
+ }
26
+ .app { display: flex; height: 100vh; }
27
+ .sidebar { width: 232px; flex: none; padding: 16px 14px; }
28
+ .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
29
+ .newchat { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.42); font-size: 12.5px; text-align: left; color: inherit; }
30
+ .nav { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #4d5561; }
31
+ .nav div { padding: 7px 10px; border-radius: 8px; }
32
+ .nav div.on { background: rgba(255,255,255,.5); color: #14171c; font-weight: 600; }
33
+ .main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
34
+ .topbar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 12.5px; color: #4d5561; }
35
+ .chat { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
36
+ .msg { max-width: 600px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.6; background: rgba(255,255,255,.36); border: 1px solid rgba(255,255,255,.65); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
37
+ .msg.me { align-self: flex-end; background: rgba(99, 102, 241, 0.24); border-color: rgba(99, 102, 241, 0.35); }
38
+ .composer { margin: 0 26px 22px; padding: 12px 14px; border-radius: 16px; font-size: 12.5px; color: #4d5561; }
39
+ .card { margin: 0 26px 18px; padding: 14px 16px; border-radius: 16px; }
40
+ .card h4 { margin: 0 0 8px; font-size: 13px; }
41
+ .row { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.6); color: #4d5561; }
42
+ .menu { position: absolute; right: 90px; bottom: 150px; width: 210px; padding: 6px; border-radius: 12px; font-size: 12.5px; }
43
+ .menu div { padding: 7px 10px; border-radius: 8px; }
44
+ .tip { position: absolute; left: 300px; top: 120px; padding: 6px 10px; border-radius: 8px; font-size: 11.5px; }
45
+ body::after { content: ''; position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.07;
46
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
47
+ background-size: 140px 140px; }
48
+ </style>
49
+ </head>
50
+ <body>
51
+ <div id="wall"><div></div></div>
52
+ <div class="app">
53
+ <aside class="sidebar glass">
54
+ <div class="brand">deepseek <span style="background:#14171c;color:#fff;font-size:10px;padding:1px 6px;border-radius:5px;">HARNESS</span></div>
55
+ <button class="newchat">+ 新会话</button>
56
+ <nav class="nav"><div>插件</div><div>插件市场</div><div>自动化任务</div><div class="on">维护中心</div><div>记忆框架</div></nav>
57
+ </aside>
58
+ <main class="main">
59
+ <div class="topbar glass"><span>[草稿][新增需求] · 2 分钟前</span><span>⚙</span></div>
60
+ <div class="chat">
61
+ <div class="msg">你好,你是谁,能做什么</div>
62
+ <div class="msg me">这次是真玻璃:面板自己糊背后的壁纸</div>
63
+ <div class="msg">壁纸清晰,面板 blur 20px + saturate 170%,加边缘高光和阴影。</div>
64
+ </div>
65
+ <div class="card glass">
66
+ <h4>插件</h4>
67
+ <div class="row"><span>dsh-better-sidebar</span><span>0.32.1 最新</span></div>
68
+ <div class="row"><span>dshmarket</span><span>1.74.0 最新</span></div>
69
+ </div>
70
+ <div class="composer glass">输入消息…</div>
71
+ <div class="menu glass"><div>刷新与重启</div><div>会话与工作区</div><div>DSH 控制台</div></div>
72
+ <div class="tip glass">提示条也是玻璃</div>
73
+ </main>
74
+ </div>
75
+ </body>
76
+ </html>
Binary file
@@ -0,0 +1,103 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>维护中心布局预览</title>
6
+ <style>
7
+ :root {
8
+ --dsw-alias-bg-layer-1: #ffffff;
9
+ --dsw-alias-bg-layer-2: #eef0f4;
10
+ --dsw-alias-border-l1: #e3e6ec;
11
+ --dsw-alias-label-primary: #14171c;
12
+ --dsw-alias-label-secondary: #6b7280;
13
+ --uc-accent: #4f6ef7;
14
+ }
15
+ body { margin: 0; padding: 28px; background: #f2f4f8; font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; color: #14171c; }
16
+ .dialog { max-width: 1000px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 26px 30px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
17
+ .uc-root { display: flex; flex-direction: column; gap: 16px; max-width: 780px; padding: 8px 0 36px; font-size: 13px; }
18
+ .uc-kicker { font-size: 11px; color: #6b7280; margin-bottom: 5px; }
19
+ .uc-title { margin: 0 0 4px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
20
+ .uc-sub { margin: 0; color: #6b7280; font-size: 12px; }
21
+ .uc-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #e3e6ec; border-radius: 999px; background: #eef0f4; width: fit-content; }
22
+ .uc-tab { padding: 6px 14px; border-radius: 999px; border: none; background: transparent; font-size: 12.5px; color: #6b7280; cursor: pointer; font-family: inherit; }
23
+ .uc-tab:hover { color: #14171c; }
24
+ .uc-tab[data-active="true"] { background: #fff; color: #4f6ef7; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
25
+ .uc-card { border: 1px solid #e3e6ec; border-radius: 14px; background: #fff; overflow: hidden; }
26
+ .uc-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px; font-weight: 600; font-size: 13.5px; }
27
+ .uc-rows { display: flex; flex-direction: column; }
28
+ .uc-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #eef0f4; }
29
+ .uc-row:hover { background: #f7f8fa; }
30
+ .uc-row-main { flex: 1; min-width: 0; }
31
+ .uc-row-name { display: flex; align-items: center; gap: 8px; font-weight: 550; }
32
+ .uc-row-name span:first-child { overflow-wrap: anywhere; white-space: normal; line-height: 1.35; }
33
+ .uc-row-pkg { margin-top: 2px; font-size: 11px; color: #6b7280; font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
34
+ .uc-row-act { flex: none; display: flex; align-items: center; gap: 6px; }
35
+ .uc-row-act .uc-btn { padding-left: 8px; padding-right: 8px; }
36
+ .uc-btn { min-height: 28px; padding: 0 12px; border: 1px solid #e3e6ec; border-radius: 10px; background: #fff; font-size: 11.5px; color: #14171c; cursor: pointer; font-family: inherit; }
37
+ .uc-tag { font-size: 10px; padding: 1px 6px; border-radius: 6px; border: 1px solid #e3e6ec; color: #6b7280; }
38
+ .uc-muted { color: #6b7280; font-size: 11.5px; }
39
+ </style>
40
+ </head>
41
+ <body>
42
+ <div class="dialog">
43
+ <div class="uc-root">
44
+ <div class="uc-head">
45
+ <div>
46
+ <div class="uc-kicker">应用本体</div>
47
+ <h1 class="uc-title">维护中心</h1>
48
+ <p class="uc-sub">更新应用与插件,顺便盯着聊天性能</p>
49
+ </div>
50
+ </div>
51
+ <div class="uc-tabs" role="tablist">
52
+ <button class="uc-tab">更新</button>
53
+ <button class="uc-tab" data-active="true">插件</button>
54
+ <button class="uc-tab">工具</button>
55
+ <button class="uc-tab">性能</button>
56
+ <button class="uc-tab">打字机</button>
57
+ <button class="uc-tab">关于</button>
58
+ </div>
59
+ <section class="uc-card">
60
+ <div class="uc-card-head"><span>插件</span><span class="uc-muted">全部 13 · 可更新 0</span></div>
61
+ <div class="uc-rows">
62
+ <div class="uc-row">
63
+ <div class="uc-row-main">
64
+ <div class="uc-row-name"><span>插件市场 Beta 增强版</span><span class="uc-tag">npm</span></div>
65
+ <div class="uc-row-pkg">dsh-market-beta-enhanced-very-long-package-name</div>
66
+ </div>
67
+ <div class="uc-row-act">
68
+ <span class="uc-muted">5.10.0</span>
69
+ <button class="uc-btn">回退</button>
70
+ <button class="uc-btn">禁用</button>
71
+ <button class="uc-btn">卸载</button>
72
+ </div>
73
+ </div>
74
+ <div class="uc-row">
75
+ <div class="uc-row-main">
76
+ <div class="uc-row-name"><span>侧边卡片</span><span class="uc-tag">npm</span></div>
77
+ <div class="uc-row-pkg">dsh-better-sidebar</div>
78
+ </div>
79
+ <div class="uc-row-act">
80
+ <span class="uc-muted">0.32.1</span>
81
+ <button class="uc-btn">回退</button>
82
+ <button class="uc-btn">禁用</button>
83
+ <button class="uc-btn">卸载</button>
84
+ </div>
85
+ </div>
86
+ <div class="uc-row">
87
+ <div class="uc-row-main">
88
+ <div class="uc-row-name"><span>移动端网页</span><span class="uc-tag">npm</span></div>
89
+ <div class="uc-row-pkg">dsh-web-mobile</div>
90
+ </div>
91
+ <div class="uc-row-act">
92
+ <span class="uc-muted">3.3.6</span>
93
+ <button class="uc-btn">回退</button>
94
+ <button class="uc-btn">禁用</button>
95
+ <button class="uc-btn">卸载</button>
96
+ </div>
97
+ </div>
98
+ </div>
99
+ </section>
100
+ </div>
101
+ </div>
102
+ </body>
103
+ </html>
Binary file
@@ -0,0 +1,179 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>配色对比</title>
6
+ <style>
7
+ * { box-sizing: border-box; }
8
+ body {
9
+ margin: 0;
10
+ padding: 28px 32px 40px;
11
+ background: #f7f8fa;
12
+ font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
13
+ color: #1b1d21;
14
+ }
15
+ h1 { font-size: 18px; font-weight: 600; margin: 0 0 4px; }
16
+ p.lead { margin: 0 0 24px; font-size: 13px; color: #6b7280; }
17
+ .grid {
18
+ display: grid;
19
+ grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
20
+ gap: 24px;
21
+ }
22
+ .label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 13px; }
23
+ .label b { font-size: 14px; }
24
+ .label span { color: #6b7280; font-size: 12px; }
25
+ .win {
26
+ border-radius: 12px;
27
+ overflow: hidden;
28
+ box-shadow: 0 8px 24px rgba(15, 23, 42, .10), 0 1px 3px rgba(15, 23, 42, .08);
29
+ display: grid;
30
+ grid-template-columns: 168px 1fr;
31
+ height: 240px;
32
+ border: 1px solid rgba(15, 23, 42, .06);
33
+ }
34
+ .side {
35
+ padding: 12px 10px;
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: 8px;
39
+ background: var(--canvas);
40
+ box-shadow: inset -1px 0 0 var(--line);
41
+ }
42
+ .brand { height: 10px; width: 70%; border-radius: 3px; background: var(--ink-soft); opacity: .55; margin-bottom: 6px; }
43
+ .newbtn { height: 26px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
44
+ .nav { height: 8px; border-radius: 3px; background: var(--ink-soft); opacity: .35; }
45
+ .nav.short { width: 62%; }
46
+ .row { height: 26px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
47
+ .row.sel { background: var(--sel); }
48
+ .main {
49
+ background: var(--canvas);
50
+ padding: 14px 16px;
51
+ display: flex;
52
+ flex-direction: column;
53
+ gap: 10px;
54
+ }
55
+ .msg {
56
+ border-radius: 10px; background: var(--card);
57
+ border: 1px solid var(--line);
58
+ padding: 10px 12px;
59
+ box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
60
+ display: flex; flex-direction: column; gap: 6px;
61
+ }
62
+ .line { height: 7px; border-radius: 3px; background: var(--ink-soft); opacity: .45; }
63
+ .line.w1 { width: 88%; } .line.w2 { width: 64%; }
64
+ .spacer { flex: 1; }
65
+ .composer {
66
+ border-radius: 12px; background: var(--card);
67
+ border: 1px solid var(--line);
68
+ box-shadow: 0 6px 18px rgba(15, 23, 42, .08), inset 0 0 0 1px rgba(255,255,255,.6);
69
+ padding: 10px 12px;
70
+ display: flex; flex-direction: column; gap: 8px;
71
+ }
72
+ .tools { display: flex; gap: 6px; align-items: center; }
73
+ .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); }
74
+ .chip { height: 14px; width: 44px; border-radius: 7px; background: var(--chip); }
75
+ .hint { font-size: 12px; color: #9aa1ab; margin-top: 22px; }
76
+
77
+ .p-sky {
78
+ --canvas: #dfeafb; --card: #fbfdff; --line: rgba(90, 120, 170, .24);
79
+ --ink-soft: #5f6f88; --sel: #cfdffa; --accent: #3b82f6; --chip: #e6eefb;
80
+ }
81
+ .p-violet {
82
+ --canvas: #e8e6f6; --card: #fcfbff; --line: rgba(110, 100, 160, .24);
83
+ --ink-soft: #6d6688; --sel: #dcd8f4; --accent: #7c6cf0; --chip: #ece9fa;
84
+ }
85
+ .p-mint {
86
+ --canvas: #dff0e9; --card: #fbfefc; --line: rgba(80, 130, 115, .24);
87
+ --ink-soft: #5e7a70; --sel: #cdeade; --accent: #2fa87f; --chip: #e2f3ec;
88
+ }
89
+ .p-apricot {
90
+ --canvas: #f7ece1; --card: #fffdfb; --line: rgba(150, 115, 85, .24);
91
+ --ink-soft: #7d6a58; --sel: #f3ddc9; --accent: #d08442; --chip: #f9ecdf;
92
+ }
93
+ </style>
94
+ </head>
95
+ <body>
96
+ <h1>四套带颜色的配色</h1>
97
+ <p class="lead">底有明确色相,卡片近白——颜色来自底,卡片只负责「浮起来」。</p>
98
+ <div class="grid">
99
+
100
+ <div class="option">
101
+ <div class="label"><b>天蓝</b><span>底 #dfeafb · 卡片 #fbfdff · 强调 #3b82f6</span></div>
102
+ <div class="win p-sky">
103
+ <div class="side">
104
+ <div class="brand"></div><div class="newbtn"></div>
105
+ <div class="nav"></div><div class="nav short"></div><div class="nav"></div>
106
+ <div class="spacer"></div><div class="row sel"></div><div class="row"></div>
107
+ </div>
108
+ <div class="main">
109
+ <div class="msg"><div class="line w1"></div><div class="line w2"></div></div>
110
+ <div class="spacer"></div>
111
+ <div class="composer">
112
+ <div class="line w2"></div>
113
+ <div class="tools"><div class="dot"></div><div class="chip"></div><div class="chip"></div></div>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ </div>
118
+
119
+ <div class="option">
120
+ <div class="label"><b>雾紫</b><span>底 #e8e6f6 · 卡片 #fcfbff · 强调 #7c6cf0</span></div>
121
+ <div class="win p-violet">
122
+ <div class="side">
123
+ <div class="brand"></div><div class="newbtn"></div>
124
+ <div class="nav"></div><div class="nav short"></div><div class="nav"></div>
125
+ <div class="spacer"></div><div class="row sel"></div><div class="row"></div>
126
+ </div>
127
+ <div class="main">
128
+ <div class="msg"><div class="line w1"></div><div class="line w2"></div></div>
129
+ <div class="spacer"></div>
130
+ <div class="composer">
131
+ <div class="line w2"></div>
132
+ <div class="tools"><div class="dot"></div><div class="chip"></div><div class="chip"></div></div>
133
+ </div>
134
+ </div>
135
+ </div>
136
+ </div>
137
+
138
+ <div class="option">
139
+ <div class="label"><b>薄荷</b><span>底 #dff0e9 · 卡片 #fbfefc · 强调 #2fa87f</span></div>
140
+ <div class="win p-mint">
141
+ <div class="side">
142
+ <div class="brand"></div><div class="newbtn"></div>
143
+ <div class="nav"></div><div class="nav short"></div><div class="nav"></div>
144
+ <div class="spacer"></div><div class="row sel"></div><div class="row"></div>
145
+ </div>
146
+ <div class="main">
147
+ <div class="msg"><div class="line w1"></div><div class="line w2"></div></div>
148
+ <div class="spacer"></div>
149
+ <div class="composer">
150
+ <div class="line w2"></div>
151
+ <div class="tools"><div class="dot"></div><div class="chip"></div><div class="chip"></div></div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </div>
156
+
157
+ <div class="option">
158
+ <div class="label"><b>暖杏</b><span>底 #f7ece1 · 卡片 #fffdfb · 强调 #d08442</span></div>
159
+ <div class="win p-apricot">
160
+ <div class="side">
161
+ <div class="brand"></div><div class="newbtn"></div>
162
+ <div class="nav"></div><div class="nav short"></div><div class="nav"></div>
163
+ <div class="spacer"></div><div class="row sel"></div><div class="row"></div>
164
+ </div>
165
+ <div class="main">
166
+ <div class="msg"><div class="line w1"></div><div class="line w2"></div></div>
167
+ <div class="spacer"></div>
168
+ <div class="composer">
169
+ <div class="line w2"></div>
170
+ <div class="tools"><div class="dot"></div><div class="chip"></div><div class="chip"></div></div>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ </div>
175
+
176
+ </div>
177
+ <p class="hint">选一个(或者给个色相,比如「偏紫一点」「偏奶油」),我把画布、卡片、壁纸、强调色一起换过去。</p>
178
+ </body>
179
+ </html>