wallpaper-engine-dsh 2.1.2 → 2.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.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | [中文](README.zh.md)
4
4
 
5
- A DSH bundle that turns your local **Wallpaper Engine** library into the live background of the DSH web GUI (`dsh web`). Video wallpapers play behind the chat, web wallpapers render in place, and everything in between — crossfade transitions, liquid-glass panels, a legibility veil that adapts to any wallpaper, manual framing, rotation lists, search, and a bilingual UI — is controlled from a single settings row.
5
+ A DSH bundle that turns your local **Wallpaper Engine** library into the live background of the DSH web GUI (`dsh web`). Video wallpapers play behind the chat, web wallpapers render in place, and everything in between — crossfade transitions, liquid-glass panels, a legibility veil that adapts to any wallpaper, manual framing, rotation lists, search, and a bilingual UI — is controlled from its own dedicated settings section.
6
6
 
7
7
  ## Features
8
8
 
@@ -35,7 +35,7 @@ git clone https://github.com/Weilv-D/wallpaper-engine-dsh.git
35
35
  dsh plugin --profile web add link:<absolute path to the cloned folder>
36
36
  ```
37
37
 
38
- Restart `dsh web`, then open **Settings → General → Wallpaper Engine**.
38
+ Restart `dsh web`, then open **Settings → Wallpaper Engine**.
39
39
 
40
40
  ## Usage
41
41
 
package/README.zh.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | [中文](README.zh.md)
4
4
 
5
- 一个 DSH bundle:把本机 **Wallpaper Engine** 壁纸库变成 DSH web GUI(`dsh web`)的动态背景。视频壁纸在聊天界面背后播放,网页壁纸直接渲染。交叉淡入、液态玻璃面板、随壁纸自适应的可读性遮罩、手动取景、轮播列表、搜索与中英双语界面,全部集中在一个设置行里。
5
+ 一个 DSH bundle:把本机 **Wallpaper Engine** 壁纸库变成 DSH web GUI(`dsh web`)的动态背景。视频壁纸在聊天界面背后播放,网页壁纸直接渲染。交叉淡入、液态玻璃面板、随壁纸自适应的可读性遮罩、手动取景、轮播列表、搜索与中英双语界面,集中在一个专门的设置分区里。
6
6
 
7
7
  ## 功能
8
8
 
@@ -35,7 +35,7 @@ git clone https://github.com/Weilv-D/wallpaper-engine-dsh.git
35
35
  dsh plugin --profile web add link:<克隆文件夹的绝对路径>
36
36
  ```
37
37
 
38
- 重启 `dsh web`,打开 **设置 → 通用 → 壁纸背景 (Wallpaper Engine)**。
38
+ 重启 `dsh web`,打开 **设置 → 壁纸背景 (Wallpaper Engine)**。
39
39
 
40
40
  ## 使用
41
41
 
package/lib/client.js CHANGED
@@ -2108,7 +2108,7 @@ window.__ModuleLoader__.load({
2108
2108
  /* padding-top lifts the first row off the settings-section divider so the
2109
2109
  search/language row breathes; gap keeps every row evenly spaced.
2110
2110
  Type scale follows the shell: 14px body → 13px controls → 12px hints. */
2111
- .webg-picker { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
2111
+ .webg-picker { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; max-width: 900px; }
2112
2112
  .webg-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
2113
2113
  .webg-hint { font-size: 12px; opacity: 0.7; color: var(--dsw-alias-label-tertiary, inherit); }
2114
2114
  .webg-error {
@@ -2330,7 +2330,7 @@ window.__ModuleLoader__.load({
2330
2330
 
2331
2331
  // ── Plugin exports ──────────────────────────────────────────────────────────
2332
2332
  // The client runner (dsh-cordis-client-runner) rejects ctx.get() of any
2333
- // service this plugin does not declare. slots registers the settings row,
2333
+ // service this plugin does not declare. slots registers the settings section,
2334
2334
  // locale drives the bilingual UI, theme drives the veil/scheme reactions.
2335
2335
  const inject = ["slots", "locale", "theme"];
2336
2336
 
@@ -2535,11 +2535,15 @@ window.__ModuleLoader__.load({
2535
2535
  });
2536
2536
  }
2537
2537
 
2538
- // 4. Settings row (this slot is NOT the overlay; safe to register into).
2538
+ // 4. Own settings section — NOT a row inside General. The settings dialog
2539
+ // enumerates every registered settings.section slot for its nav
2540
+ // (settings-general and settings-plugins register theirs the same way),
2541
+ // so the picker renders as a full page with its own sidebar entry,
2542
+ // ordered after the built-in sections (general 0, plugins 15).
2539
2543
  if (ctx.slots) {
2540
- ctx.slots.inject("settings.general.item", () =>
2544
+ ctx.slots.inject("settings.section", () =>
2541
2545
  ctx.slots.register(
2542
- { name: "settings.general.item", id: "we-background", order: 500, label: () => S().settingsLabel },
2546
+ { name: "settings.section", id: "we-background", order: 20, label: () => S().settingsLabel },
2543
2547
  () => React.createElement(WallpaperPicker),
2544
2548
  ),
2545
2549
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallpaper-engine-dsh",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Wallpaper Engine library as the DSH web GUI background — video/web/still wallpapers, rotation lists, search, resource monitor, bilingual UI.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",