DeepSeek Harness Plugin

yezitotempeace/dsh-chat-background

Stars ★ 0 Category Themes & Appearance Added 2026-10-20

Chat wallpaper: use a local image, a local video or one of six preset gradients as the chat background, with clarity, opacity, zoom, position, dark veil, fit mode, motion and glass panels; files stay in IndexedDB and nothing is uploaded.

Install

# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)

dsh plugin --profile web add github:yezitotempeace/dsh-chat-background

Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).

README

中文 | English

Change the DSH web UI background: use a local image, a local video, or one of the built-in preset gradients. A small floating button in the bottom-right corner opens the adjustment panel.

Images and videos are stored only in the browser's IndexedDB, settings only in localStorage — the plugin makes no network requests and never reads chat content.

What you can adjust

Control Effect
Pick image / video Choose JPG / PNG / WebP / GIF or MP4 / WebM / MOV from your gallery or files
Preset backgrounds Twelve gradients, each with a light-mode and a dark-mode painting that follows the UI theme: morning mist, sea salt, peach, green grape, aurora, sunset, deep sea, sakura, lavender, warm sand, night, ink rock
Clarity 0–100%, lower means blurrier (mapped to 0–14px blur)
Background opacity Opacity of the wallpaper itself
UI opacity How much of the background shows through the UI base layer
Composer opacity Transparency of the input card and user bubbles (default 90%)
Brightness / contrast / saturation Color adjustments for the background
Zoom / horizontal / vertical position Custom framing for portraits or large images
Veil A black layer in the dark theme, a half-strength white haze in the light theme, to keep text readable
Fit mode Cover / contain / tile
Motion Static / drift / slow breathing (auto-disabled when the OS prefers reduced motion)
Video autoplay Loop the video; when off it stops on the first frame (saves power)
Glass panels Sidebar, cards and popovers become translucent glass
Enable background One switch; turning it off restores the original UI

The bottom-right button can be dragged up/down and remembers its position; Esc or a click outside closes the panel; settings survive a page refresh.

Why the light theme is no longer washed out

In a light UI, applying the same "UI opacity" as the dark theme turns a pale gradient into a flat grey sheet — the white base layer simply dominates. The base is therefore split:

  • The base colour follows both theme and preset: every preset ships a pair of tint colours (tintLight / tintDark), and the light one keeps a hint of hue instead of neutral grey;
  • The light theme runs at 55% strength: UI opacity is scaled by 0.55 in light mode, so the gradient survives while text contrast stays above 15:1;
  • The base is a vertical gradient, not a flat sheet: 58% at the top, full in the middle, a touch more at the bottom, which gives the canvas depth;
  • The veil colour follows the theme: a white haze at half strength in light mode, still black in dark mode.

All twelve presets carry a light and a dark painting, so switching themes needs no manual change.

Files

package.json        plugin manifest: bundle patch + dsh.client (web)
cordis.patch.yml    host loader row: id=chat-background
lib/index.js        host half (empty apply, exists to occupy the row)
lib/client.js       browser half: background layers + floating button + panel (plain DOM)

How it works

  • The browser half inserts four fixed-position layers into body: wallpaper #dshbg-image / video #dshbg-video, dark veil #dshbg-veil, and a UI tint #dshbg-tint, all with negative z-index below the app content; video uses <video muted loop playsinline>.
  • When enabled it sets data-dshbg="on" on body and makes --dsw-alias-bg-base transparent so the chat canvas reveals the wallpaper; the UI tint is composed by #dshbg-tint with color-mix() according to the UI-opacity setting, so it works for both light and dark themes.
  • render() reads body[data-ds-dark-theme] to pick the preset's css/cssDark pair and its tintLight/tintDark; a MutationObserver watches that attribute, so switching themes needs no reload.
  • Glass mode additionally overrides --dsw-specific-sidebar-fill and --dsw-alias-bg-layer-1/2/3.
  • All DOM is mounted inside ctx.effect, so disabling the plugin removes everything and leaves no style pollution.

Install

  • Put the repo at /root/dsh-chat-background;
  • add "dsh-chat-background": "link:/root/dsh-chat-background" to the profile dependencies and dsh-chat-background to dsh.profile.bundles;
  • create the node_modules/dsh-chat-background link and restart the web app; if the floating button does not appear, refresh the page once.

Disable / uninstall

  1. Remove dsh-chat-background from dsh.profile.bundles (or add a disabled: true patch row in the profile cordis.patch.yml);
  2. restart the web app, then delete the link and this directory;
  3. to wipe the stored settings too: run localStorage.removeItem('dsh-chat-background:state:v1') in the console and delete the IndexedDB database dsh-chat-background.

Content from the project README on GitHub ↗

Links

More in this category

View the whole category →

Community comments

Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.