dsh-any-background 0.1.8 → 0.1.9

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
@@ -33,7 +33,7 @@ A **DeepSeek Harness** appearance plugin that lets you fully customize the Web U
33
33
  <p align="center">
34
34
  <img src="example_img/image-4.png" alt="Background editor" width="720">
35
35
  <br/>
36
- <em>Background editor · image wallpapers support drag-to-pan and scroll-to-zoom</em>
36
+ <em>Background editor · image/video wallpapers support drag-to-pan and scroll-to-zoom</em>
37
37
  </p>
38
38
 
39
39
  <p align="center">
@@ -58,19 +58,27 @@ A **DeepSeek Harness** appearance plugin that lets you fully customize the Web U
58
58
 
59
59
  - **PS-style Color Wheel** — Pick hue on the ring, adjust saturation & lightness in the inscribed square. Generates 30+ CSS design tokens in real time.
60
60
  - **Precise HSL / RGB Input** — Enter exact color values numerically with instant bidirectional sync to the wheel.
61
- - **Smart Color Extraction** — One click derives a theme color from your wallpaper by sampling the visible region, quantizing, and filtering out gray / near-black / near-white pixels. Fully client-side.
61
+ - **Smart Color Extraction** — One click derives a theme color from your wallpaper by sampling the visible region, quantizing, and filtering out gray / near-black / near-white pixels. Video wallpapers contribute via an auto-captured frame. Fully client-side.
62
62
  - **Eyedropper** — Hover the wallpaper to preview a color and click to pick it as the theme color.
63
63
  - **Background Wallpaper** — Upload any image as your wallpaper. Drag to pan and scroll to zoom inside a viewport-proportional editor.
64
+ - **Video Wallpaper** — Use a video as a live wallpaper: muted looping playback that survives refreshes (file persistence + HTTP streaming with Range seek), with an auto-captured frame powering the preview, theme-color extraction, and the position editor.
65
+ - **Position Editor** — One shared editor for images and videos: drag to pan, scroll to zoom, one-click reset. Image and video placements are stored separately and never overwrite each other.
66
+ - **Layout Modes** — Fit / Fill / Stretch / Tile / Center for both images and videos; in Fit mode the editor-committed framing stays consistent across window resizes and cross-monitor moves.
64
67
  - **Generated Dynamic Backgrounds** — Choose mesh gradient, Shader, or geometric patterns with adjustable spread, intensity, and seed locking.
65
68
  - **Per-part Interface Opacity** — Independent sliders for main background, sidebar, cards & panels, plus the settings panel and wallpaper.
66
69
  - **Per-part Interface Blur** — Frosted-glass `backdrop-filter` blur (0–60 px) for each interface part.
67
- - **Theme Export / Import** — One-click export to a self-contained `dsh-any-theme.json` (config + wallpaper) and import to restore it anywhere.
70
+ - **Conversation View Cards** — The message list is wrapped in a translucent card automatically, and the trajectory page gets whole-page opacity & blur controls, letting the wallpaper shine through the content.
71
+ - **Theme Export / Import** — One-click export to a self-contained `dsh-any-theme.json` (config + wallpaper, video embedded as a data URL) and import to restore it anywhere.
68
72
  - **File-based Persistence** — All settings are stored on the filesystem under `~/.dsh/.dsh-any-background-data/`, not `localStorage`.
69
73
  - **Bilingual** — Full Chinese / English UI with automatic locale detection.
70
74
  - **Theme Watchdog** — Re-asserts the custom theme if the host resets it.
71
75
 
72
76
  ## Recent Optimizations
73
77
 
78
+ - **Video wallpaper end-to-end** — Videos are stored under MIME-derived names (`wallpaper.mp4/webm/...`) and streamed over the plugin's own HTTP route; they restore automatically after refresh or restart and travel inside exported configs.
79
+ - **Binary upload for large videos** — Uploads stream raw bytes over an HTTP POST straight to disk instead of a base64 detour through RPC (no channel body limit, any size works); aborted transfers clean up after themselves.
80
+ - **Video position editing** — The placement editor works on a captured frame reference with zoom/pan, adapted to all five layout modes; image and video framings persist independently.
81
+ - **Conversation view cards** — The message column gains an automatic card (border/radius/padding) and the trajectory page gets whole-page opacity & blur; switching views restores the previous host.
74
82
  - **Boot flicker eliminated** — Theme tokens are injected through a dedicated `!important` stylesheet instead of inline `body` styles, surviving host theme service resets.
75
83
  - **Color wheel overlap fixed** — The hue ring is drawn on top of the saturation/lightness square so the square corners no longer cover the ring.
76
84
  - **Inspiration palette selection cleared** — Picking a theme color from the wheel deselects any previously selected inspiration swatch.
package/README.zh.md CHANGED
@@ -33,7 +33,7 @@
33
33
  <p align="center">
34
34
  <img src="example_img/image-4.png" alt="背景编辑器" width="720">
35
35
  <br/>
36
- <em>背景编辑器 · 图片壁纸支持拖动平移与滚轮缩放</em>
36
+ <em>背景编辑器 · 图片/视频壁纸支持拖动平移与滚轮缩放</em>
37
37
  </p>
38
38
 
39
39
  <p align="center">
@@ -58,19 +58,27 @@
58
58
 
59
59
  - **PS 风格色轮** — 在色相环上选取色相,在内嵌方形中调整饱和度与明度,实时生成 30+ 个 CSS 设计令牌。
60
60
  - **精确 HSL / RGB 输入** — 通过数值精确输入颜色,与色轮实时双向同步。
61
- - **智能取色** — 一键从壁纸提取主题色:采样可见区域、量化像素、剔除灰色/近黑/近白,选出现量最大的鲜亮色。纯客户端完成。
61
+ - **智能取色** — 一键从壁纸提取主题色:采样可见区域、量化像素、剔除灰色/近黑/近白,选出现量最大的鲜亮色。视频壁纸自动截帧参与取色。纯客户端完成。
62
62
  - **吸管取色** — 在壁纸上悬停预览颜色,点击即可选为主题色。
63
63
  - **背景壁纸** — 上传任意图片作为壁纸,在视口比例的编辑器中拖动平移、滚轮缩放。
64
+ - **视频壁纸** — 上传视频作为动态壁纸:静音循环播放、刷新不丢失(落盘持久化 + HTTP 流式播放,支持 Range seek);自动截取一帧用于预览、主题色提取与位置编辑参考。
65
+ - **位置编辑器** — 图片与视频共用同一套编辑器:拖动平移、滚轮缩放、一键重置;图片与视频的位置状态各自独立保存,互不覆盖。
66
+ - **布局模式** — 适应 / 填充 / 拉伸 / 平铺 / 居中五种排布,图片与视频通用;「适应」模式下编辑器提交的构图在窗口缩放、跨屏移动后保持一致。
64
67
  - **动态生成背景** — 支持网格渐变、Shader、几何图案,可调节扩散范围、色彩强度并锁定种子。
65
68
  - **分部位界面透明度** — 主背景、侧边栏、卡片面板、设置面板与壁纸各自独立滑块。
66
69
  - **分部位界面模糊度** — 每个界面部位可独立调整毛玻璃 `backdrop-filter` 模糊(0–60 px)。
67
- - **主题导出 / 导入** — 一键导出为自包含的 `dsh-any-theme.json`(配置 + 壁纸),可随时导入还原。
70
+ - **对话视图卡片** — 消息列表自动包裹为半透明卡片,轨迹页可整页调节透明度与模糊,让壁纸从内容后方透出来。
71
+ - **主题导出 / 导入** — 一键导出为自包含的 `dsh-any-theme.json`(配置 + 壁纸,视频以 data URL 内嵌),可随时导入还原。
68
72
  - **文件持久化** — 所有设置保存到文件系统 `~/.dsh/.dsh-any-background-data/`,不再依赖 `localStorage`。
69
73
  - **中英双语** — 完整的中英文界面,自动跟随语言设置。
70
74
  - **主题守护** — 宿主重置主题后自动重新激活自定义主题。
71
75
 
72
76
  ## 近期优化
73
77
 
78
+ - **视频壁纸全链路** — 视频按 MIME 改名落盘(`wallpaper.mp4/webm/...`),经插件自建 HTTP 路由流式播放;刷新、重启后自动恢复,导出配置时视频一并内嵌分享。
79
+ - **大视频二进制直传** — 上传改走 HTTP 二进制 POST 流式落盘,不再 base64 绕行 RPC(突破通道 body 上限,任意大小可传),中断自动清理临时文件。
80
+ - **视频位置编辑** — 以截帧为参考图的位置编辑器,支持缩放/移动,与五种布局模式适配;图片与视频构图各自独立持久化。
81
+ - **对话视图卡片化** — 消息列自动上卡片(边框/圆角/内边距),轨迹页整页透明度与模糊可控,视图切换时旧宿主自动还原。
74
82
  - **消除启动闪屏** — 主题令牌改为通过独立的 `!important` 样式表注入,可抵御宿主主题服务的重置。
75
83
  - **修复色轮覆盖** — 色相环绘制在饱和度/明度方形之上,方形四角不再遮挡色环。
76
84
  - **灵感色板选中重置** — 在色轮中选取主题色后,灵感色板中的之前选中状态自动清除。