YangAtC/dsh-theme
YangAtC★ 0JavaScriptLast synced: 2026-08-17
DSH (DeepSeek Harness) 主题自定义插件:背景图 + 界面透明度调节,开箱即用
README excerpt
@yangatc/dsh-theme DSH(DeepSeek Harness)主题自定义插件:为网页版设置一个「主题」面板,支持: - 上传背景图片 ,三种显示模式:拉伸铺满(cover)、适应(contain)、居中(center) - 调节各界面层透明度 :应用背景 / 面板表面 / 侧边栏 / 浮层,即时生效 - 开箱即用 :内置默认预设(背景图 + 透明度),新设备安装后无需任何配置即可看到主题效果 - 设置持久化到磁盘, 重启 DSH 后依然保留 主界面中消息文本、行内代码、代码块(含标题栏)、工具结果、任务清单、输入框、菜单、气泡等表面层背景均随「面板表面」滑杆半透明,露出背景图片。 原理 DSH 的 Web 端是 Cordis 组合。本插件是 持久化的 profile 插件 (不是一次性动态插件): - Host 半区 ( lib/index.js ,运行在 DSH Node 进程): - 通过 ctx.connection.rpc.handle('/theme-custom', ...) 注册私有 RPC 通道,提供 get / save / upload / deleteBg 四个端点 - 配置写入 $DSH HOME/profiles/web/theme-config.json - 上传的背景图存到 $DSH HOME/profiles/web/theme-assets/ ,通过 /theme-assets 前缀路由静态提供 - 开箱即用 :首次运行把包内 assets/default-bg.jpg 复制到 theme-assets/ ,并把 presets/default-config.json 作为默认配置,用户改动后以用户配置为准 - Client 半区 ( lib/client.js ,运行在浏览器): - 在 settings.section 插槽注册「主题」面板(id theme-custom ,order 35) - 插件级 apply() 常驻应用背景图(独立 position: fixed 背景层,z-index -1,露出半透明表面)与 theme.overrideTokens(...) 透明度覆盖,面板开关不会撤销 - 透明度通过 @deepseek-ai/dsh-client-ui-theme 的 overrideTokens(source, tokens) 写入 token(如 --dsw-alias-bg-base 、 --dsw-specific-tip 、 --dsw-alias-markdown-code-block 等),由 ui-layout 的 ThemePresenter 投射到 document.body 内联样式 安装 方式 A:npm 安装(推荐) 在 $DSH HOME/profiles…
View full README on GitHub →Category
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 40,767
zhu1090093659/dsh-web-uiPlugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
★ 3,990
omdsh-dev/DSH-better-sidebar开放的侧边栏底座,支持三方拓展注册新侧边栏页面。内置文件渲染编辑/终端/Git/子代理页面
★ 1,890