dsh-mpkg-wallpaper 3.1.1 → 3.1.3
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.en.md +32 -28
- package/README.md +28 -25
- package/lib/client.js +858 -78
- package/lib/index.js +104 -2
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -16,7 +16,7 @@ One plugin covers the whole wallpaper chain — import, parsing, playback, rotat
|
|
|
16
16
|
- **Video files**: pick an mp4/webm file directly as a video background
|
|
17
17
|
|
|
18
18
|
**🌊 Full-screen frosted blur suite**
|
|
19
|
-
- **Unified blur (own section)**: one slider controls the wallpaper blur degree of the whole screen (0 = sharp, higher = more blurred); sidebar
|
|
19
|
+
- **Unified blur (own section)**: one slider controls the wallpaper blur degree of the whole screen (0 = sharp, higher = more blurred); sidebar fog thickness, chat-area follow and new-chat button follow are adjustable independently; when on it takes over the sidebar frost and the frosted-blur slider (the title bar is NOT taken over - it follows its own frost slider, transparent by default)
|
|
20
20
|
- **UI blur (own section)**:
|
|
21
21
|
- **Blur dialogs**: generic center-screen windows + the chat input box (frosted backdrop; text scrolling under the input box turns hazy)
|
|
22
22
|
- **Blur settings panel**: the DSH settings panel with its own toggle + amount
|
|
@@ -51,7 +51,7 @@ One plugin covers the whole wallpaper chain — import, parsing, playback, rotat
|
|
|
51
51
|
|
|
52
52
|
- **Background source**: master toggle, hybrid large-file mode, .mpkg file, image URL, local image/GIF, local wallpaper library (Steam discovery + custom folder + folder picker), wallpaper switching & rotation
|
|
53
53
|
- **Appearance**: panel opacity, frosted blur, lens zoom, lens position
|
|
54
|
-
- **Unified blur**: full-screen blur toggle + amount, sidebar
|
|
54
|
+
- **Unified blur**: full-screen blur toggle + amount, sidebar fog thickness, chat-area follow, new-chat button follow
|
|
55
55
|
- **UI blur**: dialog / settings panel / download-confirm popup blur (each with its own toggle + amount), popover blur, mask blur, sidebar frost (Aqua scheme), Deep diving background box, title-bar frost/show (independent frost amount)
|
|
56
56
|
- **Other**: sidebar shows wallpaper, light sharpen, third-party UI radius compat (off by default), update check / one-click hot update, restore defaults
|
|
57
57
|
|
|
@@ -106,7 +106,7 @@ Settings → **Wallpaper Engine Background**:
|
|
|
106
106
|
| Image URL / local image | Plain images or GIFs |
|
|
107
107
|
| Panel opacity | 50–100% |
|
|
108
108
|
| Frosted blur | How blurred the wallpaper itself is, 0–40px (0 = sharp) |
|
|
109
|
-
| Unified blur (own section) | One slider controls the whole screen's wallpaper blur degree (0=sharp, higher=more blurred); sidebar
|
|
109
|
+
| Unified blur (own section) | One slider controls the whole screen's wallpaper blur degree (0=sharp, higher=more blurred); sidebar fog thickness, chat-area follow and new-chat follow adjustable; takes over sidebar frost and the frosted-blur slider when on (title bar keeps its own frost slider) |
|
|
110
110
|
| Dialog / settings panel / confirm popup / popover / mask blur | Each with its own toggle + amount slider; sidebar frost (Aqua scheme, auto-lifted while a dialog is open) |
|
|
111
111
|
| Lens zoom / position | Zoom (10–2000%) and pan the background; zoom out to see components at the picture edges |
|
|
112
112
|
| Sidebar / title-bar wallpaper | Toggles; off = solid opaque color for that area; title-bar frost amount adjustable independently |
|
|
@@ -117,49 +117,48 @@ Settings → **Wallpaper Engine Background**:
|
|
|
117
117
|
|
|
118
118
|
## Install
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
The plugin is published on npm (`dsh-mpkg-wallpaper`). Pick one:
|
|
121
|
+
|
|
122
|
+
### Option 1: dsh plugin add (recommended, market-recognized)
|
|
121
123
|
|
|
122
124
|
```bash
|
|
123
125
|
dsh plugin --profile web add dsh-mpkg-wallpaper
|
|
124
126
|
# restart dsh web, then hard-refresh the browser (Ctrl+F5)
|
|
125
127
|
```
|
|
126
128
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
# 1. Put the plugin folder under the profile's node_modules (or extract the GitHub zip)
|
|
131
|
-
git clone https://github.com/XHR666/dsh-mpkg-wallpaper.git $DSH_HOME/profiles/web/node_modules/dsh-mpkg-wallpaper
|
|
132
|
-
# (if your profile is not at ~/.dsh/profiles/web, use your profile directory)
|
|
129
|
+
Installs from the official npm registry and writes into the profile's `package.json`
|
|
130
|
+
dependencies — the plugin market recognizes it as installed, shows the download count,
|
|
131
|
+
and can manage updates.
|
|
133
132
|
|
|
134
|
-
|
|
135
|
-
# - insert:
|
|
136
|
-
# - id: dsh-mpkg-wallpaper
|
|
137
|
-
# name: dsh-mpkg-wallpaper
|
|
133
|
+
### Option 2: pnpm manual install (pnpm-workspace profile)
|
|
138
134
|
|
|
139
|
-
|
|
135
|
+
```bash
|
|
136
|
+
# run in the profile directory (replace <profile> with your profile name, e.g. web)
|
|
137
|
+
pnpm --dir $DSH_HOME/profiles/<profile> add dsh-mpkg-wallpaper
|
|
138
|
+
# restart dsh web, then Ctrl+F5 in the browser
|
|
140
139
|
```
|
|
141
140
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
> linking automatically — no manual lockfile edits. Prefer Option 1 (`dsh plugin add`) if
|
|
145
|
-
> you want a registry install.
|
|
141
|
+
Also writes into the dependency table, so the market recognizes it. No pnpm available?
|
|
142
|
+
Use Option 1 (`dsh plugin add` wraps pnpm).
|
|
146
143
|
|
|
147
|
-
### Option 3: Git clone
|
|
144
|
+
### Option 3: Git clone (developers / offline)
|
|
148
145
|
|
|
149
146
|
```bash
|
|
150
147
|
git clone https://github.com/XHR666/dsh-mpkg-wallpaper.git $DSH_HOME/profiles/node_modules/dsh-mpkg-wallpaper
|
|
148
|
+
# then register in the profile's cordis.patch.yml:
|
|
149
|
+
# - insert:
|
|
150
|
+
# - id: dsh-mpkg-wallpaper
|
|
151
|
+
# name: dsh-mpkg-wallpaper
|
|
152
|
+
# restart to take effect
|
|
151
153
|
```
|
|
152
154
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
>
|
|
156
|
-
> The market's installed detection reads only the profile's `package.json` dependencies.
|
|
157
|
-
> Manual installs (Option 2/3: clone into `node_modules` + `cordis.patch.yml` insert) are
|
|
158
|
-
> not recorded there, so the market reports "not installed" — this only affects the market
|
|
159
|
-
> display, not the wallpaper feature. To be recognized as installed (and market-managed for
|
|
160
|
-
> updates), install via **Option 1** `dsh plugin add` and remove the old manual copy (the
|
|
155
|
+
> Note: Option 3 is a manual placement and is **not** recorded in the dependency table —
|
|
156
|
+
> the market won't report it as installed (market display only; the wallpaper feature is
|
|
157
|
+
> unaffected). For market recognition use Option 1/2, and remove the old manual copy (the
|
|
161
158
|
> `cordis.patch.yml` insert line + plugin directory) to avoid double-loading the plugin.
|
|
162
159
|
|
|
160
|
+
Uninstall: `dsh plugin --profile web remove dsh-mpkg-wallpaper`.
|
|
161
|
+
|
|
163
162
|
|
|
164
163
|
## Official Docs
|
|
165
164
|
|
|
@@ -198,6 +197,11 @@ dsh-mpkg-wallpaper/
|
|
|
198
197
|
```
|
|
199
198
|
|
|
200
199
|
|
|
200
|
+
## Acknowledgements
|
|
201
|
+
|
|
202
|
+
- [Bil812](https://github.com/Bil812) — proposed wallpaper tint, adaptive text color and full-screen unified-mask appearance ideas in [PR #2](https://github.com/XHR666/dsh-mpkg-wallpaper/pull/2) and maintains a long-running fork. The wallpaper tint, adaptive ink, blue-cleanup and color-picker ideas were absorbed as the plugin's **Aqua experiment** mode (toggles, off by default).
|
|
203
|
+
- [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) community — listing & promotion.
|
|
204
|
+
|
|
201
205
|
## Notes for Distribution
|
|
202
206
|
|
|
203
207
|
### Portability
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
- **视频文件**:直接选择 mp4/webm 文件作为视频背景
|
|
17
17
|
|
|
18
18
|
**🌊 整屏虚化(磨砂)体系**
|
|
19
|
-
- **统一虚化(独立分组)**:一个条控制整屏壁纸模糊度(0 = 壁纸清晰,拉高 =
|
|
19
|
+
- **统一虚化(独立分组)**:一个条控制整屏壁纸模糊度(0 = 壁纸清晰,拉高 = 越来越模糊);侧边栏白雾厚度、聊天区跟随、新会话按钮跟随独立可调;开启时接管侧边栏磨砂与磨砂模糊条(标题栏不接管,按自己的磨砂条,默认透明)
|
|
20
20
|
- **界面虚化(独立分组)**:
|
|
21
21
|
- **虚化对话框**:通用居中窗口 + 聊天输入框(背景磨砂,滚动经过输入框的文字变朦胧)
|
|
22
22
|
- **虚化设置面板**:DSH 设置面板独立开关 + 程度
|
|
@@ -27,6 +27,10 @@
|
|
|
27
27
|
**🎬 镜头与外观**
|
|
28
28
|
- 镜头缩放(10–2000%)与平移、侧边栏/标题栏透出壁纸开关、轻度锐化、Deep diving 背景框
|
|
29
29
|
|
|
30
|
+
**🧪 Aqua 实验模式(默认全关,不影响原功能)**
|
|
31
|
+
- 可开关的社区方案实验:**统一雾**(全屏遮罩统一雾色,强度独立滑条)、**面板匹配壁纸色**(自动取色 + 强度滑条 + 自定义取色盘)、**自适应文字色 + 蓝色清理**(品牌色统一,带自定义取色盘)、**深底文字可读增强**、**任务列表磨砂**
|
|
32
|
+
- 设置页顶部 Tab 分类切换(来源/外观/统一虚化/界面虚化/透出壁纸/Aqua/其他)
|
|
33
|
+
|
|
30
34
|
**🚀 大文件混合模式(hybrid)**
|
|
31
35
|
- 开启后 mpkg **流式上传到 DSH 宿主** → 磁盘存储 → HTTP Range 流式播放,**支持 >600MB 的大文件**,内存占用极低
|
|
32
36
|
- 关闭则回到纯浏览器模式(600MB 上限)
|
|
@@ -117,47 +121,41 @@
|
|
|
117
121
|
|
|
118
122
|
## 安装
|
|
119
123
|
|
|
120
|
-
|
|
124
|
+
插件已发布到 npm(`dsh-mpkg-wallpaper`)。任选一种:
|
|
125
|
+
|
|
126
|
+
### 方式一:dsh plugin add(推荐,市场可识别)
|
|
121
127
|
|
|
122
128
|
```bash
|
|
123
129
|
dsh plugin --profile web add dsh-mpkg-wallpaper
|
|
124
130
|
# 重启 dsh web 后浏览器 Ctrl+F5 生效
|
|
125
131
|
```
|
|
126
132
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
```bash
|
|
130
|
-
# 1. 把插件目录放到 profile 的 node_modules 下
|
|
131
|
-
# (或用 GitHub 下载的 zip 解压)
|
|
132
|
-
git clone https://github.com/XHR666/dsh-mpkg-wallpaper.git $DSH_HOME/profiles/web/node_modules/dsh-mpkg-wallpaper
|
|
133
|
-
# (若 profile 不在 ~/.dsh/profiles/web,把路径换成你的 profile 目录)
|
|
133
|
+
从 npm 官方仓库安装,会写入 profile 的 `package.json` 依赖表——插件市场自动识别为「已安装」,并可显示下载量、用市场管理更新。
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
# - insert:
|
|
137
|
-
# - id: dsh-mpkg-wallpaper
|
|
138
|
-
# name: dsh-mpkg-wallpaper
|
|
135
|
+
### 方式二:pnpm 手动安装(profile 是 pnpm workspace 时)
|
|
139
136
|
|
|
140
|
-
|
|
137
|
+
```bash
|
|
138
|
+
# 在 profile 目录下执行(将 <profile> 换成你的 profile 名,如 web)
|
|
139
|
+
pnpm --dir $DSH_HOME/profiles/<profile> add dsh-mpkg-wallpaper
|
|
140
|
+
# 重启 dsh web,浏览器 Ctrl+F5 生效
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
|
|
144
|
-
> 插件目录放在 profile 的 `node_modules/` 下即可被 pnpm 的 hoisted 链接识别,
|
|
145
|
-
> 无需手动改 lockfile;若你更习惯 registry 安装,用方式一 `dsh plugin add`。
|
|
143
|
+
同样写入依赖表,市场可识别。若你的环境没有 pnpm,用方式一(`dsh plugin add` 内部就是 pnpm)。
|
|
146
144
|
|
|
147
|
-
### 方式三:GitHub
|
|
145
|
+
### 方式三:GitHub 克隆(开发者 / 离线场景)
|
|
148
146
|
|
|
149
147
|
```bash
|
|
150
148
|
git clone https://github.com/XHR666/dsh-mpkg-wallpaper.git $DSH_HOME/profiles/node_modules/dsh-mpkg-wallpaper
|
|
149
|
+
# 然后在 profile 的 cordis.patch.yml 注册:
|
|
150
|
+
# - insert:
|
|
151
|
+
# - id: dsh-mpkg-wallpaper
|
|
152
|
+
# name: dsh-mpkg-wallpaper
|
|
153
|
+
# 重启后生效
|
|
151
154
|
```
|
|
152
155
|
|
|
153
|
-
|
|
156
|
+
> 注:方式三是手动放置,**不会**写入依赖表——插件市场不识别为「已安装」(仅影响市场显示,不影响功能)。要市场识别请用方式一/方式二,并移除旧的手动副本(`cordis.patch.yml` 的 insert 行 + 插件目录),避免同一插件被加载两次。
|
|
154
157
|
|
|
155
|
-
|
|
156
|
-
> 插件市场的已安装检测只读 profile 的 `package.json` 依赖表。方式二/方式三(手动 clone
|
|
157
|
-
> 到 `node_modules` + `cordis.patch.yml` insert)不会被依赖表记录,所以市场判为「未安装」
|
|
158
|
-
> ——不影响壁纸功能,只是市场显示如此。想被市场识别为已安装(并可用市场管理更新),
|
|
159
|
-
> 请用**方式一** `dsh plugin add` 安装,并把旧的手动副本(`cordis.patch.yml` 的 insert 行 +
|
|
160
|
-
> 插件目录)移除,避免同一插件被加载两次。
|
|
158
|
+
卸载:`dsh plugin --profile web remove dsh-mpkg-wallpaper`。
|
|
161
159
|
|
|
162
160
|
|
|
163
161
|
## 官方文档
|
|
@@ -197,6 +195,11 @@ dsh-mpkg-wallpaper/
|
|
|
197
195
|
```
|
|
198
196
|
|
|
199
197
|
|
|
198
|
+
## 致谢
|
|
199
|
+
|
|
200
|
+
- [Bil812](https://github.com/Bil812) — 在 [PR #2](https://github.com/XHR666/dsh-mpkg-wallpaper/pull/2) 中提出壁纸取色、自适应文字色、全屏统一遮罩等外观方案,并长期维护 fork。其中**壁纸取色、自适应文字色、蓝色清理、取色盘**等思路已吸收为本插件的「Aqua 实验」模式(可开关,默认关)。
|
|
201
|
+
- [awesome-dsh-plugin](https://github.com/awesome-dsh-plugin/awesome-dsh-plugin) 社区 — 收录与推广。
|
|
202
|
+
|
|
200
203
|
## GitHub 发布说明
|
|
201
204
|
|
|
202
205
|
### 可移植性(在他人的设备上也能用)
|