yhPrime/dsh-theme-picker

yhPrime★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

DeepSeek Harness 主题选择插件:管理应用主题与已安装主题插件,同一时间仅一个主题生效。

README excerpt

dsh-theme-picker DeepSeek Harness 主题选择插件 —— 在设置面板中添加「主题」页面:统一管理应用主题与已安装的主题插件,同一时间仅一个主题生效,其余自动禁用。 A theme picker plugin for DeepSeek Harness: adds a Themes page to the Settings panel. It manages both app themes and installed theme plugins — only one theme stays active at a time, the others are disabled automatically. 功能 / Features - 应用主题(App themes) :列出 跟随系统 / 浅色 / 深色 以及皮肤插件注册的主题,点击即切换,同一时间仅一个生效。 - 已安装的主题插件(Installed theme plugins) :通过 dsh-market API 列出所有已安装的主题插件(含被禁用的),显示注册表友好名(如 dsh-maid-whale-webUI )与随界面语言切换的中英文描述。 - 一键启用、单主题独享 :启用某个主题插件时自动禁用其他所有主题插件(先走 market 的 use-skin ,市场分类器不识别时降级为 /toggle 手动独享),选择持久化到 market 的 state.json ,重启后保持。 - 实时同步 :列表每 6 秒刷新,与 dsh-market 页面状态互通;切换成功后提示刷新页面应用新皮肤。 安装 / Installation 本插件是标准的 dsh bundle 插件( dsh.bundle + dsh.client )。 方式一:本地目录(推荐) 或手动两步: 1. 在 profile 的 package.json 里添加依赖与 bundle 条目: 2. 在 node modules 中建立链接(junction),或运行 pnpm install : 方式二:git 依赖 安装后重启 DeepSeek Harness,插件随组合自动加载(可在市场「插件」页停用/启用)。 依赖 / Requirements - DeepSeek Harness(Web profile) - dshmarket(主题插件清单、启用/禁用与持久化均通过其 HTTP API 完成) 原理 / How it works - 「应用主题」直接使用客户端 theme 服务( getTheme / setTheme )。 - 「已安装的主题插件」调用 dsh-market 同源路由: GET /dsh-market/installed 、 GET /dsh-market/registry (主题分类…

View full README on GitHub →
Skins / UIdeepseek-harnessdshdsh-plugindsh-themeskin

Category