Repository navigation
Releases: Rad-Weed/DSH-UI-Beautify
Release list
DSH UI Beautify v0.9.0 — 清理版(移除动态模式)
DSH UI Beautify v0.9.0 — 清理版
- 移除「动态」模式:删除动态分镜引擎、定位锚点/参考线、导入/预览入口,以及动态专用 2× 壁纸与分镜 JSON;只保留「关闭 / 静态(纹理|背景)」。
- 主题同步收敛:移除 pendingDarkTheme 兜底状态,首装深色 / 主题晚到 / 暗色候选晚到统一收敛;状态请求直接携带 theme。
- 清理存档:启动时删除
__dshui.dynamic.*旧键。 - 包体瘦身:发布 zip 不再包含 HANDOFF.md 与动态资产,1.38MB → 748KB。
- 动态旧代码备份在
backup/dynamic-mode-v0.8.49分支,本地可继续研究。
测试:host 31/31 · client 110/110。
安装
dsh-ui-beautify-0.9.0.zip(747,918 B,SHA256 8B15C8364BC54783140ADA0936FD161140037B97BB87DC6A23B69BF33FD89F5C);覆盖安装后完全重启 DSH。
DSH UI Beautify v0.8.49 — 修复首装深色背景
DSH UI Beautify v0.8.49
修复
- 首装深色主题背景错误:状态请求现在携带当前 theme,宿主在首装无图片偏好时直接返回暗夜图。
- 暗色候选晚到、深色主题晚于插件启动投影时,都会再次同步壁纸。
- 背景层挂载后强制按当前主题同步一次,避免 layer 停留在浅色图。
测试
- host 31/31 · client 112/112
- 新增「深色主题晚到」与
/status.json?theme=dark回归测试。
安装
dsh-ui-beautify-0.8.49.zip(1,382,009 B,SHA256 BBA3D418BF5860B417698419255958B4242F50EF5BBC82757F61FE8D9093FB04),覆盖安装后完全重启 DSH。
DSH UI Beautify v0.8.48 — 恢复默认设置 + 安装器乱码/弹窗修复
DSH UI Beautify v0.8.48
本版新增
- 恢复默认设置:首次运行本版本时,把当前全部
__dshui.*参数(模式/分组/浓度/毛玻璃/光标/胶囊位置/动态布局等)快照为默认值;面板「恢复默认设置」一键恢复并刷新页面。 - API:
__DSHUI__.restoreDefaults()。 - 重启键安装器控制台乱码修复:node/pnpm 输出显式按 UTF-8 解码(0.8.46)。
- 首次安装/完成弹窗说明更清晰:先完全退出 DSH、完成后确认「重启」按钮、区分完全退出与只关窗口(0.8.47)。
安装
dsh-ui-beautify-0.8.48.zip(1,379,924 B,SHA256 9AA4F40737881ABB33F3DB89FACF495098A1BC923BF68F9383139CC8EE0F040C),覆盖安装后完全重启 DSH。
测试:host 30/30 · client 111/111。
DSH UI Beautify v0.8.45 — 胶囊标题栏恢复/首次深色壁纸修复
DSH UI Beautify v0.8.45
本版修复
- 胶囊被存进标题栏后无法点击/无法打开面板:启动时自动把胶囊拉出标题栏(窗口拖动区);新增面板「重置胶囊位置」按钮。
- 胶囊拖动带动窗口:拖动限制在标题栏下方,不再触发窗口移动。
- 首次切深色壁纸不换、连续切换闪两下:修复 status 到达时序,pending dark theme 只补切一次暗夜图,避免二次交叉淡化。
- 动态分镜自动位移仍暂停,保留「开发中」占位;开屏、方块光标、毛玻璃、重启键等保持可用。
安装
dsh-ui-beautify-0.8.45.zip(1,379,131 B,SHA256 18BE6C9EB3E3B9AEAAC2BEEE4E750E85CC1422FF899126532276B5DB6D298F0A),覆盖安装后完全重启 DSH。
测试:host 30/30 · client 110/110。
DSH UI Beautify v0.8.21 — 新开屏 + 追加信息气泡 + 光标/欢迎卡片修正 / Splash, Steering Bubbles, Caret Fixes
🌐 语言 / Languages: 中文(本页) | English(下方折叠块,点击展开)
DSH UI Beautify v0.8.21 — 新开屏 + 追加信息气泡 + 光标/欢迎卡片修正
一个版本包含本轮全部修复:新开屏动画(拟合/乱码随机)、追加信息气泡视觉、方块光标模糊滑块、重播开屏后光标修复、欢迎卡片避让,以及悬浮发送键闪烁的合成层缓解。
本版内容
1. 新开屏动画
- 接入「弧线定稿 v17a」单文件开屏(AI 拟合逐字修正;同页面也支持乱码生成模式);
- 每次播放随机二选一:AI 拟合 / 乱码生成(50/50,面板重播也重新随机);
- 集成适配:隐藏开屏自带 CFG 控制台与欢迎卡片(欢迎卡片由插件统一显示);跳过兼容
DSH11_SPLASH_API__;跟随 DSH 深浅色;遮罩底色随主题。
2. 欢迎卡片位置
- 不再压住顶部「打开侧边栏」按钮:从原来的
标题栏+22位置下移 64px(标题栏+86),仍在右上角; - 卡片更小、半透明、跟随主题;自动消失 3.6s → 2.4s;任意点击/按键/滚轮立即消失。
3. 追加信息气泡
- 用户提供的 DOM 快照确认追加信息用
data-chat-flow-kind="steering"; - 现在与普通用户消息一样被识别 → 套用毛玻璃 / 气泡细描边 + 顶部高光 + 柔和投影 / 跟随原色。
4. 方块光标
- 新增「光标模糊」滑块(0–16px,0.5 步进),默认 8px → 5px;存
__dshui.caret.v1;API__DSHUI__.setCaretBlur(px); - 修复「面板重播开屏后方块光标退回普通竖线」:重播不再解绑光标,揭幕后兜底重绑。
5. 悬浮发送键闪烁排查
- 悬浮探针确认插件在悬浮期间没有任何抢修动作,判断为 Chromium 合成层问题;
- 壁纸混合层加
will-change: opacity;tooltip/popover 不再误判为壁纸盖子; - 去掉发送键 hover 的
background-color过渡;纹理模式下关闭输入卡片的backdrop-filter,避免 hover 重绘时整块重新羽化; - 新增「悬浮探针」:记录悬浮目标、发送键 transition、输入卡片 backdrop-filter 与插件动作,上报
/diag便于继续定位。
安装 / 升级
- 下载
dsh-ui-beautify-0.8.21.zip(813,993 B,SHA256B6884442EF1A6EAFC6281808BE1D9694EDA2E4D7F637DAE61ECBEAC1F2DFAE52); - 用 DSH 插件管理覆盖安装(本地目录 target
file:C:/path/to/dsh-ui-beautify;若报ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION锁文件校验,安装时指定官方 registryhttps://registry.npmjs.org/); - 完全重启 DSH 一次(Host 进程需重新加载;只刷新页面只更新客户端)。
外部副作用声明
| 项 | 值 |
|---|---|
| 插件本体 | 只写自己的节点/样式,不碰 app.asar,无守护进程 |
child_process |
仅重启键链路:面板「启用重启键」或自动准备 → 启动随包 PowerShell 安装器 |
| 壳补丁(可选) | 仅打补丁时改 app.asar 两个已存在条目(BEGIN/END 标记 + 双 SHA 备份 + 可逐字节还原);必须 DSH 完全退出 |
| 用户数据 | 设置存 localStorage(__dshui.*);不收集、不上传 |
| 网络 | 无 |
测试
host 30/30 · client 106/106 · reload-ui 6/6(离线);整包解压复测一致。
隐私
仓库历史与发布包已清理本机用户名/绝对用户路径;壁纸资源已去除 EXIF/XMP 等元数据。
English version(点击展开 / Click to expand)
DSH UI Beautify v0.8.21 — new splash, steering bubbles, caret & welcome-card fixes
One release containing this round's fixes: the new startup animation (random fit/scramble), visuals for steering ("追加信息") bubbles, a caret-blur slider, the caret fix after replaying the splash, welcome-card positioning, and compositing mitigations for the send-button hover flicker.
Included
- New splash — new single-file "arc" splash; each play randomly picks AI-fit or scramble mode (50/50, replay re-randomises); hides the splash's own CFG console/welcome card; skip compatible with
DSH11_SPLASH_API__; follows DSH light/dark theme. - Welcome card — moved 64px lower in the top-right corner so it no longer covers the "open sidebar" button; smaller/translucent/theme-aware; auto-hides after 2.4s and dismisses on any click/key/wheel.
- Steering bubbles —
data-chat-flow-kind="steering"messages are now treated like normal user bubbles (frost/visual effects). - Block caret — new "caret blur" slider (0–16px, default 8px → 5px) stored in
__dshui.caret.v1with__DSHUI__.setCaretBlur(px); the caret no longer reverts to the native one after replaying the splash from the panel. - Send-button hover flicker — probes show the plugin performs no repairs during hover (Chromium compositing issue); added
will-change: opacityon wallpaper layers, stopped tooltip/popovers being treated as wallpaper covers, disabled the send button's hover transition, and disabled the composer card'sbackdrop-filterin texture mode; added a hover probe reporting to/diag.
Install
Download dsh-ui-beautify-0.8.21.zip (813,993 B, SHA256 B6884442EF1A6EAFC6281808BE1D9694EDA2E4D7F637DAE61ECBEAC1F2DFAE52), overwrite-install as a local DSH plugin, then fully restart DSH once.
Side effects
Plugin body only writes its own nodes/styles — no app.asar changes unless the optional restart-key shell patch is enabled. child_process is used only by the restart installer. Settings live in localStorage; no network, no telemetry, no user-data collection.
Tests
Host 30/30, client 106/106, reload-ui 6/6 (offline); extracted-zip retest identical.
DSH UI Beautify v0.8.20 — 深浅色切换黑罩/闪根因修复 / Theme-Switch Blend Fix
🌐 语言 / Languages: 中文(本页) | English(下方折叠块,点击展开)
DSH UI Beautify v0.8.20 — 深浅色切换「黑罩 / 闪」根因修复
这一版解决深浅色主题切换时反复出现的两个问题:深→浅出现黑色遮挡、浅→深闪一下。
两者此前互相“按下葫芦浮起瓢”,根因是同一个:切主题瞬间,旧壁纸层的 CSS 混合模式被翻转。
根因
壁纸层混合模式由 CSS 按主题控制:
body[data-ds-dark-theme] #__dshui-layer[data-mode="multiply"] { mix-blend-mode: lighten }body[data-ds-dark-theme] 一变,旧壁纸层的混合模式瞬间翻转:
| 方向 | 旧图层瞬间变成 | 结果 |
|---|---|---|
| 深 → 浅 | lighten → multiply |
旧深色图以 multiply 压在新浅色 UI 上 = 黑色遮挡 |
| 浅 → 深 | multiply → lighten |
旧浅色图以 lighten 压在新深色 UI 上 = 白闪 |
所以之前“隐藏旧图”能消黑罩但会空白闪,“旧图淡出”能消空白但会黑罩——两个 bug 交替出现。
0.8.20 修复
- 主题交叉淡化期间,给两层分别钉住各自主题的混合模式:
- 旧图层保留旧主题的混合模式(深色旧图继续
lighten、浅色旧图继续multiply); - 新图层使用新主题的混合模式;
- 淡化结束后把内联
mix-blend-mode交还 CSS 规则。
- 旧图层保留旧主题的混合模式(深色旧图继续
- 效果:深→浅不再黑罩、浅→深不再白闪,同时始终有壁纸覆盖(不隐藏旧图、不加全屏遮罩),也不会出现空白闪。
- 启动时预加载并
decode()两种主题的壁纸(保留 Image 引用),首次切换不用等下载/解码。 - 保留:浓度/毛玻璃补间、胶囊/面板/模式按钮颜色过渡;系统「减弱动态」时关闭补间。
安装 / 升级
- 下载
dsh-ui-beautify-0.8.20.zip(811,469 B,SHA256E43389A7C0B04A1EDE95DB6459593908909C0F5F47A8D0D19035450B7D171F31); - 用 DSH 插件管理覆盖安装(本地目录 target
file:C:/path/to/dsh-ui-beautify;若报ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION锁文件校验,安装时指定官方 registryhttps://registry.npmjs.org/); - 完全重启 DSH 一次(Host 进程需重新加载;只刷新页面只更新客户端)。
外部副作用声明
| 项 | 值 |
|---|---|
| 插件本体 | 只写自己的节点/样式,不碰 app.asar,无守护进程 |
child_process |
仅重启键链路:面板「启用重启键」或自动准备 → 启动随包 PowerShell 安装器 |
| 壳补丁(可选) | 仅打补丁时改 app.asar 两个已存在条目(BEGIN/END 标记 + 双 SHA 备份 + 可逐字节还原);必须 DSH 完全退出 |
| 用户数据 | 设置存 localStorage(__dshui.*);不收集、不上传 |
| 网络 | 无 |
测试
host 30/30 · client 102/102 · reload-ui 6/6(离线);整包解压复测一致。
隐私
仓库历史与发布包已清理本机用户名/绝对用户路径;壁纸资源已去除 EXIF/XMP 等元数据。
English version(点击展开 / Click to expand)
DSH UI Beautify v0.8.20 — light/dark switch "black veil / flash" root-cause fix
Switching themes used to alternate between two artifacts: a black veil when going dark → light and a white flash when going light → dark. Both came from the same cause: the outgoing wallpaper layer's CSS blend mode flips instantly when body[data-ds-dark-theme] changes.
Root cause
The wallpaper layer's blend mode is controlled by CSS per theme:
body[data-ds-dark-theme] #__dshui-layer[data-mode="multiply"] { mix-blend-mode: lighten }On a theme switch the outgoing layer's blend mode flips:
| Direction | Outgoing layer becomes | Result |
|---|---|---|
| dark → light | lighten → multiply |
the old dark image multiplies over the new light UI = black veil |
| light → dark | multiply → lighten |
the old light image lightens the new dark UI = white flash |
That's why hiding the old image removed the veil but caused a blank flash, while crossfading the old image removed the blank but brought back the veil.
Fix in 0.8.20
During the theme crossfade both layers pin their own theme's blend mode (the outgoing layer keeps the old theme's lighten/multiply; the incoming layer uses the new theme's), and the inline mix-blend-mode is released back to CSS when the fade finishes. No layer is hidden and no full-screen veil is used, so the wallpaper is always covering the page. Both directions are now clean.
The plugin also preloads and decode()s both theme wallpapers at startup (retaining the Image objects) so the first switch doesn't wait for download/decode. Opacity/frost tweens and GUI colour transitions remain; they are disabled when the system reduced-motion preference is on.
Install
Download dsh-ui-beautify-0.8.20.zip (811,469 B, SHA256 E43389A7C0B04A1EDE95DB6459593908909C0F5F47A8D0D19035450B7D171F31), overwrite-install as a local DSH plugin, then fully restart DSH once.
Side effects
The plugin body only writes its own nodes/styles — no app.asar changes unless the optional restart-key shell patch is enabled. child_process is used only by the restart installer. Settings live in localStorage; no network, no telemetry, no user-data collection.
Tests
Host 30/30, client 102/102, reload-ui 6/6 (offline); extracted-zip retest identical.
DSH UI Beautify v0.8.15 — 重启键看护 + 真实 Host asar 读取修复 / Watchdog & Real-Host Asar Fix
🌐 语言 / Languages: 中文(本页) | English(下方折叠块,点击展开)
DSH UI Beautify v0.8.15 — 重启键看护 + 真实 Host asar 读取修复
对应修改记录:
UI美化项目修改记录-v0.8.15.md(2026-10-22 11:30)。
这一版修两个问题:休眠/窗口恢复后标题栏重启键短暂消失,以及 Cordis Host 下读app.asar被当成虚拟目录导致壳补丁检测永远patched:false、每次启动白启动安装器。
这一版改了什么
v0.8.14 · 重启键看护
- 新增
restartStartWatchdog()/restartStopWatchdog():- 触发点:
visibilitychange(变为可见)、window.focus、pageshow,外加 1.5s 低频轮询兜底; - 按钮不在菜单栏 →
restartEnsureButton()自动补回;MutationObserver盯菜单栏childList,被摘时尽快补回; - 恢复时重新挂到菜单栏末尾并强制合成层重绘一次;
- 仍遵守与独立插件
dsh-restart-key的双向冲突让路;让路时停看护避免空转。
- 触发点:
- 修复「关闭壁纸/背景模式顺手摘掉重启键」:
uninstall()增加keepRestart,关模式只拆视觉层;只有__DSHUI__.uninstall()/ 卸载插件才摘按钮。
v0.8.15 · 真实 Host 的 app.asar 兼容性
- Cordis Host 以
ELECTRON_RUN_AS_NODE运行,Electron 会让node:fs把resources/app.asar当虚拟目录(statSync返回目录、openSync报 ENOENT),原实现因此永远检测不到壳补丁; - 新增
withRawAsarFs():优先original-fs,不可用时临时process.noAsar = true兜底;纯 Node/测试环境退化为普通 fs; resolveShellPatchAsarPath/detectShellPatchInAsar/safeMtime全部走原始 fs;detectShellPatchInAsar(path, { fs })支持注入测试;shellPatchStatus()暴露asarPath与rawAsarFs(original-fs/no-asar/node-fs);- 看护增强:标题栏整体重建后在新菜单栏补回按钮;无
visibilitychange/focus的休眠恢复用计时器跳变(≥30s)判定并强制重绘; - 诊断:
restartSnapshot新增watchdog/repairs/lastRepairAt,诊断文案显示「看护中(已补回 N 次)」。
安装 / 升级
- 下载
dsh-ui-beautify-0.8.15.zip(807,875 B,SHA2563A01368557FD5D7F7F2EF74F418207336A848AF6823B30C25166A9B99DD969CD); - 用 DSH 插件管理覆盖安装(本地目录 target
file:C:/path/to/dsh-ui-beautify;若报ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION锁文件校验,安装时指定官方 registryhttps://registry.npmjs.org/); - 完全重启 DSH 一次(Host 进程需重新加载;只刷新页面只更新客户端)。
外部副作用声明
| 项 | 值 |
|---|---|
| 插件本体 | 只写自己的节点/样式,不碰 app.asar,无守护进程 |
child_process |
仅重启键链路:面板「启用重启键」或自动准备 → 启动随包 PowerShell 安装器 |
| 壳补丁(可选) | 仅打补丁时改 app.asar 两个已存在条目(BEGIN/END 标记 + 双 SHA 备份 + 可逐字节还原);必须 DSH 完全退出 |
| 用户数据 | 设置存 localStorage(__dshui.*);不收集、不上传 |
| 网络 | 无 |
验证
- Beautify host 30/30 · client 102/102;整包解压复测一致;
- 真实 Electron Host(
ELECTRON_RUN_AS_NODE)验证:rawAsarFs:"original-fs"、asarPath:"D:\\DSH\\resources\\app.asar"、detect:true、auto.reason:"already-patched"; - 运行页面
restart-status.json:patched:true、rawAsarFs:"original-fs"、pluginVersion:"0.8.15"。
隐私
仓库历史与发布包已清理本机用户名/绝对用户路径;壁纸资源已去除 EXIF/XMP 等元数据。
English version(点击展开 / Click to expand)
DSH UI Beautify v0.8.15 — Restart-button watchdog + real-Host asar fix
Fixes: the title-bar restart button briefly disappearing after sleep/window restore, and reading app.asar inside Cordis Host (Electron-as-node treats resources/app.asar as a virtual directory, so the shell-patch check was always patched:false and the auto-installer was launched on every startup for nothing).
Changes
- v0.8.14 — restart watchdog:
restartStartWatchdog()/restartStopWatchdog(); triggers onvisibilitychange,focus,pageshow, plus a 1.5s low-frequency poll; re-injects the button when missing, observes the menubar with aMutationObserver, re-attaches and forces one compositing repaint; still yields to the standalonedsh-restart-keyplugin;uninstall(keepRestart)keeps the button when only disabling wallpaper modes. - v0.8.15 — real-Host asar:
withRawAsarFs()(prefersoriginal-fs, falls back to temporaryprocess.noAsar = true); patch detection/mtime checks use the raw fs;shellPatchStatus()exposesasarPathandrawAsarFs; watchdog handles full menubar rebuilds and sleep-resume without visibility events (timer-jump detection); diagnostics exposewatchdog/repairs/lastRepairAt.
Install
Download dsh-ui-beautify-0.8.15.zip (807,875 B, SHA256 3A01368557FD5D7F7F2EF74F418207336A848AF6823B30C25166A9B99DD969CD), overwrite-install as a local DSH plugin, then fully restart DSH once.
Side effects
Plugin body only writes its own nodes/styles — no app.asar changes unless the optional restart-key shell patch is enabled. child_process is used only by the restart installer. Settings live in localStorage; no network, no telemetry, no user-data collection.
Tests
Host 30/30, client 102/102; extracted-zip retest identical. Real Electron-Host check reports rawAsarFs:"original-fs", patched:true.
DSH UI Beautify v0.8.13 — 浅色主题误判修复 + README 精简 / Light-theme Fix & Concise README
🌐 语言 / Languages: 中文(本页) | English(下方折叠块,点击展开)
DSH UI Beautify v0.8.13 — 浅色主题误判修复 + README 精简
修复:DSH 浅色主题底色是 paper-white(
#f7f8fa类,不是纯白),旧判定「非纯白即深色」导致浅色也套用暗夜壁纸与深色参数,纹理/背景模式都出现一层灰罩。0.8.13 改为按亮度判定(亮度 < 0.5 才算深色),浅色恢复正常。
另外 README 从 1186 行精简到 145 行,功能与用法不变。
这一版改了什么
1. 修复浅色主题误判
- 判定顺序改为:
body/html[data-ds-dark-theme]→html { color-scheme }→ 主题 token 亮度(< 0.5 才算深色) → 系统偏好; - 新增
luminanceOfColor():解析rgb()/rgba()/#hex亮度;paper-white(#f7f8fa)不再被当成深色; - 结果:浅色主题不再应用暗夜壁纸 / 深色浓度,纹理模式与背景模式的灰罩消失;
- 回归测试:paper-white 下 theme=light、壁纸=浅色图、浓度=0.49。
2. README 精简
- 1186 行 / 84 KB → 145 行 / 8.9 KB;
- 保留:功能总览、安装/使用、深浅色主题、重启键、控制台 API、外部副作用、测试、隐私、License;
- 详细开发记录仍在
HANDOFF.md与restart/README.md。
3. 包含上一版 v0.8.12 的全部内容
- 深浅色主题壁纸:深色用桌面
DeepSeek 暗夜模式.png,包内assets/deepseek-dark.webp(125 KB,已去 EXIF/XMP)兜底;浅色保持原两张; - 深色独立参数(纹理 0.85 / 背景 0.7,滑块分主题保存;深色纹理
lighten混合); - 主题切换全量重算图层 / 毛玻璃 / 气泡 / 二级面板 / 遮罩;
- 深色 GUI 可读性:胶囊/面板/诊断深底浅字,激活胶囊按钮白底黑字。
安装 / 升级
- 下载
dsh-ui-beautify-0.8.13.zip(803,114 B,SHA2560A29FD7507C303BFDDC2931EA460F5ED067732151DA9848DADCF1B3B80FD3480); - 用 DSH 插件管理覆盖安装(本地目录 target
file:C:/path/to/dsh-ui-beautify;若报ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION锁文件校验,安装时指定官方 registryhttps://registry.npmjs.org/); - 重启 DSH 一次。
外部副作用声明
| 项 | 值 |
|---|---|
| 插件本体 | 只写自己的节点/样式,不碰 app.asar,无守护进程 |
child_process |
仅重启键链路:面板「启用重启键」或自动准备 → 启动随包 PowerShell 安装器(安装器内部用 WMI 逃逸长驻编排进程) |
| 壳补丁(可选) | 仅打补丁时改 app.asar 两个已存在条目(BEGIN/END 标记 + 双 SHA 备份 + 可逐字节还原);必须 DSH 完全退出 |
| 用户数据 | 设置存 localStorage(__dshui.*);不收集、不上传 |
| 网络 | 无 |
测试
host 29/29 · client 99/99 · reload-ui 6/6(离线);整包解压复测一致。
隐私
仓库历史与发布包已清理本机用户名/绝对用户路径;壁纸资源已去除 EXIF/XMP 等元数据。
English version(点击展开 / Click to expand)
DSH UI Beautify v0.8.13 — Light-theme misdetection fix + concise README
Fix: DSH's light theme base is paper-white (#f7f8fa-like, not pure white). The previous "anything not pure white is dark" fallback made light mode apply the dark wallpaper and dark-mode opacity, producing a grey veil in both texture and backdrop modes. v0.8.13 detects dark mode by luminance (a base colour is dark only when luminance < 0.5); light mode is back to normal. The README was also reduced from 1186 lines to 145 lines.
Changes
- Light-theme fix — detection order:
body/html[data-ds-dark-theme]→html { color-scheme }→ theme-token luminance → system preference; newluminanceOfColor()parsesrgb()/rgba()/#hex; paper-white is no longer treated as dark; regression test added. - README cleanup — 1186 → 145 lines, covering features, install/usage, theme behaviour, restart key, console API, side effects, tests, privacy and license; detailed notes remain in
HANDOFF.md.
Install
Download dsh-ui-beautify-0.8.13.zip (803,114 B, SHA256 0A29FD7507C303BFDDC2931EA460F5ED067732151DA9848DADCF1B3B80FD3480), overwrite-install as a local DSH plugin, restart DSH once.
Side effects
The plugin body only writes its own nodes/styles — no app.asar changes unless the optional restart-key shell patch is enabled. child_process is used only by the restart installer. Settings live in localStorage; no network, no telemetry, no user-data collection.
Tests
Host 29/29, client 99/99, reload-ui 6/6 (offline); extracted-zip retest identical.
DSH UI Beautify v0.8.12 — 深浅色主题壁纸 / Theme-aware Wallpapers & Dark GUI
🌐 语言 / Languages: 中文(本页) | English(下方折叠块,点击展开)
DSH UI Beautify v0.8.12 · 深浅色主题壁纸 + 深色参数 + 深色 GUI 可读性
一次发齐 0.8.7 → 0.8.12 的全部改动:检测深浅色主题自动换壁纸(深色用桌面
DeepSeek 暗夜模式.png,浅色不变)、
深色独立一套视觉参数、主题切换后二级面板/气泡等全量重算、深色下自家 GUI 与按钮的高对比配色。
覆盖安装后重启一次 DSH 生效。
这一版改了什么
1. 深浅色主题壁纸
- 检测 DSH 主题(真实标记
body[data-ds-dark-theme],CSS token/系统偏好兜底); - 深色 → 自动使用桌面
DeepSeek 暗夜模式.png(兼容deepseek暗夜模式.png等大小写变体); - 浅色 → 完全保持原来的两张壁纸与行为不变;
- 暗夜图随包兜底:
assets/deepseek-dark.webp(125,598 B,已去 EXIF/XMP 元数据),桌面上没有图也能用; - 暗夜图不存在时自动退回浅色行为,不报错、不写坏偏好。
2. 胶囊图片栏按主题切换
- 浅色显示原来的两张(deepseek 4k / 黑白无水面),深色只显示「暗夜」一张;
- 深浅偏好分开保存(
__dshui.image/__dshui.image.dark),切回浅色恢复之前的浅色选择。
3. 深色独立参数
- 纹理模式浓度深浅两套:深色默认 0.85、背景模式 0.7;浅色仍是 0.49/0.5;
- 面板「浓度」滑块改的是当前主题那一套(深色存
__dshui.opacities.dark),标签显示「浓度(深色)」; - 深色纹理模式混合改为
lighten(multiply下暗色壁纸在暗 UI 上几乎不可见);浅色保持multiply。
4. 主题切换全量重算
- 深→浅/浅→深时重新应用:图层图与浓度、毛玻璃变量、气泡/代码块原色、二级面板/问答窗口/DSH 菜单遮罩、薄纱与通透化;
- 修复「切回浅色后二级面板、气泡仍是旧主题颜色」的问题。
5. 深色 GUI 可读性
- 左上角入口胶囊/设置面板/诊断面板:深色下强制深底浅字(静态 CSS 兜底,不吃 DSH 半透明 token);
- 激活态胶囊按钮:DSH 深色主题的 brand token 是白色,原「品牌色底+白字」变成白底白字;深色下改为 白底 + 黑字(未激活:透明底+浅字),浅色保持原品牌蓝底白字;
- 胶囊/面板配色在主题切换时同步重算。
安装 / 升级
- 下载
dsh-ui-beautify-0.8.12.zip(834,475 B,SHA256076EF398C17C855717910FBD940A40CE12959EF87644FFD404E18DEF8AC6BA2E); - 用 DSH 插件管理覆盖安装(本地目录 target 用
file:C:/.../dsh-ui-beautify;若报ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION锁文件校验,安装时指定官方 registryhttps://registry.npmjs.org/); - 重启 DSH 一次。
外部副作用声明
| 项 | 值 |
|---|---|
| 插件本体 | 只写自己的节点/样式,不碰 app.asar,无守护进程 |
child_process |
仅重启键链路:面板「启用重启键」或自动准备 → 启动随包 PowerShell 安装器(安装器内部用 WMI 逃逸长驻编排进程) |
| 壳补丁(可选) | 仅打补丁时改 app.asar 两个已存在条目(BEGIN/END 标记 + 双 SHA 备份 + 可逐字节还原);必须 DSH 完全退出 |
| 用户数据 | 设置存 localStorage(__dshui.*);深色壁纸从桌面读取,不写入 |
| 网络 | 无 |
测试
host 29/29 · client 98/98 · reload-ui 6/6(离线);整包解压复测一致。
English version(点击展开 / Click to expand)
DSH UI Beautify v0.8.12 — Light/dark wallpapers, dark-mode parameters, readable dark GUI
Bundles everything from 0.8.7 → 0.8.12: theme detection with automatic wallpaper switch (dark uses the desktop
DeepSeek 暗夜模式.png, light unchanged), a separate dark-mode parameter set, full visual recomputation on theme
changes, and high-contrast dark GUI (active capsules become white with black text). Overwrite-install, restart DSH once.
Changes
- Theme-aware wallpapers — detects the real DSH marker
body[data-ds-dark-theme]; dark mode uses the desktop
DeepSeek 暗夜模式.png(case variants supported), light mode keeps the original two wallpapers; missing dark image
falls back to light behaviour. - Capsule image bar by theme — light shows the original two images; dark shows only the "暗夜" image; selections are
stored separately (__dshui.image/__dshui.image.dark). - Separate dark parameters — dark texture concentration defaults to 0.85 (backdrop 0.7; light stays 0.49/0.5); the
slider edits the current theme's set (dark saved in__dshui.opacities.dark); dark texture useslightenblending so
the dark wallpaper is visible over the dark UI. - Full recomputation on theme switch — layer image/opacity, frost variables, bubble/code-block original colours,
secondary panels/dialogs/DSH menu masks, scrim and transparency are recomputed. - Readable dark GUI — left-top pill, settings panel and diagnostics use forced dark backgrounds with light text;
active capsules (mode buttons, toggles, image buttons) become white with black text in dark mode (DSH's dark brand
token is white, which previously produced white-on-white); light mode keeps the brand-blue/white look.
Install
Download dsh-ui-beautify-0.8.12.zip (834,475 B, SHA256
076EF398C17C855717910FBD940A40CE12959EF87644FFD404E18DEF8AC6BA2E), overwrite-install, restart DSH once.
External side effects
Plugin body only touches its own nodes/styles — no app.asar, no daemon. child_process is used only for the restart
installer. Optional shell patch modifies only two existing app.asar entries, marker-delimited, double-SHA backed up and
byte-exact restorable. No user data; no network.
Tests
Host 29/29, client 98/98, reload-ui 6/6 (offline); extracted-zip retest identical.
DSH UI Beautify v0.8.6 — 重启键重新适配 / Restart-key Re-integration
🌐 语言 / Languages: 中文(本页) | English(下方折叠块,点击展开)
DSH UI Beautify v0.8.6 · 重启键重新适配(dsh-restart-key v1.3.1)+ 自动准备补丁
对齐独立重启插件
dsh-restart-key v1.3.1:随包安装器/壳补丁工具同步、修掉 Windows detached PowerShell 静默失败、插件加载后自动准备壳补丁(只需完全退出 DSH 一次),并加入双方重启键的让路/接手协调。
覆盖安装后重启一次 DSH 生效。
这一版改了什么
1. 随包重启工具同步到 dsh-restart-key v1.3.1
restart/scripts同步(含新增auto-restore-on-uninstall.ps1,共 6 个脚本);restart/shell4 个文件与独立插件完全一致(补丁格式/校验不变);- beautify 是「bundle 模式」:安装/体检/卸载 cmd 统一带
-SkipPlugin,不再要求独立插件半区文件;restart/verify-restart-key.ps1 -SkipPlugin实测 PASS。
2. 修复「启用重启键」实际不生效
- Windows 上 detached + 无控制台的 PowerShell 会静默退出(exit 0 但脚本没执行);
- 改为绝对路径
powershell.exe+ 非 detached 启动(安装器内部用 WMI 逃逸出长驻编排进程); - 手动启用 / 自动准备两条路径都已改。
3. 自动准备壳补丁(Plan A)
- 插件加载 1.5s 后自动检查
app.asar补丁; - 未打补丁且桌面宿主可用 → 自动启动随包安装器(
-SkipPlugin -NoRestart:只准备补丁,不强制退出、不自动重启 DSH); - 用户只需完全退出 DSH 一次,退出后自动打补丁并双 SHA 校验;下次打开 DSH 标题栏「重启」即可用;
/restart-status.json新增auto/autoResult/pluginVersion;面板和诊断显示「壳补丁已自动准备(退出生效)」;- 关闭自动准备:环境变量
DSHUI_NO_AUTO_RESTART=1。
4. 双方重启键的优先级协调
- beautify 检测到另一方重启键实际生效时暂缓注入,每 1.8s 复查(最多 4 次):对方让路/消失后由 beautify 接手,避免「双方都让路 → 没有按钮」;
- 与 dsh-restart-key v1.3.1 组合时:它检测到 beautify 会自动让路,最终由 beautify 提供按钮与补丁准备;
- 诊断里会显示「独立重启插件已让路(本插件提供按钮)」。
安装 / 升级
- 下载
dsh-ui-beautify-0.8.6.zip(701,158 B,SHA2566300F3F22F8228EDAE1E902E565099B5CF6C9DDE45C9ED0624030ECB0232DF4C); - 用 DSH 插件管理覆盖安装(本地目录 target 用
file:C:/.../dsh-ui-beautify;若报ERR_PNPM_MINIMUM_RELEASE_AGE_VIOLATION锁文件校验,安装时指定官方 registryhttps://registry.npmjs.org/); - 重启 DSH 一次;若壳补丁尚未安装,插件会自动准备,完全退出一次后生效。
外部副作用声明
| 项 | 值 |
|---|---|
| 插件本体 | 只写自己的节点/样式,不碰 app.asar,无守护进程 |
child_process |
仅重启键链路:面板「启用重启键」或自动准备 → 非 detached 启动随包 PowerShell 安装器(安装器内部再用 WMI 逃逸长驻编排进程) |
| 壳补丁(可选) | 仅打补丁时改 app.asar 两个已存在条目(BEGIN/END 标记 + 双 SHA 备份 + 可逐字节还原);必须 DSH 完全退出 |
| 用户数据 | 设置存 localStorage(__dshui.*) |
| 网络 | 无 |
测试
host 28/28 · client 96/96 · reload-ui 6/6(离线);整包解压复测一致;verify-restart-key.ps1 -SkipPlugin PASS。
English version(点击展开 / Click to expand)
DSH UI Beautify v0.8.6 — restart-key re-integration (dsh-restart-key v1.3.1) + auto patch preparation
Aligned with the standalone
dsh-restart-key v1.3.1: synced installer/shell-patch tooling, fixed the Windows detached-PowerShell
silent-exit bug, auto-prepares the shell patch after plugin load (user only quits DSH once), and coordinates restart-key
ownership with the other plugin. Overwrite-install, then restart DSH once.
Changes
- Synced restart tooling to v1.3.1 —
restart/scripts(6 scripts incl.auto-restore-on-uninstall.ps1) and
restart/shell(byte-identical to the standalone plugin). Bundle mode passes-SkipPluginfor install/verify/uninstall. - Fixed "Enable restart key" doing nothing — detached + console-less PowerShell on Windows silently exits (exit 0,
script never runs). Now uses the absolutepowershell.exepath and a non-detached spawn; the installer itself escapes
to a long-lived orchestrator via WMI. - Auto patch preparation (Plan A) — 1.5 s after plugin load, check the
app.asarpatch; if missing and the desktop host
is available, launch the bundled installer with-SkipPlugin -NoRestart(prepare only; no forced quit, no auto-restart).
Quit DSH once and the patch is applied/verified; the title-bar Restart works next launch.
/restart-status.jsonnow carriesauto/autoResult/pluginVersion; disable withDSHUI_NO_AUTO_RESTART=1. - Restart-key priority coordination — when another provider's button is actually active, beautify defers and re-checks
every 1.8 s (max 4 times) so it takes over once the other side yields, avoiding "both yield → no button". - Tests — host 28/28, client 96/96;
verify-restart-key.ps1 -SkipPluginPASS.
Install
Download dsh-ui-beautify-0.8.6.zip (701,158 B, SHA256 6300F3F22F8228EDAE1E902E565099B5CF6C9DDE45C9ED0624030ECB0232DF4C),
overwrite-install, restart DSH once.
External side effects
Plugin body only touches its own nodes/styles — no app.asar, no daemon. child_process is used only for the restart
installer (user-initiated or auto-prepared; installer itself escapes via WMI). Optional shell patch modifies only two
existing app.asar entries, marker-delimited, double-SHA backed-up and byte-exact restorable, only while DSH is fully
exited. No user data; no network.