dsh-client-ui-skin-tianlight 2.2.1 → 2.2.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
@@ -6,6 +6,18 @@
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.3 · 参考图级透镜玻璃
10
+
11
+ 按作者提供的参考图再压一版:实时玻璃换成**运行时生成的径向透镜位移场**(中心不弯、边缘按半径平方放大/弯折),`feDisplacementMap` 直接作用在 backdrop 上;实时 blur 从 18–26px 降到 **2–3px**(暗色 6px),整面白色高光再降到 0.10,输入区顶部高光 0.08。暗色继续烟熏玻璃。只改浏览器半,`Ctrl+F5` 即可。详见 [RELEASE-NOTES-v2.2.3.md](RELEASE-NOTES-v2.2.3.md)。
12
+
13
+ ## v2.2.2 · 清透玻璃(不是白玻璃)
14
+
15
+ 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 暗色 + 亮壁纸下反而更白的问题。
16
+
17
+ 另外修了一个历史状态:`glassLive=1 + glassDepth=off` 时实时按钮看似开着但实际不渲染;现在会自动提升为 `soft` 并持久化。
18
+
19
+ 只改浏览器半,`Ctrl+F5` 即可;详见 [RELEASE-NOTES-v2.2.2.md](RELEASE-NOTES-v2.2.2.md)。
20
+
9
21
  ## v2.2.1 · 液态玻璃二次去白
10
22
 
11
23
  v2.2.0 的实时渲染在亮色天空壁纸下仍偏白:它继承了深度档的白色填充与白色 specular,`backdrop-filter` 又把明亮壁纸提亮,叠起来还是一层白雾。这一版把实时模式改成“颜色主要来自壁纸”:
@@ -725,11 +737,11 @@ node tools/hook-scan.mjs --dsh <新版本@deepseek-ai 目录> # 升级 Desktop
725
737
 
726
738
  | 变量 | 默认(亮 / 暗) | 作用 |
727
739
  |---|---|---|
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) |
740
+ | `--tl-panel-fill` | `0.68` 起 / `0.96` 起(随玻璃倍率) | 模态面板填充,越大越实;v2.2.2 亮色公式为 `max(0.68, 0.62×玻璃倍率)`,实时渲染下再降到 56% |
741
+ | `--tl-glass-fill` | `0.05` / `0.38` | 玻璃表面填充(v2.2.2 起接近透明;实时渲染下为 0.04) |
730
742
  | `--tl-glass-blur` | `12px` / `14px` | 玻璃模糊半径(v1.6.0 起全界面分组按档位使用;输入控件不加 blur) |
731
743
  | `--tl-shell` | `0` | 全局表面透明度,`0` = 100% 壁纸 |
732
- | `--tl-overlay` | `0.74` / `0.84` | 菜单/弹层遮罩(实时渲染下 0.64) |
744
+ | `--tl-overlay` | `0.54` / `0.84` | 菜单/弹层遮罩(实时渲染下 0.50) |
733
745
  | `--tl-accent` | `#2b74c9` | 强调色(面板内由壁纸取色覆盖) |
734
746
  | `--tl-content-width` / `--tl-para-gap` / `--tl-code-size` | 排版面板决定 | v0.5.0 排版增强写入的正文宽度/段距/代码字号变量 |
735
747
 
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.3",
5
+ "commit": "dee5470a3c2abde33794a4e8947e63ef8a393d2d",
6
+ "builtAt": "2026-11-15T23:22:00+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.3";
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;
@@ -5656,10 +5659,10 @@ body[data-dsh-tianlight] {
5656
5659
  /* v2.2.0 live mode: the only place the stylesheet re-samples the wallpaper in
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
- --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;
5662
+ --tl-liquid-live-blur: 2px;
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;
5707
- --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;
5714
+ --tl-liquid-rim: 0.30;
5715
+ --tl-liquid-live-blur: 2px;
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;
5722
- --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;
5729
+ --tl-liquid-rim: 0.36;
5730
+ --tl-liquid-live-blur: 3px;
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;
5737
- --tl-liquid-live-blur: 24px;
5738
- --tl-liquid-live-sat: 1.08;
5744
+ --tl-liquid-rim: 0.40;
5745
+ --tl-liquid-live-blur: 6px;
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.10) 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.10) 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.10) 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.10) 0%, rgba(255, 255, 255, 0) 18%),
5949
+ radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.08) 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,33 @@ 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-blur: 6px;
6096
+ --tl-liquid-live-bright: 0.72;
6097
+ --tl-liquid-live-sat: 1.35;
6098
+ --tl-liquid-live-contrast: 1.06;
6055
6099
  }
6056
6100
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
6057
6101
  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,11 +6113,22 @@ body[data-dsh-tianlight][data-tl-glass-live-effective="on"] {
6069
6113
  body[data-dsh-tianlight][data-tl-glass-live-effective="on"] :is([data-tl-sidebar], [data-tl-sidebar-col]) {
6070
6114
  background-color: color-mix(in srgb, var(--tl-glass-fill) 30%, transparent) !important;
6071
6115
  }
6116
+ /* Dark mode needs more of the smoked fill: 30% of a dark tint over a bright
6117
+ wallpaper is still a bright pane. */
6118
+ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"] :is([data-tl-sidebar], [data-tl-sidebar-col]) {
6119
+ background-color: color-mix(in srgb, var(--tl-glass-fill) 82%, transparent) !important;
6120
+ }
6121
+ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"] :is([data-tl-settings], [data-tl-wall]) {
6122
+ background-color: color-mix(in srgb, var(--tl-panel-fill) 74%, transparent) !important;
6123
+ }
6124
+ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"] [data-tl-hub] [data-tl-hub-panel] {
6125
+ background-color: color-mix(in srgb, var(--tl-overlay) 78%, transparent) !important;
6126
+ }
6072
6127
  /* Composer keeps its ::before ownership (a filter on the card itself would
6073
6128
  re-anchor its non-portaled tooltips); live only makes that one layer real. */
6074
6129
  body[data-dsh-tianlight][data-tl-glass-live-effective="on"] [data-tl-composer]::before {
6075
- -webkit-backdrop-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));
6076
- backdrop-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));
6130
+ -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));
6131
+ 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));
6077
6132
  }
6078
6133
  /* Small floating surfaces upgrade their existing bounded blur; none of them
6079
6134
  gains a filter it did not already carry at a non-off depth. */
@@ -6081,6 +6136,18 @@ body[data-dsh-tianlight][data-tl-glass-live-effective="on"] {
6081
6136
  -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
6137
  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
6138
  }
6139
+ /* v2.2.2 lens: Chromium accepts an SVG filter inside backdrop-filter, so the
6140
+ wallpaper behind the large panes is gently bent, not merely blurred. The installer
6141
+ adds data-tl-glass-lens-support="1" only after CSS.supports proves it and creates
6142
+ the referenced filter node; the plain blur declarations above stay as fallback. */
6143
+ 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]) {
6144
+ -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));
6145
+ 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));
6146
+ }
6147
+ body[data-dsh-tianlight][data-tl-glass-lens-support="1"][data-tl-glass-live-effective="on"] [data-tl-composer]::before {
6148
+ -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));
6149
+ 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));
6150
+ }
6084
6151
  /* The role-hub preview is the control's own feedback: live makes it clear at a
6085
6152
  glance, including a tiny moving-wallpaper feel from the real backdrop. */
6086
6153
  body[data-dsh-tianlight] [data-tl-hub] [data-tl-glass-preview][data-live="on"] {
@@ -25447,7 +25514,9 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25447
25514
  * `tianlight.glassDepth`; no host setting is involved.
25448
25515
  */
25449
25516
  const GLASS_LIVE_KEY = "tianlight.glassLive";
25517
+ const GLASS_LENS_ID = "tl-glass-lens";
25450
25518
  let glassLiveLevel = false;
25519
+ let glassLensNode = null;
25451
25520
 
25452
25521
  function readGlassDepth() {
25453
25522
  try {
@@ -25509,6 +25578,123 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25509
25578
  return true;
25510
25579
  }
25511
25580
 
25581
+ /**
25582
+ * v2.2.2: the live glass uses an SVG displacement filter on the backdrop, so the
25583
+ * wallpaper behind a panel is not just blurred 鈥?it is subtly bent like a lens.
25584
+ * Chromium supports `backdrop-filter: url(#filter) ...` (verified in Edge/Chromium
25585
+ * headless). The node is created only while live sampling is effective and is
25586
+ * removed again otherwise, so the default path never carries the filter.
25587
+ */
25588
+ /**
25589
+ * A radial vector field: R/G encode the horizontal/vertical displacement, with
25590
+ * zero offset in the centre and a strong outward bend near the rim. `feDisplacementMap`
25591
+ * on the backdrop then behaves like a convex lens instead of a noisy warp.
25592
+ * Generated at runtime so the package does not carry a big base64 blob.
25593
+ */
25594
+ let glassLensMap = "";
25595
+ function lensMapDataUrl() {
25596
+ if (glassLensMap !== "") return glassLensMap;
25597
+ try {
25598
+ const size = 256;
25599
+ const canvas = document.createElement("canvas");
25600
+ canvas.width = size;
25601
+ canvas.height = size;
25602
+ const context = typeof canvas.getContext === "function" ? canvas.getContext("2d") : null;
25603
+ if (context === null) return "";
25604
+ const image = context.createImageData(size, size);
25605
+ const data = image.data;
25606
+ for (let y = 0; y < size; y += 1) {
25607
+ const ny = (y / (size - 1)) * 2 - 1;
25608
+ for (let x = 0; x < size; x += 1) {
25609
+ const nx = (x / (size - 1)) * 2 - 1;
25610
+ const radius = Math.min(1, Math.sqrt(nx * nx + ny * ny));
25611
+ const bend = Math.pow(radius, 2.2);
25612
+ const index = (y * size + x) * 4;
25613
+ data[index] = Math.max(0, Math.min(255, Math.round(128 + 127 * nx * bend)));
25614
+ data[index + 1] = Math.max(0, Math.min(255, Math.round(128 + 127 * ny * bend)));
25615
+ data[index + 2] = 128;
25616
+ data[index + 3] = 255;
25617
+ }
25618
+ }
25619
+ context.putImageData(image, 0, 0);
25620
+ glassLensMap = canvas.toDataURL("image/png");
25621
+ return glassLensMap;
25622
+ } catch (error) {
25623
+ note("glass:lens-map", error);
25624
+ return "";
25625
+ }
25626
+ }
25627
+
25628
+ function ensureGlassLens() {
25629
+ try {
25630
+ if (glassLensNode !== null && glassLensNode.isConnected === true) return glassLensNode;
25631
+ const body = document.body;
25632
+ if (body === null) return null;
25633
+ const existing = document.getElementById(GLASS_LENS_ID);
25634
+ if (existing !== null) {
25635
+ glassLensNode = existing;
25636
+ return glassLensNode;
25637
+ }
25638
+ const map = lensMapDataUrl();
25639
+ if (map === "") return null;
25640
+ const ns = "http://www.w3.org/2000/svg";
25641
+ const svg = document.createElementNS(ns, "svg");
25642
+ svg.setAttribute("id", GLASS_LENS_ID);
25643
+ svg.setAttribute("aria-hidden", "true");
25644
+ svg.setAttribute("width", "0");
25645
+ svg.setAttribute("height", "0");
25646
+ svg.setAttribute("data-tl-glass-lens", "");
25647
+ svg.style.cssText = "position:fixed;width:0;height:0;overflow:hidden;pointer-events:none;";
25648
+ const defs = document.createElementNS(ns, "defs");
25649
+ const filter = document.createElementNS(ns, "filter");
25650
+ filter.setAttribute("id", "tl-glass-lens-filter");
25651
+ filter.setAttribute("x", "-10%");
25652
+ filter.setAttribute("y", "-10%");
25653
+ filter.setAttribute("width", "120%");
25654
+ filter.setAttribute("height", "120%");
25655
+ filter.setAttribute("color-interpolation-filters", "sRGB");
25656
+ const mapImage = document.createElementNS(ns, "feImage");
25657
+ mapImage.setAttribute("href", map);
25658
+ mapImage.setAttribute("x", "0");
25659
+ mapImage.setAttribute("y", "0");
25660
+ mapImage.setAttribute("width", "100%");
25661
+ mapImage.setAttribute("height", "100%");
25662
+ mapImage.setAttribute("preserveAspectRatio", "none");
25663
+ mapImage.setAttribute("result", "lensMap");
25664
+ const displace = document.createElementNS(ns, "feDisplacementMap");
25665
+ displace.setAttribute("in", "SourceGraphic");
25666
+ displace.setAttribute("in2", "lensMap");
25667
+ displace.setAttribute("scale", "56");
25668
+ displace.setAttribute("xChannelSelector", "R");
25669
+ displace.setAttribute("yChannelSelector", "G");
25670
+ filter.appendChild(mapImage);
25671
+ filter.appendChild(displace);
25672
+ defs.appendChild(filter);
25673
+ svg.appendChild(defs);
25674
+ body.appendChild(svg);
25675
+ glassLensNode = svg;
25676
+ return svg;
25677
+ } catch (error) {
25678
+ note("glass:lens", error);
25679
+ return null;
25680
+ }
25681
+ }
25682
+
25683
+ function removeGlassLens() {
25684
+ try {
25685
+ if (glassLensNode !== null && glassLensNode.isConnected === true) glassLensNode.remove();
25686
+ } catch (error) {
25687
+ note("glass:lens-remove", error);
25688
+ }
25689
+ glassLensNode = null;
25690
+ try {
25691
+ const stale = document.getElementById(GLASS_LENS_ID);
25692
+ if (stale !== null) stale.remove();
25693
+ } catch {
25694
+ // nothing to remove
25695
+ }
25696
+ }
25697
+
25512
25698
  /**
25513
25699
  * Write the configured and effective live attributes. `off` keeps the stylesheet's
25514
25700
  * default static veil; only `effective=on` adds any backdrop-filter, so a disabled
@@ -25519,6 +25705,28 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25519
25705
  if (body === null) return false;
25520
25706
  glassLiveLevel = live === true;
25521
25707
  const effective = effectiveGlassLive(glassLiveLevel);
25708
+ // Install the lens BEFORE the attribute makes the stylesheet reference it.
25709
+ if (effective === true) {
25710
+ ensureGlassLens();
25711
+ let supported = false;
25712
+ try {
25713
+ // NB: `CSS` in this closure is the stylesheet string, not the CSSOM
25714
+ // namespace, so the feature probe must read globalThis.CSS.
25715
+ const cssom = globalThis.CSS;
25716
+ supported =
25717
+ cssom !== undefined &&
25718
+ cssom !== null &&
25719
+ typeof cssom.supports === "function" &&
25720
+ (cssom.supports("backdrop-filter", "url(#tl-glass-lens-filter)") ||
25721
+ cssom.supports("-webkit-backdrop-filter", "url(#tl-glass-lens-filter)"));
25722
+ } catch {
25723
+ supported = false;
25724
+ }
25725
+ body.setAttribute("data-tl-glass-lens-support", supported ? "1" : "0");
25726
+ } else {
25727
+ body.removeAttribute("data-tl-glass-lens-support");
25728
+ removeGlassLens();
25729
+ }
25522
25730
  body.setAttribute("data-tl-glass-live", glassLiveLevel ? "on" : "off");
25523
25731
  body.setAttribute("data-tl-glass-live-effective", effective ? "on" : "off");
25524
25732
  return effective;
@@ -25568,8 +25776,19 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25568
25776
  // later switch to 15fps immediately flattens live sampling without a reload.
25569
25777
  renderTierController.publish();
25570
25778
  let depth = readGlassDepth();
25571
- let effective = applyGlassDepth(depth);
25572
25779
  glassLiveLevel = readGlassLive();
25780
+ // v2.2.2: a stored "live on + depth off" pair cannot render anything (live is
25781
+ // a modifier of a depth recipe). Older builds could leave that pair behind;
25782
+ // promote it to the soft recipe once, so the live switch does what it says.
25783
+ if (glassLiveLevel === true && depth === "off") {
25784
+ depth = "soft";
25785
+ try {
25786
+ globalThis.localStorage.setItem(GLASS_DEPTH_KEY, depth);
25787
+ } catch {
25788
+ // persistence is optional
25789
+ }
25790
+ }
25791
+ let effective = applyGlassDepth(depth);
25573
25792
  let liveEffective = applyGlassLive(glassLiveLevel);
25574
25793
  syncLiquidFallback(effective);
25575
25794
  glassDepthController = {
@@ -25654,6 +25873,7 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25654
25873
  body.removeAttribute("data-tl-glass-live-effective");
25655
25874
  body.removeAttribute("data-tl-render-tier");
25656
25875
  }
25876
+ removeGlassLens();
25657
25877
  };
25658
25878
  }
25659
25879
  //#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.3'
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.3",
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.3",
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。",