Qiongkura/dsh-interface-settings ↗★ 2
dsh-interface-settings
DSH interface customization plugin: wallpaper, panel/input transparency, blur strength, splash screen 适合想自定义网页界面壁纸与透明玻璃效果的用户;配置存于浏览器本地。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
安装与使用
用户安装(无需 npm/pnpm,已验证)
像用量统计插件一样,把插件拷贝到 DSH 的 profile 目录即可(不需要 npm):
## 📝 使用示例
```ts
// 浏览器端 apply:读配置 → 注入外观
const settings: InterfaceSettings = loadSettings() // 读 localStorage
applyWallpaperLayer(settings) // 壁纸层
applyGlassAndTransparency(settings) // 玻璃 + 透明
if (settings.splashMode !== 'default') applySplashLayer(settings) // 启动画面
// 设置面板改动即时预览并保存
saveSettings(next)
⚙️ 配置说明
配置保存在浏览器 localStorage(键 dsh.interface-settings.v1):
| 配置项 | 说明 | 默认 |
|---|---|---|
wallpaper | 壁纸图片(纯 web:data URL;桌面端:路径) | null |
videoWallpaper | 视频壁纸路径(桌面端独有) | null |
videoSound | 视频壁纸声音 | false |
wallpaperBlur | 壁纸模糊 px | 18 |
sidebarWallpaper | 侧栏独立壁纸(null = 共用主图) | null |
codeAlpha | 代码块透明度 | 0.45 |
transparent.* | 新对话/输入框/侧栏/主界面 透明开关 | true |
glassBlur | 输入框/轨迹玻璃模糊 px(0-64) | 10 |
panelAlpha | 面板透明度 | 0.55 |
splashMode | 启动画面 default/follow/custom | default |
splashFile | 自定义启动素材 | null |
splashDuration | 动画时长(秒) | 0 |
splashFade | 淡出时长(秒) | 0.5 |