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¶
-
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. -
Adjustment Tools
Each region supports a color picker, hexadecimal input, and opacity (0–100%) adjustment. -
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. -
Preset Schemes
Built-in 26 color schemes (13 light and 13 dark), which automatically follow the DSH theme switching. -
Three-State Text Color
Text color supports three states: Follow Official, Recommended Color, and Custom. -
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 containingpackage.json), not a subdirectory.
Host-side code is loaded only when dsh web is started; you must restart dsh web after installation.
Usage¶
-
Entry Point
Click the floating entry “🎨 Colors”, or go to “Settings → General → Colors”. -
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. -
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. -
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. -
Entry Position
The floating entry is draggable, and its position is automatically remembered. -
Text Color Adjustment
On the right side of each row, you can switch the text color state (Follow Official / Recommended Color / Custom).
Notes¶
-
Profile Installation
The plugin is installed within a profile (the Web profile is namedweb). -
Restart Requirement
Host-side code is loaded only whendsh webstarts. You must restartdsh webafter installation or uninstallation. -
Data Storage
Color data is saved in the$DSH_HOME/.dsh-theme-colors.directory. -
Contrast Standard
The contrast ratio for all built-in schemes is ≥ 12:1 (minimum 11.86:1).