DSH Plugin Store
Back to home

czzzlq

deepseek-harness-background

deepseek-harness背景自定义

Stars
1
Language
JavaScript
Created
Aug 13, 2026
Updated
Aug 13, 2026
Other
GitHub repo

Introduction

DeepSeek Harness Background (Theme Pro)

A dynamic Cordis theme plugin for the DeepSeek Harness web UI. It adds background switching (gradient wallpapers / custom images), background opacity and blur, accent colors, light/dark/system mode, and persists settings across sessions.

简体中文

Features

  • Theme mode: light / dark / follow system (built on the official theme service).
  • Background switching: 7 built-in gradient wallpapers (default, ocean, sunset, forest, violet, midnight, aurora).
  • Custom background image: upload a local image (≤2MB) as wallpaper, replaceable anytime.
  • Background opacity: 0–100% slider controlling wallpaper opacity.
  • Background blur: 0–20px slider for a frosted-glass effect.
  • Accent color: 9 presets plus a custom color picker, live-updating --dsw-alias-brand-primary.
  • Persistence: settings are written to disk and restored when the plugin runs again.
  • One-click reset: restore the default configuration.

Directory structure

deepseek-harness-background/
├── host.js      # Host half: persists settings via the fs service, exposes load/save RPC
├── client.js    # Client half: theme UI + token overrides + wallpaper style injection
├── LICENSE      # MIT
└── README.md

Usage

This plugin ships as a DSH "dynamic Cordis plugin": the contents of host.js and client.js are the code.host and code.client for cordis_define (plain JavaScript function bodies returning a Cordis Plugin).

In the DSH web GUI:

  1. Use the dynamic Cordis plugin tool (cordis_define): paste the contents of host.js into code.host and the contents of client.js into code.client.
  2. Activate with cordis_run.
  3. Open the settings panel (bottom-left gear), then the new "Theme Pro" page.

Note: dynamic plugins are temporary (re-run after each process restart). To auto-load on every startup, rewrite it as a persistent web plugin in the repo (host composition's web bundle layer) and rebuild.

Persistence

Settings are written to a JSON file through the host-side fs service. It tries the following locations in order and uses the first writable one:

  1. C:/Users/33144/.dsh/theme-pro.json (the DSH_HOME directory on the dev machine)
  2. .dsh-theme-pro.json (workspace root, relative)

Update the paths array at the top of host.js to point at your own DSH_HOME directory (Windows: C:/Users/<you>/.dsh, macOS/Linux: ~/.dsh).

Dependencies

  • Client: theme (token overrides / color scheme), slots (settings.section), styles, host, React
  • Host: fs (persistence), harness (private RPC)

License

MIT