TableRogue
dsh-pixel-icons
把 DeepSeek Harness GUI 矢量 SVG 图标转为像素风的插件
- Stars
- 0
- Language
- JavaScript
- Created
- Aug 16, 2026
- Updated
- Aug 16, 2026
Introduction
dsh-pixel-icons
把 DeepSeek Harness Web GUI 中的矢量 SVG 图标转为像素风(1px 像素块)的插件。
用处
- 运行时把全部图标(
fill="currentColor"的 SVG)光栅化并重建为 1px 像素块,与 Fusion Pixel 像素字体风格统一。 - 超采样(3×)+ 块平均判定,细线连续、粗细均匀。
- 只处理图标:上下文进度环等功能性 SVG(无
currentColor)自动跳过,不破坏功能。 - 原地修改保留原节点 identity,不破坏 React 协调(侧栏折叠/展开正常)。
安装(每次启动自动加载)
# 本地 checkout
dsh plugin --profile web add ./dsh-pixel-icons
# 或从 GitHub(纯 JS,无构建步骤)
dsh plugin --profile web add github:TableRogue/dsh-pixel-icons
建议搭配 dsh-fusion-pixel-font 与 dsh-fusion-pixel-ui-adapt 使用。安装后自动追加进 profile 的 dsh.profile.bundles,启动 dsh --profile web 即生效。验证 / 卸载:
dsh --profile web --dump-config # 应看到 # == dsh-pixel-icons 层
dsh plugin --profile web remove dsh-pixel-icons
临时方式(动态插件,单次进程):把 src/client.js 头注释以下的内容填入 cordis_define 的 code.client 并 cordis_run,详见文件头注释。
配置
SCALE:超采样倍数(默认 3),改小像素颗粒更大、改大线条更精细。0.35:块平均覆盖率阈值,细线跨块更易命中。- 调参后需刷新页面重新光栅化。
文件
index.js— Host 半:空 apply(纯 client 插件)。src/client.js— 动态插件源码(文档参考)。lib/client.js— 发布 bundle(client-modules 加载)。cordis.patch.yml— profile 组合补丁行。
License
MIT © 2026 TableRogue