dsh-theme-engine 26.12.5-211000 → 26.12.5-211500

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 CHANGED
@@ -19,7 +19,7 @@
19
19
  [![dsh.so risk](https://cdn.dsh.so/badge/dsh-theme-engine.svg)](https://www.dsh.so/artifact/dsh-theme-engine/?ref=badge)
20
20
  [![dsh.so install · dsh 0.2.3-alpha.2](https://cdn.dsh.so/badge/install/dsh-theme-engine@0.2.3-alpha.2.svg)](https://www.dsh.so/artifact/dsh-theme-engine/?ref=badge-install)
21
21
 
22
- Version **v.26.12.05.211000** · Apache-2.0 · DSH Desktop on Windows only
22
+ Version **v.26.12.05.211500** · Apache-2.0 · DSH Desktop on Windows only
23
23
 
24
24
  </div>
25
25
 
package/README.md CHANGED
@@ -19,7 +19,7 @@
19
19
  [![dsh.so risk](https://cdn.dsh.so/badge/dsh-theme-engine.svg)](https://www.dsh.so/artifact/dsh-theme-engine/?ref=badge)
20
20
  [![dsh.so install · dsh 0.2.3-alpha.2](https://cdn.dsh.so/badge/install/dsh-theme-engine@0.2.3-alpha.2.svg)](https://www.dsh.so/artifact/dsh-theme-engine/?ref=badge-install)
21
21
 
22
- 当前版本 **v.26.12.05.211000** · Apache-2.0 · 只跑在 Windows 上的 DSH 桌面版
22
+ 当前版本 **v.26.12.05.211500** · Apache-2.0 · 只跑在 Windows 上的 DSH 桌面版
23
23
 
24
24
  </div>
25
25
 
package/client/client.js CHANGED
@@ -9,7 +9,7 @@
9
9
  const LEGACY_STORAGE_KEYS = ["dsh-liquid-glass.settings.v2"];
10
10
  const API = "/liquid-glass";
11
11
  /** Bumped whenever the mapping or the settings contract changes; visible via /liquid-glass/state. */
12
- const CLIENT_BUILD = "v.26.12.05.210134";
12
+ const CLIENT_BUILD = "v.26.12.05.210901";
13
13
  const LOAD_TAG = String((globalThis.__lgLoadCount = (globalThis.__lgLoadCount || 0) + 1));
14
14
  /**
15
15
  * Appearance values are archived per colour mode. These ids and keys are
@@ -6216,6 +6216,17 @@ fn fs(in: VSOut) -> @location(0) vec4<f32> {
6216
6216
  if (best > bestRatio) { bestRatio = best; ink = name; veil = bestVeil; density = dens; }
6217
6217
  if (best >= 4.5) break;
6218
6218
  }
6219
+ // 4.5:1 alone only got the pane to a mid grey on a dark picture, which reads
6220
+ // as fog rather than as a light surface: dark text on #93 grey looks broken
6221
+ // even though the ratio passes. A light theme has to *look* light and a dark
6222
+ // theme has to look dark, so lift the plate density until the composite lands
6223
+ // on the intended side of the scale, whatever is behind the window.
6224
+ if (Math.abs(glassGrey - sampleGrey) > 1) {
6225
+ const targetGrey = ink === "dark" ? 218 : 70;
6226
+ const floor = (targetGrey - sampleGrey) / (glassGrey - sampleGrey);
6227
+ const wanted = Math.max(0, Math.min(0.88, floor));
6228
+ if (wanted > density) density = wanted;
6229
+ }
6219
6230
  if (ink === "dark" || ink === "light") document.documentElement.dataset.lgInk = ink;
6220
6231
  const next = glassTokens(display.tint, veil, ink, { force: appliedMode, base: display.base, density });
6221
6232
  const signature = JSON.stringify(next);
@@ -798,6 +798,17 @@
798
798
  if (best > bestRatio) { bestRatio = best; ink = name; veil = bestVeil; density = dens; }
799
799
  if (best >= 4.5) break;
800
800
  }
801
+ // 4.5:1 alone only got the pane to a mid grey on a dark picture, which reads
802
+ // as fog rather than as a light surface: dark text on #93 grey looks broken
803
+ // even though the ratio passes. A light theme has to *look* light and a dark
804
+ // theme has to look dark, so lift the plate density until the composite lands
805
+ // on the intended side of the scale, whatever is behind the window.
806
+ if (Math.abs(glassGrey - sampleGrey) > 1) {
807
+ const targetGrey = ink === "dark" ? 218 : 70;
808
+ const floor = (targetGrey - sampleGrey) / (glassGrey - sampleGrey);
809
+ const wanted = Math.max(0, Math.min(0.88, floor));
810
+ if (wanted > density) density = wanted;
811
+ }
801
812
  if (ink === "dark" || ink === "light") document.documentElement.dataset.lgInk = ink;
802
813
  const next = glassTokens(display.tint, veil, ink, { force: appliedMode, base: display.base, density });
803
814
  const signature = JSON.stringify(next);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-theme-engine",
3
- "version": "26.12.5-211000",
3
+ "version": "26.12.5-211500",
4
4
  "description": "Live wallpaper + liquid-glass background for DeepSeek Harness: native desktop capture, 0.8-grade water shader, contrast-driven adaptive ink, frost-density and tint controls, hardware-adaptive profiles, occluded-window compositing, WebGL/WebGPU backends, five-layer performance guard.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {