dsh-theme-colors: DSH Web Interface Color Scheme Adjustment Plugin

The default color scheme of the DSH Web interface may not meet individual customization needs. The dsh-theme-colors plugin provides the ability to adjust colors directly within the interface, without modifying code or restarting the browser. It supports independent color settings for different regions and offers adjustments for depth and vividness based on the OKLCH color space.

Plugin Introduction

Maintained by Alicex7777, this plugin falls into the category of cosmetic customization plugins and is released under the MIT license. Its core value lies in providing real-time adjustment of colors for the DSH Web session bar, left-side session list, and right-side sidebar via a UI panel. It also offers 26 preset light/dark schemes and three-state control for text color.

Core Features

  1. Independent Regional Coloring
    Supports independent adjustment for the session bar, the left session list, and the right sidebar, ensuring changes in one do not affect the others.

  2. Adjustment Tools
    Each region supports a color picker, hexadecimal input, and opacity (0–100%) adjustment.

  3. OKLCH Depth and Vividness
    Based on the perceptually uniform OKLCH color space, it provides sliders for Depth (L) and Vividness (C), allowing adjustments to color depth and intensity without altering the hue.

  4. Preset Schemes
    Built-in 26 color schemes (13 light and 13 dark), which automatically follow the DSH theme switching.

  5. Three-State Text Color
    Text color supports three states: Follow Official, Recommended Color, and Custom.

  6. Instant Effect and Saving
    Changes are saved and applied instantly. It supports “Follow Theme” to clear overrides and “Unify” to apply settings to all regions.

Installation and Activation

The plugin is installed within a profile (the Web profile is named web). The installation command uses link: to point to the repository root directory.

dsh plugin --profile web add link:D:\repos\dsh-theme-colors

Note: When installing, the path following link: must be the repository root directory (the directory containing package.json), not a subdirectory.

Host-side code is loaded only when dsh web is started; you must restart dsh web after installation.

Usage

  1. Entry Point
    Click the floating entry “🎨 Colors”, or go to “Settings → General → Colors”.

  2. Switch Theme
    Switch between “Light Theme / Dark Theme” at the top. The two sets of colors correspond to the light and dark modes of the DSH theme.

  3. Adjust Colors
    Select a region, use the color picker or input a hexadecimal value, and drag the opacity slider. Changes are saved and applied instantly.

  4. Unify and Reset
    Click “Unify” to apply the current region’s color and opacity to all regions at once; click “Follow Theme” to restore the default value for that row; click “Reset All” to restore all settings.

  5. Entry Position
    The floating entry is draggable, and its position is automatically remembered.

  6. Text Color Adjustment
    On the right side of each row, you can switch the text color state (Follow Official / Recommended Color / Custom).

Notes

  1. Profile Installation
    The plugin is installed within a profile (the Web profile is named web).

  2. Restart Requirement
    Host-side code is loaded only when dsh web starts. You must restart dsh web after installation or uninstallation.

  3. Data Storage
    Color data is saved in the $DSH_HOME/.dsh-theme-colors. directory.

  4. Contrast Standard
    The contrast ratio for all built-in schemes is ≥ 12:1 (minimum 11.86:1).

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

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

Xiaoye