Themes & Appearance
dsh-bg-wallpaper
roseplanetb613/dsh-bg-wallpaper · ★ 0
DeepSeek Harness Web GUI wallpaper plugin bundle: serve a local image as the pag
README body is shown in Chinese.
安装
dsh plugin --profile web add github:roseplanetb613/dsh-bg-wallpaperGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
For install and environment setup, plus plugin development tutorials, see DSH community docs ↗
README
DeepSeek Harness Web GUI 背景图插件(本地 bundle):通过 harness 的 web server 提供一张本地图片,并把页面背景铺满为这张图。
安装
cd <harness>
dsh plugin --profile web add <本仓库路径>
然后重启 web 服务(关掉 dsh web 进程 → 重新启动 → 刷新页面)。
配置
默认图片路径:C:\Users\Inspiration\Pictures\background.jpeg
换图三种方式(任选其一):
- 直接替换上述路径下的图片文件,刷新页面即生效
- 编辑
lib/index.js里的默认路径常量 - 在 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覆盖为半透明让图片透出