The DSH plugin architecture allows developers to extend the WebUI. If you need custom wallpapers or additional visual decoration layers, editing the source directly can be costly. The local, self-built plugin dsh-liya-skin-plugin provides a solution: it supports directory-based wallpaper management (including transparency adjustment and state persistence) and ships with a hand-drawn SVG “Liya Star-Moon” decoration layer.
Core Features¶
Wallpaper Management¶
The plugin manages wallpapers via the wallpapers/ directory. It supports PNG, JPG, WebP, GIF, and SVG formats. The WebUI provides a thumbnail grid; click to switch wallpapers dynamically without restarting the process.
Transparency and Persistence¶
A transparency slider (0–100, default 100) affects only the wallpaper image itself (the opacity of body::before). The chosen image and transparency are persisted by the host layer in $DSH_HOME/liya-wallpaper-state.json. After refreshing the WebUI, the state is automatically restored.
Liya Star-Moon Decoration Layer¶
This is a hand-drawn SVG decoration layer consisting of three parts:
1. Top Star Band: Moves with the sidebar width.
2. Bottom Star Trail: Responds to chat state; when chat is active (data-liya-chat-active), the star trail recedes.
3. Title Bar Badge: Displays the “Liya” crescent logo in the title bar.
The decoration layer can be toggled independently in the settings page. On uninstall, an effect destroyer fully restores CSS, style variables, and DOM nodes without leaving residue.
Configuration¶
Configuration items (global switch for the skin layer and individual components) are managed via “Settings → Plugins → This Plugin”. Changes take effect immediately upon saving.
Installation¶
Use the DSH CLI to install the plugin. Replace <dsh> with the actual CLI invocation, <profile> with your current profile name, and <plugin-directory> with the plugin’s path.
<dsh> plugin --profile <profile> add <plugin-directory>
Usage Steps¶
- Prepare assets: Clone or download the plugin source. The plugin directory contains no preset images; prepare your own images and place them in
wallpapers/. - Refresh the list: Go to the WebUI “Settings → Wallpaper” page and click the refresh button (🔄); the thumbnail list will be reloaded.
- Select wallpaper: Click a thumbnail to choose, or drag the transparency slider.
- Configure decorations: Go to “Settings → Plugins → This Plugin” to enable/disable the star band, star trail, or title bar badge.
Notes¶
- Bring your own assets: The repository does not include any wallpaper images; users must prepare their own.
- Transparency limitations: The semi-transparent layer has a fixed alpha of 0.6; some dark system panels may not allow the background to show through.
- Security protection: The image service endpoint
/liya-wallpaper/file/<name>validates filenames using basename and startsWith to prevent path traversal attacks. - Interaction occlusion: The decoration layer sets
pointer-events: noneto ensure it does not block interaction. However, because its z-index is 20, it may be occluded by a few fullscreen overlays. - License: The code is licensed under MIT; documentation is licensed under CC BY 4.0.
Ecosystem Links¶
- Catalog page: https://www.skillhub.cn/plugins/feverZHONG/dsh-liya-skin
- Source repository: https://github.com/feverZHONG/dsh-liya-skin