dsh-arknights-theme 1.0.0 → 1.0.1
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 +34 -9
- package/assets/preview-data.json +283 -283
- package/assets/skin.css +7 -3
- package/lib/client.js +296 -287
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ a coat of theme paint.
|
|
|
16
16
|
**预构建包(推荐) / Prebuilt tarball (recommended)**
|
|
17
17
|
|
|
18
18
|
```sh
|
|
19
|
-
dsh plugin add https://github.com/Theflowyears/dsh-arknights-theme/releases/download/v1.0.
|
|
19
|
+
dsh plugin add https://github.com/Theflowyears/dsh-arknights-theme/releases/download/v1.0.1/dsh-arknights-theme-1.0.1.tgz
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**从仓库安装 / From the repository**
|
|
@@ -95,7 +95,7 @@ This is the manual: what the package is made of, what is measured per wallpaper,
|
|
|
95
95
|
glyph is used, how to rebuild it, and where its limits are. Installation and the highlight reel
|
|
96
96
|
live on the repository front page.
|
|
97
97
|
|
|
98
|
-
- 版本 / Version: **1.0.
|
|
98
|
+
- 版本 / Version: **1.0.1**
|
|
99
99
|
- 适用 / Requires: DSH Web,`@deepseek-ai/cordis` 4.x
|
|
100
100
|
- 许可 / Licence: 代码 MIT,美术素材不在 MIT 范围内(见 [版权与署名](#版权与署名--rights-and-credit))
|
|
101
101
|
|
|
@@ -160,20 +160,45 @@ Twelve, each measured once at import time, with the result recorded in `assets/w
|
|
|
160
160
|
This is the heart of the skin, and the difference between it and "set a background image".
|
|
161
161
|
|
|
162
162
|
1. **文字色来自壁纸,而不是写死的黑或白。**
|
|
163
|
-
取画面的主色相,用 OKLCH
|
|
163
|
+
取画面的主色相,用 OKLCH 求解亮度,保证正文在承载它的每一层面板上仍达 **WCAG AA**(≥ 4.5:1)。
|
|
164
|
+
亮度只允许为了这一点颜色偏离配色自带的文字色 **0.055**(OKLCH 亮度)——否则就会像上一版那样,
|
|
165
|
+
为了 0.025 的色度把文字压到灰扑扑的 L 0.75,看着像褪色而不是文字。
|
|
164
166
|
**Ink is derived from the picture**, not hard-coded: the hue comes from the image, the
|
|
165
|
-
lightness is solved in OKLCH so body text keeps **WCAG AA** (≥ 4.5:1) on
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
lightness is solved in OKLCH so body text keeps **WCAG AA** (≥ 4.5:1) on every panel it lands on.
|
|
168
|
+
The tint may pull the text's lightness **0.055** (OKLCH) away from the palette's own label
|
|
169
|
+
colour and no further — the previous release spent 0.24 of lightness to buy 0.025 of chroma and
|
|
170
|
+
shipped grey-looking text.
|
|
171
|
+
2. **玻璃的浓度也来自画面**:亮壁纸得到更厚的霜,暗壁纸得到更薄的板,沉浸度滑杆在这个区间内
|
|
172
|
+
插值,两端分别是"完全沉浸"和"最好读";读数解算只作为下限,保证不会薄到读不清。
|
|
173
|
+
**Glass opacity is solved from the picture's luminance** — a bright wallpaper gets a heavier
|
|
174
|
+
frost than a dark one — and the immersion dial interpolates within that band, between "fully
|
|
175
|
+
immersive" and "most readable"; the readability solve is a lower bound, not the whole answer.
|
|
176
|
+
3. **承载文字的每一层面板,最薄处也不低于 0.45 不透明度**(`TEXT_SURFACE_MIN_ALPHA`,实测最低
|
|
177
|
+
0.500)。画布 `bg-base` 是唯一允许更薄的一层,它的薄端按对比度解算:**暗色配色满沉浸仍
|
|
178
|
+
≥ 4.5:1**(实测最差 4.84:1);**浅色配色的白纱只发解算值的一半**——半张白纸盖上去就不是壁纸了,
|
|
179
|
+
所以浅色配色配暗壁纸在极高沉浸度落到 3.5–3.9:1,守住 3:1 的可读底线但低于 AA。选择器显示的是
|
|
180
|
+
实测值,不是承诺值。
|
|
181
|
+
**Every panel that carries text stays at or above 0.45 alpha** (`TEXT_SURFACE_MIN_ALPHA`;
|
|
182
|
+
measured floor 0.500). The `bg-base` canvas is the one layer allowed to go thinner, and its thin
|
|
183
|
+
end is solved for contrast: the **dark palette still clears 4.5:1 at full immersion** (measured
|
|
184
|
+
worst 4.84:1), while the **light palette ships half of its solved white veil** — half a white
|
|
185
|
+
sheet over a dark wallpaper is no longer a wallpaper — which puts the light palette on dark
|
|
186
|
+
wallpapers at 3.5–3.9:1 at the far end of the dial: above the 3:1 legibility floor, below AA. The
|
|
187
|
+
picker shows the measured figure, not a promise.
|
|
171
188
|
4. 选择器实时显示当前壁纸在当前沉浸度下的**实测对比度**。
|
|
172
189
|
The picker shows the *measured* contrast for the current picture at the current immersion.
|
|
173
190
|
|
|
174
191
|
浅色与深色两套配色各自解算,互不借用。
|
|
175
192
|
The light and dark palettes are solved independently; neither borrows the other's numbers.
|
|
176
193
|
|
|
194
|
+
以上五条由 `tools/audit-core.mjs` 逐条对着**构建产物里的数字**核对,而不是对着"本该生成这些数字的
|
|
195
|
+
代码"核对:读的是打进 `lib/client.js` 的那份解算结果,任何一条不成立就以非零码退出。在仓库根目录
|
|
196
|
+
执行 `node tools/audit-core.mjs` 即可自己跑一遍。
|
|
197
|
+
All five are checked by `tools/audit-core.mjs` against the numbers *in the build output* — the
|
|
198
|
+
solved values baked into `lib/client.js` — rather than against the code that was supposed to
|
|
199
|
+
produce them; a claim that stops being true fails the script. Run it yourself from the repository
|
|
200
|
+
root with `node tools/audit-core.mjs`.
|
|
201
|
+
|
|
177
202
|
---
|
|
178
203
|
|
|
179
204
|
## 图标与签名 / Iconography and signatures
|