dsh-theme-frost: Glassmorphism Wallpaper Plugin for DSH Web UI

DeepSeek Harness (DSH) allows extending Web UI functionality through plugins. When developing or using the Web UI, the default interface tends to be rather plain. The dsh-theme-frost plugin addresses this issue by providing a lightweight way to customize the interface background and visual style.

Plugin Introduction

This is a wallpaper plugin for the DSH Web UI, maintained by H2CO3w. Its core features include:
1. Setting a user-specified image as the page background.
2. Converting interface elements into a frosted glass effect while maintaining the official color scheme.
3. Supporting light and dark theme switching.

Core Features

  • Background Display: Supports multiple image formats including png, jpg, jpeg, webp, gif, avif, bmp, and svg.
  • Interface Styling: Uses CSS to implement a frosted glass effect, maintaining the official palette for the interface.
  • Theme Support: Light and dark themes share a single codebase, but wallpapers and parameters can be configured separately.
  • Configuration Adjustment: Controls blur level, opacity, image brightness, and saturation through the configuration file.
  • Instant Effect: Simply refresh the page after modifying the wallpaper or configuration—no service restart required.

Installation and Activation

Before installing, please ensure your DSH version is 0.2.0-rc.1 or newer.

  1. Clone the plugin repository to a local directory:
    git clone https://github.com/H2CO3w/dsh-theme-frost.git ~/dsh-theme-frost
  1. Link the plugin to DSH’s Web configuration file:
    dsh plugin --profile web add link:$HOME/dsh-theme-frost
  1. Restart the dsh web process to load the plugin.

Usage

Using this plugin mainly involves two steps:

  1. Change Wallpaper: Place the image file you want to use as the background into the wallpapers/ directory. Different images can be placed for light and dark themes within this directory.
  2. Adjust Effects: Edit the config.json file to adjust the blur level, opacity, and the brightness and saturation of the images.

After completing either of the above operations, simply refresh the browser page to see the results.

Configuration and Folder Structure

The plugin automatically generates the config.json file on first launch.

Configuration Options

  • blur: Background blur level.
  • surfaceOpacity: Opacity of the main surface (UI panels).
  • panelOpacity: Opacity of the settings panel.
  • wallpaper: Default wallpaper; if left empty, the first file in the directory will be used.
  • dark.wallpaper: Wallpaper used for dark mode.
  • light.wallpaper: Wallpaper used for light mode.
  • dark.brightness / dark.saturate: Brightness and saturation of the image in dark mode.
  • light.brightness / light.saturate: Brightness and saturation of the image in light mode.

If the JSON format is corrupted or parameter types are incorrect, the plugin will automatically fall back to default values.

Folder Structure

dsh-theme-frost/
├── lib/              # Plugin code
├── wallpapers/       # Wallpaper directory (includes sample images reimu.jpg and marisa.jpg)
├── config.json       # Configuration file (auto-generated)
├── package.json      # Plugin manifest
├── cordis.patch.yml  # Mount configuration
├── test/             # Test files
└── README.md

Use Cases and Notes

  • System Requirements:
    • DSH version must be 0.2.0-rc.1 or higher.
    • Browser must support the CSS color-mix property (Chromium 111+, Firefox 113+, Safari 16.2+).
  • License Notice:
    • The plugin source code follows the MIT license.
    • Note: The sample image files bundled in the wallpapers/ directory (reimu.jpg and marisa.jpg) are not covered by the MIT license.

dsh-theme-frost is a simple and practical tool suitable for developers who want to quickly achieve a personalized visual experience in the DSH Web UI.

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

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

Xiaoye