Themes & Appearance

dsh-bg-wallpaper

roseplanetb613/dsh-bg-wallpaper · ★ 0

roseplanetb613

DeepSeek Harness Web GUI wallpaper plugin bundle: serve a local image as the pag

README body is shown in Chinese.

License
Unknown
Added
2026-08-23
Maintenance
active
Install kind
github

No manifest check is available; listing does not imply compatibility or security review.

安装

dsh plugin --profile web add github:roseplanetb613/dsh-bg-wallpaper

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

For install and environment setup, plus plugin development tutorials, see DSH community docs ↗

README

Source README · body: zh · Read Chinese README

Table of contents
  1. 安装
  2. 配置
  3. 调透明度
  4. 卸载
  5. 原理

DeepSeek Harness Web GUI 背景图插件(本地 bundle):通过 harness 的 web server 提供一张本地图片,并把页面背景铺满为这张图。

安装

cd <harness>
dsh plugin --profile web add <本仓库路径>

然后重启 web 服务(关掉 dsh web 进程 → 重新启动 → 刷新页面)。

配置

默认图片路径:C:\Users\Inspiration\Pictures\background.jpeg

换图三种方式(任选其一):

  1. 直接替换上述路径下的图片文件,刷新页面即生效
  2. 编辑 lib/index.js 里的默认路径常量
  3. 在 profile 的 cordis.patch.yml / cordis.yml 里给 ui-bg-wallpaper 行配置 imagePath:
- id: ui-bg-wallpaper
  name: '@dsh-external/dsh-bg-wallpaper'
  config:
    imagePath: 'D:\wallpapers\my.jpg'

调透明度

编辑 lib/client.js 里 --dsw-alias-bg-base 覆盖的 0.5 值(浅色/深色各一个),数值越小背景图越清晰。

卸载

dsh plugin --profile web remove @dsh-external/dsh-bg-wallpaper

然后重启服务。

原理

  • Host 端(lib/index.js):注册 /dsh-bg/background.jpeg 路由,通过 fs 服务读取本地图片(inject: ['webServer', 'fs'] 等待服务就绪,避免启动竞态)
  • Client 端(lib/client.js):注入样式,把图片铺到 html/body 画布,并把 --dsw-alias-bg-base 覆盖为半透明让图片透出