dsh-we-wallpaper 1.1.8 → 1.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 +11 -5
- package/lib/client.js +16 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -128,9 +128,17 @@
|
|
|
128
128
|
1. 已经装好 DSH(桌面端或命令行均可)
|
|
129
129
|
2. 想用本机壁纸的话,先装好 Wallpaper Engine 并订阅壁纸(只在 Windows 上能装;其它系统可以自己上传图片/视频,或把壁纸文件放到本机后用 `DSH_WE_STEAM_ROOT` 指向壁纸库)
|
|
130
130
|
|
|
131
|
-
### 方式一:从
|
|
131
|
+
### 方式一:从 npm 安装(推荐)
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
```bash
|
|
134
|
+
dsh plugin add dsh-we-wallpaper
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
npm 包里已经包含构建好的 `lib/client.js`,不需要自己编译;桌面端也可以在插件管理里搜 `dsh-we-wallpaper` 安装。
|
|
138
|
+
|
|
139
|
+
### 方式二:从 Releases 安装(离线 / 指定版本)
|
|
140
|
+
|
|
141
|
+
每个版本都会打包成 `.tgz` 放到 [Releases](https://github.com/maoshiba6863/dsh-we-wallpaper/releases),里面同样包含构建好的 `lib/client.js`。当前最新版本:**v1.1.8**。
|
|
134
142
|
|
|
135
143
|
```bash
|
|
136
144
|
dsh plugin add https://github.com/maoshiba6863/dsh-we-wallpaper/releases/download/v1.1.8/dsh-we-wallpaper-1.1.8.tgz
|
|
@@ -138,9 +146,7 @@ dsh plugin add https://github.com/maoshiba6863/dsh-we-wallpaper/releases/downloa
|
|
|
138
146
|
|
|
139
147
|
桌面端也可以在插件管理里选「添加插件」,粘贴上面这个地址。
|
|
140
148
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
### 方式二:用本仓库源码
|
|
149
|
+
### 方式三:用本仓库源码
|
|
144
150
|
|
|
145
151
|
直接克隆仓库的人要先构建一次(`lib/client.js` 是构建产物,不在仓库里):
|
|
146
152
|
|
package/lib/client.js
CHANGED
|
@@ -445,13 +445,25 @@ window.__ModuleLoader__.load({
|
|
|
445
445
|
push the whole gray ramp darker while a wallpaper is active. Primary text
|
|
446
446
|
is already near-black; we still pin it to pure black for max legibility.
|
|
447
447
|
(Dark mode is untouched: its white-on-dark text already reads fine.) */
|
|
448
|
+
/* 浅色主题的墨色下限:不只有壁纸时才需要,玻璃面本身就比宿主原生白底更亮/更花。
|
|
449
|
+
整条灰阶压深一档,同时把插件的 --we-ink-2/3 接到同一套值上。 */
|
|
450
|
+
body[data-we-glass-page]:not([data-ds-dark-theme]),
|
|
448
451
|
body[data-we-wallpaper]:not([data-ds-dark-theme]) {
|
|
449
452
|
--dsw-alias-label-primary: rgb(0, 0, 0);
|
|
450
453
|
--dsw-alias-label-primary-dimmed: rgb(10, 10, 12);
|
|
451
|
-
--dsw-alias-label-secondary: rgb(
|
|
452
|
-
--dsw-alias-label-tertiary: rgb(
|
|
453
|
-
--dsw-alias-label-caption: rgb(
|
|
454
|
-
--dsw-alias-label-dimmed: rgb(
|
|
454
|
+
--dsw-alias-label-secondary: rgb(31, 35, 40);
|
|
455
|
+
--dsw-alias-label-tertiary: rgb(58, 63, 71);
|
|
456
|
+
--dsw-alias-label-caption: rgb(74, 79, 87);
|
|
457
|
+
--dsw-alias-label-dimmed: rgb(42, 46, 52);
|
|
458
|
+
--we-ink-2: rgb(31, 35, 40);
|
|
459
|
+
--we-ink-3: rgb(58, 63, 71);
|
|
460
|
+
}
|
|
461
|
+
/* 设置窗是玻璃面,浅色主题下再单独钉一次,避免某些宿主子面自带的灰阶把它冲淡。 */
|
|
462
|
+
body:not([data-ds-dark-theme]) [role="dialog"]:has([data-slot="settings.section"]) {
|
|
463
|
+
--dsw-alias-label-primary: rgb(0, 0, 0);
|
|
464
|
+
--dsw-alias-label-secondary: rgb(31, 35, 40);
|
|
465
|
+
--dsw-alias-label-tertiary: rgb(58, 63, 71);
|
|
466
|
+
--dsw-alias-label-caption: rgb(74, 79, 87);
|
|
455
467
|
}
|
|
456
468
|
|
|
457
469
|
/* ── 全局 UI 配色:把宿主界面里那几处「蓝色元素」接进调色板 ────────────────────
|