dsh-theme-button: Floating Theme Widget for the DeepSeek Harness Desktop App

DeepSeek Harness (DSH) adopts a plugin-based architecture. For desktop users, dsh-theme-button is a widget that allows you to add custom backgrounds to the DSH interface while maintaining the official appearance settings.

Installation

Environment Requirements: DeepSeek Harness Desktop (Windows), no additional dependencies.

Installation Steps:
1. Place the plugin folder in a fixed location (do not move it after installation).
2. Execute the installation command:

dsh plugin --profile desktop add link:C:\dsh-plugins\dsh-theme-button
  1. A complete restart of DSH is required. The host part of the plugin is only loaded at startup; refreshing the page will not work.

After successful installation, restart DSH and you should see the widget icon in the bottom right corner. You can also verify the version number by accessing http://127.0.0.1:<DSH port>/dsh-theme-button/version.

Core Features

Floating Widget

The widget is located at the bottom right by default and can be dragged to any position. The position is automatically remembered and persists after restart. Tap the icon to open/close the settings panel; the panel automatically collapses when dragging.

Official Appearance

The panel provides three modes: Light, Dark, and System. The selection syncs to DSH’s official appearance settings, maintaining two-way consistency with the official settings page.

Custom Background

The panel provides a master switch for “Custom Background”. When enabled, you can choose a solid color or an image as the background.

  • Solid Color: Use preset color blocks or customize with the color picker.
  • Image: Supports image upload, up to 6 images. Click a thumbnail to switch, click × to delete.

Background Parameters

Provides independent adjustment items for solid colors and images respectively:

  • Opacity: 0–10, controls background display intensity (0 is off).
  • Blur: 0–24px, controls background blur level.
  • Brightness: 0–10, 5 is 100%.
  • Saturation: 0–10, 5 is 100%.

Fit Modes

Supports four fill methods:
* Fill (Default): Fills the area, cropping overflow.
* Fit: Displays the whole image, may leave blank space.
* Tile: Repeats at original size.
* Stretch: Stretches to fill (will be distorted).

Visual Effects

The widget, panel, and color picker all adopt a semi-transparent frosted glass effect. When custom background is turned off, the effects disappear, restoring the native DSH appearance.

Color Picker Usage

The panel has a built-in custom-drawn color picker supporting the following operations:
* Hue Adjustment: Drag the handle on the middle color bar.
* Saturation & Lightness: Drag the handle in the square area above.
* Manual Input: The input box at the bottom supports HEX, RGB, and HSL formats. Press Enter or click elsewhere to apply.
* Format Switching: Click the ▴ ▾ buttons to switch between HEX / RGB / HSL.

Notes

  • Platform Limitations: Only supports Windows Desktop DSH.
  • Image Quantity: Maximum of 6 uploaded images.
  • Overlay Obstruction: The color picker and panel are drawn on an independent overlay; they may be obscured when DSH native menus or dialogs are open.
  • Update Promise: Features are fully functional, but continuous updates are not guaranteed.

Uninstallation

To uninstall, execute:

dsh plugin --profile desktop remove dsh-theme-button

Restart DSH again.

Source Code & Feedback

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye