dsh-client-ui-skin-tianlight 2.2.1 → 2.2.2

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
@@ -6,6 +6,14 @@
6
6
  >
7
7
  > npm 包名 `dsh-client-ui-skin-tianlight`(v2.0.2 起;旧链接安装包名 `@dsh-external/dsh-client-ui-skin-tianlight`)· 布线行 `ui-skin-tianlight` · body 属性 `data-dsh-tianlight`
8
8
 
9
+ ## v2.2.2 · 清透玻璃(不是白玻璃)
10
+
11
+ v2.2.1 还是保留了 `0.12` 的白色填充和面板 55% 混合,亮色天空下仍像白雾。这一版把玻璃改成**透镜**:亮色填充降到 `0.05`(实时 `0.04`),面板 `0.68` 起(实时 0.56),白色高光只在边缘(soft `0.08` / real `0.12` / frosted `0.16`,实时 `0.03`),并给侧栏/输入区/设置面板加上窄角度高光 + 右下冷色折射 + 1px 亮边。实时模式还加了 SVG `feDisplacementMap` 透镜:背后的壁纸会轻微弯曲,而不只是被模糊;不支持时自动退回普通 blur。暗色主题单独使用**烟熏玻璃**配方(不是浅色填充),修掉 Windows 暗色 + 亮壁纸下反而更白的问题。
12
+
13
+ 另外修了一个历史状态:`glassLive=1 + glassDepth=off` 时实时按钮看似开着但实际不渲染;现在会自动提升为 `soft` 并持久化。
14
+
15
+ 只改浏览器半,`Ctrl+F5` 即可;详见 [RELEASE-NOTES-v2.2.2.md](RELEASE-NOTES-v2.2.2.md)。
16
+
9
17
  ## v2.2.1 · 液态玻璃二次去白
10
18
 
11
19
  v2.2.0 的实时渲染在亮色天空壁纸下仍偏白:它继承了深度档的白色填充与白色 specular,`backdrop-filter` 又把明亮壁纸提亮,叠起来还是一层白雾。这一版把实时模式改成“颜色主要来自壁纸”:
@@ -725,11 +733,11 @@ node tools/hook-scan.mjs --dsh <新版本@deepseek-ai 目录> # 升级 Desktop
725
733
 
726
734
  | 变量 | 默认(亮 / 暗) | 作用 |
727
735
  |---|---|---|
728
- | `--tl-panel-fill` | `0.82` 起 / `0.96` 起(随玻璃倍率) | 模态面板填充,越大越实;v2.2.0 亮色公式为 `max(0.82, 0.76×玻璃倍率)`,实时渲染下进一步降到 55% 混合 |
729
- | `--tl-glass-fill` | `0.20` / `0.38` | 玻璃表面填充(v2.2.0 起冷色调、低 alpha;实时渲染下为 0.12) |
736
+ | `--tl-panel-fill` | `0.68` 起 / `0.96` 起(随玻璃倍率) | 模态面板填充,越大越实;v2.2.2 亮色公式为 `max(0.68, 0.62×玻璃倍率)`,实时渲染下再降到 56% |
737
+ | `--tl-glass-fill` | `0.05` / `0.38` | 玻璃表面填充(v2.2.2 起接近透明;实时渲染下为 0.04) |
730
738
  | `--tl-glass-blur` | `12px` / `14px` | 玻璃模糊半径(v1.6.0 起全界面分组按档位使用;输入控件不加 blur) |
731
739
  | `--tl-shell` | `0` | 全局表面透明度,`0` = 100% 壁纸 |
732
- | `--tl-overlay` | `0.74` / `0.84` | 菜单/弹层遮罩(实时渲染下 0.64) |
740
+ | `--tl-overlay` | `0.54` / `0.84` | 菜单/弹层遮罩(实时渲染下 0.50) |
733
741
  | `--tl-accent` | `#2b74c9` | 强调色(面板内由壁纸取色覆盖) |
734
742
  | `--tl-content-width` / `--tl-para-gap` / `--tl-code-size` | 排版面板决定 | v0.5.0 排版增强写入的正文宽度/段距/代码字号变量 |
735
743
 
package/build-info.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "product": "dsh-client-ui-skin-tianlight",
4
- "version": "2.2.1",
5
- "commit": "6e03584f62e266db89ffd79822961d63881dabe4",
6
- "builtAt": "2026-11-15T22:36:02+08:00",
4
+ "version": "2.2.2",
5
+ "commit": "0dfe6d6dd951030ca62d1c3889907be5e8fdfca9",
6
+ "builtAt": "2026-11-15T23:07:42+08:00",
7
7
  "source": "pack"
8
8
  }
package/lib/client.js CHANGED
@@ -34,7 +34,7 @@ window.__ModuleLoader__.load({
34
34
  * must equal `package.json` `version`; tools/test.mjs fails the chain when the
35
35
  * two drift (the 2.1.0-2.1.3 builds printed a stale "2.0.4").
36
36
  */
37
- const TL_BUILD_VERSION = "2.2.1";
37
+ const TL_BUILD_VERSION = "2.2.2";
38
38
 
39
39
  /**
40
40
  * Host identity last reported by `_engines`: `build` is the host's
@@ -3665,11 +3665,14 @@ body[data-dsh-tianlight] {
3665
3665
  + up to 0.52 white specular on the same pixel, which read as a grey/white veil
3666
3666
  over the wallpaper ("整体泛白") instead of glass. The wallpapers stay the source
3667
3667
  of colour; the glass only adds a thin, cool specular edge. */
3668
- --tl-overlay: rgba(240, 247, 255, 0.74);
3668
+ --tl-overlay: rgba(235, 245, 255, 0.54);
3669
3669
  /* Composer-only glass. Everything else stays fully transparent; this card is
3670
3670
  the one surface that earns a frosted backdrop. */
3671
- --tl-glass-fill: rgba(233, 243, 254, calc(0.20 * var(--tl-glass-m, 1)));
3672
- --tl-glass-line: rgba(255, 255, 255, 0.48);
3671
+ /* v2.2.2 "clear glass": the panel is a lens, not a white sheet. The fill is a
3672
+ near-transparent cool tint; the visible body comes from the backdrop filter and
3673
+ the 1px light/dark rim, so bright wallpapers stay coloured instead of milky. */
3674
+ --tl-glass-fill: rgba(205, 228, 250, calc(0.05 * var(--tl-glass-m, 1)));
3675
+ --tl-glass-line: rgba(255, 255, 255, 0.60);
3673
3676
  --tl-glass-blur: 12px;
3674
3677
  /* Modal-grade surface: a settings panel has to stay readable over the chat, so
3675
3678
  it needs its own fill instead of the zeroed bg-layer tokens. The value is high
@@ -3680,7 +3683,7 @@ body[data-dsh-tianlight] {
3680
3683
  reads as "duplicate stacked UI". Data surfaces keep a hard floor.
3681
3684
  v2.2.0: slightly less opaque and less pure-white; live mode lowers it further
3682
3685
  because its own real backdrop blur carries the legibility. */
3683
- --tl-panel-fill: rgba(240, 247, 255, max(0.82, calc(0.76 * var(--tl-glass-m, 1))));
3686
+ --tl-panel-fill: rgba(235, 245, 255, max(0.68, calc(0.62 * var(--tl-glass-m, 1))));
3684
3687
  --tl-ink: #0f2438;
3685
3688
  --tl-ink-soft: #3a5a78;
3686
3689
  --tl-ink-faint: #5d7d99;
@@ -5657,9 +5660,9 @@ body[data-dsh-tianlight] {
5657
5660
  real time. These are the plain defaults; each depth and the dark theme tune
5658
5661
  them below, so the live look still follows the selected depth. */
5659
5662
  --tl-liquid-live-blur: 14px;
5660
- --tl-liquid-live-sat: 1.65;
5661
- --tl-liquid-live-bright: 0.93;
5662
- --tl-liquid-live-contrast: 1.08;
5663
+ --tl-liquid-live-sat: 1.9;
5664
+ --tl-liquid-live-bright: 0.92;
5665
+ --tl-liquid-live-contrast: 1.1;
5663
5666
  /* v1.6.1 liquid glass v2, re-tuned in v2.2.0 against the white cast. The
5664
5667
  surface/size pairs below are the complete multi-layer recipe every glass
5665
5668
  surface paints: a baked feTurbulence grain tile (size --tl-liquid-grain), a
@@ -5693,49 +5696,54 @@ body[data-dsh-tianlight] {
5693
5696
  inset 1px 1px 0 rgba(240, 249, 255, var(--tl-liquid-rim)),
5694
5697
  inset -1px -1px 0 rgba(4, 14, 28, calc(var(--tl-liquid-rim) * 0.55)),
5695
5698
  inset 0 -1px 0 rgba(4, 14, 28, calc(var(--tl-liquid-rim) * 0.40));
5699
+ /* A broad, soft inner edge is what makes a pane read as thick glass rather than a
5700
+ tinted rectangle: the centre stays clear, the border gathers a little shadow. */
5701
+ --tl-liquid-lens-shadow:
5702
+ inset 0 0 22px rgba(8, 24, 42, 0.10),
5703
+ inset 0 0 60px rgba(8, 24, 42, 0.05);
5696
5704
  --tl-liquid-glow-shadow: 0 0 calc(6px + 14px * var(--tl-liquid-sheen)) rgba(150, 200, 250, calc(var(--tl-liquid-sheen) * 0.10));
5697
5705
  }
5698
5706
  body[data-dsh-tianlight][data-tl-glass-effective="soft"] {
5699
5707
  --tl-liquid-blur: 11px;
5700
5708
  --tl-liquid-sat: 1.3;
5701
- --tl-liquid-hi: 0.12;
5702
- --tl-liquid-lo: 0.04;
5709
+ --tl-liquid-hi: 0.08;
5710
+ --tl-liquid-lo: 0.02;
5703
5711
  --tl-liquid-noise: 0.03;
5704
- --tl-liquid-sheen: 0.24;
5712
+ --tl-liquid-sheen: 0.18;
5705
5713
  --tl-liquid-grain: 180px;
5706
- --tl-liquid-rim: 0.18;
5714
+ --tl-liquid-rim: 0.30;
5707
5715
  --tl-liquid-live-blur: 13px;
5708
- --tl-liquid-live-sat: 1.60;
5709
- --tl-liquid-live-bright: 0.94;
5710
- --tl-liquid-live-contrast: 1.08;
5716
+ --tl-liquid-live-sat: 1.8;
5717
+ --tl-liquid-live-bright: 0.93;
5718
+ --tl-liquid-live-contrast: 1.1;
5711
5719
  --tl-liquid-grain-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'140'%20height%3D'140'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.9'%20numOctaves%3D'2'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20type%3D'saturate'%20values%3D'0'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'140'%20height%3D'140'%20filter%3D'url(%23n)'%20opacity%3D'0.035'%2F%3E%3C%2Fsvg%3E");
5712
5720
  }
5713
5721
  body[data-dsh-tianlight][data-tl-glass-effective="real"] {
5714
5722
  --tl-liquid-blur: 19px;
5715
5723
  --tl-liquid-sat: 1.5;
5716
- --tl-liquid-hi: 0.18;
5717
- --tl-liquid-lo: 0.06;
5724
+ --tl-liquid-hi: 0.12;
5725
+ --tl-liquid-lo: 0.03;
5718
5726
  --tl-liquid-noise: 0.045;
5719
- --tl-liquid-sheen: 0.5;
5727
+ --tl-liquid-sheen: 0.35;
5720
5728
  --tl-liquid-grain: 140px;
5721
- --tl-liquid-rim: 0.32;
5729
+ --tl-liquid-rim: 0.36;
5722
5730
  --tl-liquid-live-blur: 18px;
5723
- --tl-liquid-live-sat: 1.75;
5724
- --tl-liquid-live-bright: 0.92;
5725
- --tl-liquid-live-contrast: 1.08;
5731
+ --tl-liquid-live-sat: 1.95;
5732
+ --tl-liquid-live-bright: 0.91;
5733
+ --tl-liquid-live-contrast: 1.1;
5726
5734
  --tl-liquid-grain-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'140'%20height%3D'140'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.9'%20numOctaves%3D'2'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20type%3D'saturate'%20values%3D'0'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'140'%20height%3D'140'%20filter%3D'url(%23n)'%20opacity%3D'0.05'%2F%3E%3C%2Fsvg%3E");
5727
5735
  }
5728
5736
  body[data-dsh-tianlight][data-tl-glass-effective="frosted"] {
5729
5737
  --tl-liquid-blur: 26px;
5730
5738
  --tl-liquid-sat: 0.95;
5731
- --tl-liquid-hi: 0.24;
5732
- --tl-liquid-lo: 0.03;
5739
+ --tl-liquid-hi: 0.16;
5740
+ --tl-liquid-lo: 0.02;
5733
5741
  --tl-liquid-noise: 0.10;
5734
- --tl-liquid-sheen: 0.10;
5742
+ --tl-liquid-sheen: 0.08;
5735
5743
  --tl-liquid-grain: 110px;
5736
- --tl-liquid-rim: 0.38;
5744
+ --tl-liquid-rim: 0.40;
5737
5745
  --tl-liquid-live-blur: 24px;
5738
- --tl-liquid-live-sat: 1.08;
5746
+ --tl-liquid-live-sat: 1.1;
5739
5747
  --tl-liquid-live-bright: 0.98;
5740
5748
  --tl-liquid-live-contrast: 1.04;
5741
5749
  --tl-liquid-grain-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'140'%20height%3D'140'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.9'%20numOctaves%3D'2'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20type%3D'saturate'%20values%3D'0'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'140'%20height%3D'140'%20filter%3D'url(%23n)'%20opacity%3D'0.12'%2F%3E%3C%2Fsvg%3E");
@@ -5847,20 +5855,31 @@ body[data-dsh-tianlight][data-tl-lowpower]:is([data-tl-glass-effective="soft"],
5847
5855
  wallpaper behind every frame. */
5848
5856
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) :is([data-tl-sidebar], [data-tl-sidebar-col]) {
5849
5857
  background-color: color-mix(in srgb, var(--tl-glass-fill) 62%, transparent) !important;
5850
- background-image: var(--tl-liquid-surface) !important;
5851
- background-size: var(--tl-liquid-surface-size);
5858
+ /* A lens, not a white sheet: one narrow specular streak at the top-left, one cool
5859
+ refraction tint at the bottom-right, then the grain surface. The 1px bright
5860
+ right edge is what makes it read as a glass pane. */
5861
+ background-image:
5862
+ linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 26%),
5863
+ radial-gradient(120% 100% at 100% 100%, rgba(70, 150, 240, 0.10) 0%, rgba(70, 150, 240, 0) 62%),
5864
+ var(--tl-liquid-surface) !important;
5865
+ background-size: auto, auto, var(--tl-liquid-surface-size);
5866
+ border-right: 1px solid rgba(255, 255, 255, 0.45);
5852
5867
  box-shadow:
5853
5868
  var(--tl-liquid-rim-shadow),
5869
+ var(--tl-liquid-lens-shadow),
5854
5870
  var(--tl-liquid-glow-shadow),
5855
5871
  0 0 0 0.5px var(--tl-glass-line),
5856
5872
  0 10px 30px rgba(8, 26, 44, 0.14);
5857
5873
  }
5858
5874
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) :is([data-tl-settings], [data-tl-wall]) {
5859
- background-image: var(--tl-liquid-surface) !important;
5860
- background-size: var(--tl-liquid-surface-size);
5875
+ background-image:
5876
+ linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 22%),
5877
+ var(--tl-liquid-surface) !important;
5878
+ background-size: auto, var(--tl-liquid-surface-size);
5861
5879
  border-color: var(--tl-glass-line);
5862
5880
  box-shadow:
5863
5881
  var(--tl-liquid-rim-shadow),
5882
+ var(--tl-liquid-lens-shadow),
5864
5883
  var(--tl-liquid-glow-shadow),
5865
5884
  0 18px 60px rgba(8, 26, 44, 0.26);
5866
5885
  }
@@ -5871,11 +5890,14 @@ body[data-dsh-tianlight][data-ds-dark-theme]:is([data-tl-glass-effective="soft"]
5871
5890
  0 18px 60px rgba(0, 0, 0, 0.55);
5872
5891
  }
5873
5892
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) [data-tl-hub] [data-tl-hub-panel] {
5874
- background-image: var(--tl-liquid-surface);
5875
- background-size: var(--tl-liquid-surface-size);
5893
+ background-image:
5894
+ linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 22%),
5895
+ var(--tl-liquid-surface);
5896
+ background-size: auto, var(--tl-liquid-surface-size);
5876
5897
  border-color: var(--tl-glass-line);
5877
5898
  box-shadow:
5878
5899
  var(--tl-liquid-rim-shadow),
5900
+ var(--tl-liquid-lens-shadow),
5879
5901
  var(--tl-liquid-glow-shadow),
5880
5902
  0 28px 80px rgba(4, 14, 26, 0.45);
5881
5903
  }
@@ -5922,11 +5944,15 @@ body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-eff
5922
5944
  only strengthens the sheen, the hairline, the rim and the saturation, so the pseudo
5923
5945
  layer ownership stays untouched. */
5924
5946
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) [data-tl-composer] {
5925
- background-image: var(--tl-liquid-surface) !important;
5926
- background-size: var(--tl-liquid-surface-size);
5927
- border-color: rgba(255, 255, 255, calc(var(--tl-liquid-hi) + 0.18)) !important;
5947
+ background-image:
5948
+ linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 18%),
5949
+ radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 48%),
5950
+ var(--tl-liquid-surface) !important;
5951
+ background-size: auto, auto, var(--tl-liquid-surface-size);
5952
+ border-color: rgba(255, 255, 255, calc(var(--tl-liquid-hi) + 0.30)) !important;
5928
5953
  box-shadow:
5929
5954
  var(--tl-liquid-rim-shadow),
5955
+ var(--tl-liquid-lens-shadow),
5930
5956
  var(--tl-liquid-glow-shadow),
5931
5957
  0 12px 38px rgba(8, 28, 52, 0.26) !important;
5932
5958
  }
@@ -6043,15 +6069,32 @@ body[data-dsh-tianlight][data-ds-dark-theme] {
6043
6069
  /* Live glass must be COLOUR from the wallpaper, not paint: strip most of the
6044
6070
  static white specular/fill and let the sampled backdrop carry the look. This is
6045
6071
  the direct answer to "enabling live glass makes everything too white". */
6046
- body[data-dsh-tianlight][data-tl-glass-live-effective="on"] {
6047
- --tl-glass-fill: rgba(233, 243, 254, calc(0.12 * var(--tl-glass-m, 1)));
6048
- --tl-panel-fill: rgba(240, 247, 255, max(0.72, calc(0.62 * var(--tl-glass-m, 1))));
6049
- --tl-overlay: rgba(240, 247, 255, 0.64);
6050
- --tl-liquid-hi: 0.06;
6051
- --tl-liquid-lo: 0.02;
6072
+ body[data-dsh-tianlight]:not([data-ds-dark-theme])[data-tl-glass-live-effective="on"] {
6073
+ --tl-glass-fill: rgba(205, 228, 250, calc(0.04 * var(--tl-glass-m, 1)));
6074
+ --tl-panel-fill: rgba(235, 245, 255, max(0.56, calc(0.50 * var(--tl-glass-m, 1))));
6075
+ --tl-overlay: rgba(235, 245, 255, 0.50);
6076
+ --tl-liquid-hi: 0.03;
6077
+ --tl-liquid-lo: 0.01;
6078
+ --tl-liquid-noise: 0.015;
6079
+ --tl-liquid-sheen: 0.06;
6080
+ --tl-liquid-rim: 0.35;
6081
+ }
6082
+ /* Dark theme must stay dark: the light live fill above was the exact cause of the
6083
+ "white haze" on a dark UI. The pane is smoked glass with a cool specular edge. */
6084
+ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"] {
6085
+ /* Smoked glass, not a bright pane: a bright wallpaper is darkened by the pane and
6086
+ the backdrop filter, so white text keeps its contrast and the pane reads as glass. */
6087
+ --tl-glass-fill: rgba(6, 14, 24, calc(0.40 * var(--tl-glass-m, 1)));
6088
+ --tl-panel-fill: rgba(8, 16, 28, max(0.72, calc(0.66 * var(--tl-glass-m, 1))));
6089
+ --tl-overlay: rgba(8, 16, 28, 0.70);
6090
+ --tl-liquid-hi: 0.08;
6091
+ --tl-liquid-lo: 0.01;
6052
6092
  --tl-liquid-noise: 0.02;
6053
- --tl-liquid-sheen: 0.12;
6054
- --tl-liquid-rim: 0.14;
6093
+ --tl-liquid-sheen: 0.16;
6094
+ --tl-liquid-rim: 0.36;
6095
+ --tl-liquid-live-bright: 0.72;
6096
+ --tl-liquid-live-sat: 1.35;
6097
+ --tl-liquid-live-contrast: 1.06;
6055
6098
  }
6056
6099
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
6057
6100
  body[data-dsh-tianlight][data-tl-glass-live-effective="on"] :is([data-tl-sidebar], [data-tl-sidebar-col], [data-tl-settings], [data-tl-wall], [data-tl-hub-panel]) {
@@ -6069,6 +6112,17 @@ body[data-dsh-tianlight][data-tl-glass-live-effective="on"] {
6069
6112
  body[data-dsh-tianlight][data-tl-glass-live-effective="on"] :is([data-tl-sidebar], [data-tl-sidebar-col]) {
6070
6113
  background-color: color-mix(in srgb, var(--tl-glass-fill) 30%, transparent) !important;
6071
6114
  }
6115
+ /* Dark mode needs more of the smoked fill: 30% of a dark tint over a bright
6116
+ wallpaper is still a bright pane. */
6117
+ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"] :is([data-tl-sidebar], [data-tl-sidebar-col]) {
6118
+ background-color: color-mix(in srgb, var(--tl-glass-fill) 82%, transparent) !important;
6119
+ }
6120
+ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"] :is([data-tl-settings], [data-tl-wall]) {
6121
+ background-color: color-mix(in srgb, var(--tl-panel-fill) 74%, transparent) !important;
6122
+ }
6123
+ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"] [data-tl-hub] [data-tl-hub-panel] {
6124
+ background-color: color-mix(in srgb, var(--tl-overlay) 78%, transparent) !important;
6125
+ }
6072
6126
  /* Composer keeps its ::before ownership (a filter on the card itself would
6073
6127
  re-anchor its non-portaled tooltips); live only makes that one layer real. */
6074
6128
  body[data-dsh-tianlight][data-tl-glass-live-effective="on"] [data-tl-composer]::before {
@@ -6081,6 +6135,18 @@ body[data-dsh-tianlight][data-tl-glass-live-effective="on"] {
6081
6135
  -webkit-backdrop-filter: blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6082
6136
  backdrop-filter: blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6083
6137
  }
6138
+ /* v2.2.2 lens: Chromium accepts an SVG filter inside backdrop-filter, so the
6139
+ wallpaper behind the large panes is gently bent, not merely blurred. The installer
6140
+ adds data-tl-glass-lens-support="1" only after CSS.supports proves it and creates
6141
+ the referenced filter node; the plain blur declarations above stay as fallback. */
6142
+ body[data-dsh-tianlight][data-tl-glass-lens-support="1"][data-tl-glass-live-effective="on"] :is([data-tl-sidebar], [data-tl-sidebar-col], [data-tl-settings], [data-tl-wall], [data-tl-hub-panel]) {
6143
+ -webkit-backdrop-filter: url(#tl-glass-lens-filter) blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6144
+ backdrop-filter: url(#tl-glass-lens-filter) blur(var(--tl-liquid-live-blur)) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6145
+ }
6146
+ body[data-dsh-tianlight][data-tl-glass-lens-support="1"][data-tl-glass-live-effective="on"] [data-tl-composer]::before {
6147
+ -webkit-backdrop-filter: url(#tl-glass-lens-filter) blur(max(var(--tl-glass-blur), var(--tl-liquid-blur), var(--tl-liquid-live-blur))) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6148
+ backdrop-filter: url(#tl-glass-lens-filter) blur(max(var(--tl-glass-blur), var(--tl-liquid-blur), var(--tl-liquid-live-blur))) saturate(var(--tl-liquid-live-sat)) brightness(var(--tl-liquid-live-bright)) contrast(var(--tl-liquid-live-contrast));
6149
+ }
6084
6150
  /* The role-hub preview is the control's own feedback: live makes it clear at a
6085
6151
  glance, including a tiny moving-wallpaper feel from the real backdrop. */
6086
6152
  body[data-dsh-tianlight] [data-tl-hub] [data-tl-glass-preview][data-live="on"] {
@@ -25370,7 +25436,7 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25370
25436
  }
25371
25437
  //#endregion
25372
25438
 
25373
- //#region glass opacity
25439
+  //#region glass opacity
25374
25440
  /**
25375
25441
  * One multiplier for every glass surface. 1 = the designed look; below makes
25376
25442
  * surfaces more see-through, above makes them more solid. Expressed as a
@@ -25447,7 +25513,9 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25447
25513
  * `tianlight.glassDepth`; no host setting is involved.
25448
25514
  */
25449
25515
  const GLASS_LIVE_KEY = "tianlight.glassLive";
25516
+ const GLASS_LENS_ID = "tl-glass-lens";
25450
25517
  let glassLiveLevel = false;
25518
+ let glassLensNode = null;
25451
25519
 
25452
25520
  function readGlassDepth() {
25453
25521
  try {
@@ -25509,6 +25577,84 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25509
25577
  return true;
25510
25578
  }
25511
25579
 
25580
+ /**
25581
+ * v2.2.2: the live glass uses an SVG displacement filter on the backdrop, so the
25582
+ * wallpaper behind a panel is not just blurred 鈥?it is subtly bent like a lens.
25583
+ * Chromium supports `backdrop-filter: url(#filter) ...` (verified in Edge/Chromium
25584
+ * headless). The node is created only while live sampling is effective and is
25585
+ * removed again otherwise, so the default path never carries the filter.
25586
+ */
25587
+ function ensureGlassLens() {
25588
+ try {
25589
+ if (glassLensNode !== null && glassLensNode.isConnected === true) return glassLensNode;
25590
+ const body = document.body;
25591
+ if (body === null) return null;
25592
+ const existing = document.getElementById(GLASS_LENS_ID);
25593
+ if (existing !== null) {
25594
+ glassLensNode = existing;
25595
+ return glassLensNode;
25596
+ }
25597
+ const ns = "http://www.w3.org/2000/svg";
25598
+ const svg = document.createElementNS(ns, "svg");
25599
+ svg.setAttribute("id", GLASS_LENS_ID);
25600
+ svg.setAttribute("aria-hidden", "true");
25601
+ svg.setAttribute("width", "0");
25602
+ svg.setAttribute("height", "0");
25603
+ svg.setAttribute("data-tl-glass-lens", "");
25604
+ svg.style.cssText = "position:fixed;width:0;height:0;overflow:hidden;pointer-events:none;";
25605
+ const defs = document.createElementNS(ns, "defs");
25606
+ const filter = document.createElementNS(ns, "filter");
25607
+ filter.setAttribute("id", "tl-glass-lens-filter");
25608
+ filter.setAttribute("x", "-15%");
25609
+ filter.setAttribute("y", "-15%");
25610
+ filter.setAttribute("width", "130%");
25611
+ filter.setAttribute("height", "130%");
25612
+ filter.setAttribute("color-interpolation-filters", "sRGB");
25613
+ const turbulence = document.createElementNS(ns, "feTurbulence");
25614
+ turbulence.setAttribute("type", "fractalNoise");
25615
+ turbulence.setAttribute("baseFrequency", "0.01 0.016");
25616
+ turbulence.setAttribute("numOctaves", "1");
25617
+ turbulence.setAttribute("seed", "7");
25618
+ turbulence.setAttribute("result", "lensNoise");
25619
+ const soften = document.createElementNS(ns, "feGaussianBlur");
25620
+ soften.setAttribute("in", "lensNoise");
25621
+ soften.setAttribute("stdDeviation", "1");
25622
+ soften.setAttribute("result", "lensNoiseSoft");
25623
+ const displace = document.createElementNS(ns, "feDisplacementMap");
25624
+ displace.setAttribute("in", "SourceGraphic");
25625
+ displace.setAttribute("in2", "lensNoiseSoft");
25626
+ displace.setAttribute("scale", "26");
25627
+ displace.setAttribute("xChannelSelector", "R");
25628
+ displace.setAttribute("yChannelSelector", "G");
25629
+ filter.appendChild(turbulence);
25630
+ filter.appendChild(soften);
25631
+ filter.appendChild(displace);
25632
+ defs.appendChild(filter);
25633
+ svg.appendChild(defs);
25634
+ body.appendChild(svg);
25635
+ glassLensNode = svg;
25636
+ return svg;
25637
+ } catch (error) {
25638
+ note("glass:lens", error);
25639
+ return null;
25640
+ }
25641
+ }
25642
+
25643
+ function removeGlassLens() {
25644
+ try {
25645
+ if (glassLensNode !== null && glassLensNode.isConnected === true) glassLensNode.remove();
25646
+ } catch (error) {
25647
+ note("glass:lens-remove", error);
25648
+ }
25649
+ glassLensNode = null;
25650
+ try {
25651
+ const stale = document.getElementById(GLASS_LENS_ID);
25652
+ if (stale !== null) stale.remove();
25653
+ } catch {
25654
+ // nothing to remove
25655
+ }
25656
+ }
25657
+
25512
25658
  /**
25513
25659
  * Write the configured and effective live attributes. `off` keeps the stylesheet's
25514
25660
  * default static veil; only `effective=on` adds any backdrop-filter, so a disabled
@@ -25519,6 +25665,28 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25519
25665
  if (body === null) return false;
25520
25666
  glassLiveLevel = live === true;
25521
25667
  const effective = effectiveGlassLive(glassLiveLevel);
25668
+ // Install the lens BEFORE the attribute makes the stylesheet reference it.
25669
+ if (effective === true) {
25670
+ ensureGlassLens();
25671
+ let supported = false;
25672
+ try {
25673
+ // NB: `CSS` in this closure is the stylesheet string, not the CSSOM
25674
+ // namespace, so the feature probe must read globalThis.CSS.
25675
+ const cssom = globalThis.CSS;
25676
+ supported =
25677
+ cssom !== undefined &&
25678
+ cssom !== null &&
25679
+ typeof cssom.supports === "function" &&
25680
+ (cssom.supports("backdrop-filter", "url(#tl-glass-lens-filter)") ||
25681
+ cssom.supports("-webkit-backdrop-filter", "url(#tl-glass-lens-filter)"));
25682
+ } catch {
25683
+ supported = false;
25684
+ }
25685
+ body.setAttribute("data-tl-glass-lens-support", supported ? "1" : "0");
25686
+ } else {
25687
+ body.removeAttribute("data-tl-glass-lens-support");
25688
+ removeGlassLens();
25689
+ }
25522
25690
  body.setAttribute("data-tl-glass-live", glassLiveLevel ? "on" : "off");
25523
25691
  body.setAttribute("data-tl-glass-live-effective", effective ? "on" : "off");
25524
25692
  return effective;
@@ -25568,8 +25736,19 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25568
25736
  // later switch to 15fps immediately flattens live sampling without a reload.
25569
25737
  renderTierController.publish();
25570
25738
  let depth = readGlassDepth();
25571
- let effective = applyGlassDepth(depth);
25572
25739
  glassLiveLevel = readGlassLive();
25740
+ // v2.2.2: a stored "live on + depth off" pair cannot render anything (live is
25741
+ // a modifier of a depth recipe). Older builds could leave that pair behind;
25742
+ // promote it to the soft recipe once, so the live switch does what it says.
25743
+ if (glassLiveLevel === true && depth === "off") {
25744
+ depth = "soft";
25745
+ try {
25746
+ globalThis.localStorage.setItem(GLASS_DEPTH_KEY, depth);
25747
+ } catch {
25748
+ // persistence is optional
25749
+ }
25750
+ }
25751
+ let effective = applyGlassDepth(depth);
25573
25752
  let liveEffective = applyGlassLive(glassLiveLevel);
25574
25753
  syncLiquidFallback(effective);
25575
25754
  glassDepthController = {
@@ -25654,6 +25833,7 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25654
25833
  body.removeAttribute("data-tl-glass-live-effective");
25655
25834
  body.removeAttribute("data-tl-render-tier");
25656
25835
  }
25836
+ removeGlassLens();
25657
25837
  };
25658
25838
  }
25659
25839
  //#endregion
package/lib/index.js CHANGED
@@ -69,7 +69,7 @@ const HOST_API = '3'
69
69
  * manifest is stamped with it. The handshake no longer compares it, so a
70
70
  * browser-half-only update can run against an unchanged host process.
71
71
  */
72
- const BUILD = '2.2.1'
72
+ const BUILD = '2.2.2'
73
73
 
74
74
  /**
75
75
  * Identity handed to the route modules that need it. `HOST_API`/`BUILD` stay in this
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-client-ui-skin-tianlight",
3
3
  "description": "Tianlight skin for the dsh web GUI: Makoto Shinkai daylight skies, an 18.5s cinematic opening film / compact splash with a 0.4x low-end tier, delayed performance fallback, optional reduced-motion override and explicit hint/Esc skip, a looping video wallpaper, a wallpaper library with upload/rotation, optional WebWallGL scene support, and a draggable Mint chibi-cat desktop companion",
4
- "version": "2.2.1",
4
+ "version": "2.2.2",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "bin": {
package/skin.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "tianlight",
3
3
  "name": "天光",
4
4
  "nameEn": "TIANLIGHT",
5
- "version": "2.2.1",
5
+ "version": "2.2.2",
6
6
  "author": "local",
7
7
  "tagline": "新海诚式天光 ・ 18.5 秒长片开机动画/简洁版(可选减少动态效果覆盖;仅提示/Esc 跳过) ・ 动态壁纸与可上传壁纸库 ・ 可选 WebWallGL 场景 ・ 薄荷小猫桌宠 ・ 职责通道(role pack → 桌宠气泡/选择) ・ 生活节奏与主动开口预算 ・ 可替换图片/≤32MiB 视频形象 ・ 液态玻璃三档 ・ AI 桌宠(严格权限) ・ 接入 DSH Agent(受控) ・ 桌宠即入口 ・ 兼容 DSH 0.2.0–0.2.2",
8
8
  "description": "天光是一套新海诚式日光天空主题:全屏循环视频壁纸与半透明天光玻璃面板,可选 18.5 秒长片或简洁版开机动画。壁纸库支持上传、轮播、标签与画面滤镜,并可接入 Wallpaper Engine 场景;桌宠「薄荷小猫」会陪你看时间、记事情、聊两句,角色中枢集中管理外观、生活节奏与权限。同一份构建适配 DSH 0.2.0 / 0.2.1 / 0.2.2。",