dsh-text-appearance

by zhuyoujie-2025

0 主题与外观github 检测到 manifest package.json#dsh收录于 08-16

DeepSeek Harness(DSH)文字外观插件:在「设置 → 通用」里分别调节「思考内容」与「正文输出」的 字体、颜色、字号 。

A DeepSeek Harness (DSH) text-appearance plugin: separately adjust the font, color and size of the thinking content and the body output under Settings → General.

安装

dsh plugin --profile web add github:zhuyoujie-2025/dsh-text-appearance

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DeepSeek Harness(DSH)文字外观插件:在「设置 → 通用」里分别调节「思考内容」与「正文输出」的字体、颜色、字号。

功能

  • 字体:默认 / 系统 / 微软雅黑 / 苹方 / 宋体 / 黑体 / 楷体 / Georgia 衬线 / Consolas 等宽
  • 颜色:三条滑块(完整 HSL)——色相条选颜色、饱和度条选灰↔纯色、明度条选黑↔白深浅;覆盖黑/白/灰 + 彩色 + 深浅,拖动连续顺滑不跳变,左侧色块实时预览
  • 大小:12–28px 字号滑块

特性

  • 自包含:字体与正文颜色/字号通过 CSS 覆盖实现([data-variant="think"] 定位思考内容、[class*="_markdown"] 定位正文),不依赖任何官方代码修改
  • 颜色/字号复用官方 theme 服务(--dsh-thinking-* / --dsh-body-* token)
  • 设置持久化到 localStorage,浏览器与 Electron 桌面版均生效

安装

dsh plugin add <本目录或 git 仓库地址>

或手动:把本包加入 profile 的 dsh.profile.bundles,构建 lib/ 后重启 dsh web。

构建

npm install
npm run build   # tsdown → lib/index.js + lib/client.js

说明

本插件替代内置的「文字外观」设置(原生颜色选择器版本)。若你的环境同时显示旧版「文字外观」,可移除 ui-theme 插件里的 ThinkingColorRow 注册。

原始 README: https://github.com/zhuyoujie-2025/dsh-text-appearance/blob/master/README.md ↗