hezi2020/dsh-plugin-wiki--plugins-bilbillm-deepseek-harness-angelina-themes ↗★ 0
dsh-angelina-themes
Angelina light and dark glass themes with restrained parallax for DeepSeek Harness
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hezi2020/dsh-plugin-wiki#0f911a1b7aef331b19607a60c884be50e910c0ab&path:plugins/bilbillm-deepseek-harness-angelina-themes说明文档
阅读完整 README ↗DeepSeek Harness Angelina Themes
把 Codex 的安洁莉娜亮色、暗色主题移植到 deepseek-harness 的独立 dsh-plugin。插件包含:
- 安洁莉娜亮色与暗色完整 token 主题;
- 输入框、composer、菜单、listbox、dialog 的叶节点磨砂玻璃;
- 活跃会话的轻度柔化,不给整个对话列套强模糊;
- 亮色双层视差,暗色低幅度单层视差;
prefers-reduced-motion、触摸输入、窄屏和页面失焦降级;- 主题设置行、独立持久化选择和卸载清理。
English: README.en.md
安装
需要 DeepSeek Harness Web profile 和 Node.js 20+。lib/ 已提交到仓库,GitHub 安装不需要在用户机器上编译插件。
dsh plugin --profile web add github:bilbillm/deepseek-harness-angelina-themes
重启 Web profile 后,在设置的 General 页面选择 安洁莉娜主题。移除插件:
dsh plugin --profile web remove dsh-angelina-themes
插件使用浏览器本地键 dsh-angelina-themes.selection 记住选择;选择内置 Light/Dark/System 时会把该键恢复为 system,不会覆盖宿主设置。采用本地持久化是因为上游 Harness 的设置 API 有固定 namespace allowlist,第三方 Host namespace 不会暴露给浏览器。fork 内置主题仍会通过其 ui-theme namespace 同步 Host 设置。
Fork 内置主题兼容
本仓库的 feature/angelina-themes 分支已经内置了两个主题。插件会先读取 ctx.theme.getTheme().themes,对已存在的 id 直接复用,只注册缺失的主题,因此不会触发重复 id 异常,也不会在卸载时误删 fork 自己的主题。
同理,如果 fork 已经创建 #dsh-angelina-parallax 和 body[data-dsh-angelina-parallax],插件会复用现有视差层,不会添加第二套指针监听。
构建与测试
pnpm install
pnpm generate-assets
pnpm typecheck
pnpm build
pnpm test
pnpm smoke
构建会从 src/assets/ 和 src/themes.json 生成客户端 data URI 与主题定义,然后输出 lib/index.js、lib/client.js。发布包同时保留源素材、生成脚本、测试和归因文件,便于审计。
设计边界
- 玻璃只作用于叶节点;不会给 frame/sidebar 祖先加
backdrop-filter,避免破坏固定定位浮层。 - 活跃会话背景只使用低透明度 tint,输入内容不被整列模糊。
- 亮色图片视差参数为背景
-5/-3、前景10/6,暗色背景为0.5/0.25;Hero 输入区沿用 Harness 默认布局,标题、选择器、composer、控件及文字不参与视差。