dsh-liquid-glass 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,9 @@ English | [中文](README.zh.md)
8
8
 
9
9
  **Theme backgrounds for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness)** — translucent surfaces with image or local video backgrounds.
10
10
 
11
- Translucent theme surfaces and scoped frosted menus over your own background image, with material presets, tint, wallpaper controls, and system accessibility response. Current version: **0.4.0**. A community plugin that reuses the host’s official controls where available.
11
+ Translucent theme surfaces and scoped frosted menus over your own background image, with material presets, tint, wallpaper controls, and system accessibility response. Current version: **0.4.2**. A community plugin that reuses the host’s official controls where available.
12
+
13
+ Settings cards and list outlines retain the Host theme's border colors, including custom light and dark themes.
12
14
 
13
15
  ## Install
14
16
 
@@ -18,7 +20,7 @@ dsh plugin --profile web add dsh-liquid-glass
18
20
 
19
21
  Run the command in a terminal. In the app’s Add plugin field, enter only `dsh-liquid-glass`.
20
22
 
21
- Open **Settings → General → Theme background**, immediately below Appearance. Expand the official chevron for basic options; advanced options remain collapsed. The switch controls glass and image/video backgrounds together, retaining preferences when disabled. Restart the host after upgrading. Enter `dsh-liquid-glass@0.4.0` in the app’s plugin field, not the full terminal command.
23
+ Open **Settings → General → Theme background**, immediately below Appearance. Expand the official chevron for basic options; advanced options remain collapsed. The switch controls glass and image/video backgrounds together, retaining preferences when disabled. Restart the host after upgrading. Enter `dsh-liquid-glass@0.4.2` in the app’s plugin field, not the full terminal command.
22
24
 
23
25
  ## Screenshots
24
26
 
@@ -51,7 +53,7 @@ Captured from the actual package in official DSH 0.2.2-rc.2 Web, using original
51
53
  - **System accessibility response**: reduced transparency or increased contrast selects effective Frost material and limits transparency to 50%, without overwriting saved preferences.
52
54
  - **Keyboard toggle**: Ctrl/Cmd+Shift+G through the host shortcut service. Change or remove “Toggle Liquid Glass” in the host Keyboard shortcuts settings. Linux Web starts unbound; conflicting defaults fall back to an unbound command.
53
55
 
54
- Independent user/assistant opacity floors and general host-panel blur/highlights are not implemented: verified official extension hooks are missing. See [local API evidence and validation limits](docs/v0.2.0-local-evidence.md). See [0.4.0 validation](docs/v0.4.0-validation.md) for this release.
56
+ Independent user/assistant opacity floors and general host-panel blur/highlights are not implemented: verified official extension hooks are missing. See [local API evidence and validation limits](docs/v0.2.0-local-evidence.md). See [0.4.0 validation](docs/v0.4.0-validation.md) for the 0.4.0 feature baseline.
55
57
 
56
58
  ## Privacy and compatibility
57
59
 
@@ -66,7 +68,9 @@ The host has no public settings leave-guard API. Unsaved-change protection uses
66
68
  The smoke test runs the published client bundle inside a mocked DSH browser runtime and exercises registration, lifecycle, settings, persistence, wallpaper controls and slider bounds:
67
69
 
68
70
  ```sh
71
+ npm ci
69
72
  node test/smoke.test.mjs
73
+ npm pack --dry-run --json
70
74
  ```
71
75
 
72
76
  ## Uninstall
package/README.zh.md CHANGED
@@ -8,7 +8,9 @@
8
8
 
9
9
  **[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的主题背景插件**:调整界面通透效果,设置图片或视频背景。
10
10
 
11
- 通过官方主题接口提供表面透明化、弹出菜单模糊、自定义壁纸、质感预设、色调和系统无障碍响应。当前版本 **0.4.0**。社区插件,界面尽量复用宿主提供的官方组件。
11
+ 通过官方主题接口提供表面透明化、弹出菜单模糊、自定义壁纸、质感预设、色调和系统无障碍响应。当前版本 **0.4.2**。社区插件,界面尽量复用宿主提供的官方组件。
12
+
13
+ 设置卡片与列表描边保留宿主主题的边框颜色,包括自定义的浅色与深色主题。
12
14
 
13
15
  ## 安装
14
16
 
@@ -18,7 +20,7 @@ dsh plugin --profile web add dsh-liquid-glass
18
20
 
19
21
  终端中运行上面的命令;如果使用应用的「添加插件」输入框,只填 `dsh-liquid-glass`。
20
22
 
21
- 入口为 **设置 → 通用 → 外观下方的「主题背景」**,默认折叠。点击官方箭头展开基础选项;高级选项再次折叠。开关同时控制透明效果和图片/视频背景,关闭不丢失偏好。升级后重启宿主。应用内安装框填写 `dsh-liquid-glass@0.4.0`,不要粘贴完整终端命令。
23
+ 入口为 **设置 → 通用 → 外观下方的「主题背景」**,默认折叠。点击官方箭头展开基础选项;高级选项再次折叠。开关同时控制透明效果和图片/视频背景,关闭不丢失偏好。升级后重启宿主。应用内安装框填写 `dsh-liquid-glass@0.4.2`,不要粘贴完整终端命令。
22
24
 
23
25
  ## 截图
24
26
 
@@ -51,7 +53,7 @@ dsh plugin --profile web add dsh-liquid-glass
51
53
  - **系统无障碍响应**:减透明或增强对比度启用时,临时使用磨砂质感并将透明度限制为最高 50%,不覆盖用户保存的偏好。
52
54
  - **快捷键切换**:经宿主快捷键服务注册 Ctrl/Cmd+Shift+G,在宿主「键盘快捷键」设置中可更改或移除「切换液态玻璃」。Linux 网页端默认不绑定;默认组合冲突时退为未绑定命令。
53
55
 
54
- 人/助手独立消息不透明度下限,以及任意宿主面板的磨砂/内侧高光,因缺少已核实的官方扩展接口而未实现。参见[本地 API 证据与验证限制](docs/v0.2.0-local-evidence.md)。本版验证记录见 [0.4.0 验证](docs/v0.4.0-validation.md)。
56
+ 人/助手独立消息不透明度下限,以及任意宿主面板的磨砂/内侧高光,因缺少已核实的官方扩展接口而未实现。参见[本地 API 证据与验证限制](docs/v0.2.0-local-evidence.md)。0.4.0 功能基线的验证记录见 [0.4.0 验证](docs/v0.4.0-validation.md)。
55
57
 
56
58
  ## 隐私与兼容性
57
59
 
@@ -64,7 +66,9 @@ dsh plugin --profile web add dsh-liquid-glass
64
66
  冒烟测试会在模拟的 DSH 浏览器运行时中执行实际发布的客户端 bundle,覆盖注册、生命周期、设置、持久化、壁纸控制和滑块边界:
65
67
 
66
68
  ```sh
69
+ npm ci
67
70
  node test/smoke.test.mjs
71
+ npm pack --dry-run --json
68
72
  ```
69
73
 
70
74
  ## 卸载
package/lib/client.js CHANGED
@@ -171,11 +171,9 @@ window.__ModuleLoader__.load({
171
171
  "video.storage": "视频保存或读取失败,请检查本地存储空间与权限。",
172
172
  "video.missing": "本地视频已不可用,请重新选择文件。",
173
173
  "video.blocked": "自动播放被阻止,请点击播放。",
174
- "video.saving": "正在检查并保存视频…",
175
174
  "video.play": "播放视频",
176
175
  "video.pause": "暂停视频",
177
176
  "video.reduced": "系统已启用减少动态效果,视频保持暂停。",
178
- "video.hint": "静音循环播放;页面不可见时自动暂停。视频仅保存在本设备。",
179
177
  "glass.presets": "质感预设",
180
178
  "glass.regular": "标准",
181
179
  "glass.clear": "清透",
@@ -186,7 +184,6 @@ window.__ModuleLoader__.load({
186
184
  "glass.warm": "暖灰",
187
185
  "glass.ink": "墨色",
188
186
  "glass.filter": "弹出菜单模糊",
189
- "glass.materialHint": "磨砂用于宿主菜单材质;上方可预览效果。",
190
187
  "glass.accessibility": "系统减透明或增强对比度已启用:使用磨砂质感,透明度最高 50%。",
191
188
  "glass.saveFailed": "设置保存失败,请检查浏览器存储空间或权限。",
192
189
  "glass.shortcut": "切换液态玻璃",
@@ -222,29 +219,21 @@ window.__ModuleLoader__.load({
222
219
  "row.advanced": "高级设置",
223
220
  "row.disabledHint": "开启主题背景后应用这些设置。",
224
221
  "glass.adjusted": "已微调,可重新选择预设恢复该质感。",
225
- "glass.preview": "文字与玻璃效果预览",
226
222
  "glass.reset": "恢复效果默认值",
227
- "row.subtitle": "由 Liquid Glass 提供 · 全界面透明化 + 自定义背景图",
228
- "glass.toggle": "启用玻璃质感",
229
223
  "glass.alpha": "透明度",
230
- "glass.hint": "透明度越大越透,背景越清晰。",
231
224
  "wallpaper.title": "背景",
232
225
  "wallpaper.choose": "选择图片或视频…",
233
226
  "wallpaper.upload": "上传图片或视频",
234
- "wallpaper.formats": "支持 JPG / PNG / WebP / GIF",
235
227
  "wallpaper.badType": "仅支持 JPG / PNG / WebP / GIF 格式的图片",
236
228
  "wallpaper.urlPlaceholder": "或粘贴图片 URL",
237
229
  "wallpaper.remove": "移除背景",
238
230
  "wallpaper.replace": "更换背景",
239
- "wallpaper.previewHint": "点击图片全屏预览",
240
231
  "wallpaper.save": "保存",
241
- "wallpaper.unsaved": "有未保存的更改",
242
232
  "wallpaper.badUrl": "图片链接加载失败,请检查后重试",
243
233
  "wallpaper.badFile": "图片文件读取或解码失败,请选择有效的图片",
244
234
  "wallpaper.tooLarge": "GIF 超出本浏览器的预计剩余存储空间,请缩小文件后重试",
245
235
  "wallpaper.saveFailed": "背景图保存失败,请释放浏览器存储空间或检查存储权限后重试",
246
236
  "wallpaper.checking": "校验中…",
247
- "wallpaper.hint": "背景铺满整个页面,保存在本浏览器;过大的静态图片会自动压缩,GIF 保留原图。"
248
237
  };
249
238
  const en = {
250
239
  "wallpaper.saveLeave": "Save and leave",
@@ -262,11 +251,9 @@ window.__ModuleLoader__.load({
262
251
  "video.storage": "Video could not be saved or read. Check local storage space and permissions.",
263
252
  "video.missing": "The local video is unavailable. Choose the file again.",
264
253
  "video.blocked": "Autoplay was blocked. Select Play video to retry.",
265
- "video.saving": "Checking and saving video…",
266
254
  "video.play": "Play video",
267
255
  "video.pause": "Pause video",
268
256
  "video.reduced": "Reduce motion is enabled. The video stays paused.",
269
- "video.hint": "Muted loop; pauses when the page is hidden. Video stays on this device.",
270
257
  "glass.presets": "Material preset",
271
258
  "glass.regular": "Regular",
272
259
  "glass.clear": "Clear",
@@ -277,7 +264,6 @@ window.__ModuleLoader__.load({
277
264
  "glass.warm": "Warm gray",
278
265
  "glass.ink": "Ink",
279
266
  "glass.filter": "Blur popup menus",
280
- "glass.materialHint": "Frost follows the host menu material. The panel above previews the material.",
281
267
  "glass.accessibility": "System transparency or contrast protection is active: Frost material, at most 50% transparency.",
282
268
  "glass.saveFailed": "Settings could not be saved. Check browser storage space or permissions.",
283
269
  "glass.shortcut": "Toggle Liquid Glass",
@@ -313,29 +299,21 @@ window.__ModuleLoader__.load({
313
299
  "row.advanced": "Advanced settings",
314
300
  "row.disabledHint": "Enable theme background to apply these settings.",
315
301
  "glass.adjusted": "Customized. Select a preset again to restore its material.",
316
- "glass.preview": "Text and glass preview",
317
302
  "glass.reset": "Reset appearance",
318
- "row.subtitle": "Powered by Liquid Glass · full-shell transparency + custom background",
319
- "glass.toggle": "Enable glassmorphism",
320
303
  "glass.alpha": "Transparency",
321
- "glass.hint": "Higher transparency reveals more of the background.",
322
304
  "wallpaper.title": "Background",
323
305
  "wallpaper.choose": "Choose image or video…",
324
306
  "wallpaper.upload": "Upload image or video",
325
- "wallpaper.formats": "JPG / PNG / WebP / GIF",
326
307
  "wallpaper.badType": "Only JPG / PNG / WebP / GIF images are supported",
327
308
  "wallpaper.urlPlaceholder": "…or paste an image URL",
328
309
  "wallpaper.remove": "Remove background",
329
310
  "wallpaper.replace": "Replace",
330
- "wallpaper.previewHint": "Click image to preview fullscreen",
331
311
  "wallpaper.save": "Save",
332
- "wallpaper.unsaved": "Unsaved changes",
333
312
  "wallpaper.badUrl": "Image failed to load from this URL. Please check and retry.",
334
313
  "wallpaper.badFile": "Image file could not be read or decoded. Please choose a valid image.",
335
314
  "wallpaper.tooLarge": "This GIF exceeds the estimated remaining browser storage. Please use a smaller file.",
336
315
  "wallpaper.saveFailed": "Background could not be saved. Free browser storage or check storage permissions and retry.",
337
316
  "wallpaper.checking": "Checking…",
338
- "wallpaper.hint": "The background spans the whole page and stays in this browser; large static images are compressed, while GIFs keep their original data."
339
317
  };
340
318
  //#endregion
341
319
 
@@ -638,8 +616,7 @@ window.__ModuleLoader__.load({
638
616
  materialDispose = ctx.theme.overrideTokens(MATERIAL_SOURCE, {
639
617
  "--dsw-menu-backdrop-filter": { light: filter, dark: filter },
640
618
  "--dsw-menu-surface-fill": { light: toRgba(tint.light, Math.max(0.55, contentAlpha)), dark: toRgba(tint.dark, Math.max(0.55, contentAlpha)) },
641
- "--dsw-specific-menu": { light: toRgba(tint.light, Math.max(0.55, contentAlpha)), dark: toRgba(tint.dark, Math.max(0.55, contentAlpha)) },
642
- "--dsw-alias-settings-card-stroke": { light: "rgba(255, 255, 255, 0.65)", dark: "rgba(255, 255, 255, 0.18)" }
619
+ "--dsw-specific-menu": { light: toRgba(tint.light, Math.max(0.55, contentAlpha)), dark: toRgba(tint.dark, Math.max(0.55, contentAlpha)) }
643
620
  });
644
621
  const overrides = {};
645
622
  for (const key of GLASS_TOKENS) {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "dsh-liquid-glass",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Theme backgrounds for DeepSeek Harness: native-style collapsible settings, translucent surfaces, and local image/video wallpapers. 主题背景:官方风格折叠设置、通透界面与本地图片/视频背景。",
5
5
  "license": "MIT",
6
- "author": "Ultronen",
6
+ "author": "Ultroncn",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/Ultroncn/dsh-liquid-glass.git"
@@ -22,6 +22,9 @@
22
22
  "web-ui"
23
23
  ],
24
24
  "type": "module",
25
+ "scripts": {
26
+ "test": "node test/smoke.test.mjs"
27
+ },
25
28
  "main": "lib/index.js",
26
29
  "exports": {
27
30
  ".": {