dsh-client-ui-skin-tianlight 2.2.2 → 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,10 @@
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
+
9
13
  ## v2.2.2 · 清透玻璃(不是白玻璃)
10
14
 
11
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 暗色 + 亮壁纸下反而更白的问题。
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.2",
5
- "commit": "0dfe6d6dd951030ca62d1c3889907be5e8fdfca9",
6
- "builtAt": "2026-11-15T23:07:42+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.2";
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
@@ -5659,7 +5659,7 @@ body[data-dsh-tianlight] {
5659
5659
  /* v2.2.0 live mode: the only place the stylesheet re-samples the wallpaper in
5660
5660
  real time. These are the plain defaults; each depth and the dark theme tune
5661
5661
  them below, so the live look still follows the selected depth. */
5662
- --tl-liquid-live-blur: 14px;
5662
+ --tl-liquid-live-blur: 2px;
5663
5663
  --tl-liquid-live-sat: 1.9;
5664
5664
  --tl-liquid-live-bright: 0.92;
5665
5665
  --tl-liquid-live-contrast: 1.1;
@@ -5712,7 +5712,7 @@ body[data-dsh-tianlight][data-tl-glass-effective="soft"] {
5712
5712
  --tl-liquid-sheen: 0.18;
5713
5713
  --tl-liquid-grain: 180px;
5714
5714
  --tl-liquid-rim: 0.30;
5715
- --tl-liquid-live-blur: 13px;
5715
+ --tl-liquid-live-blur: 2px;
5716
5716
  --tl-liquid-live-sat: 1.8;
5717
5717
  --tl-liquid-live-bright: 0.93;
5718
5718
  --tl-liquid-live-contrast: 1.1;
@@ -5727,7 +5727,7 @@ body[data-dsh-tianlight][data-tl-glass-effective="real"] {
5727
5727
  --tl-liquid-sheen: 0.35;
5728
5728
  --tl-liquid-grain: 140px;
5729
5729
  --tl-liquid-rim: 0.36;
5730
- --tl-liquid-live-blur: 18px;
5730
+ --tl-liquid-live-blur: 3px;
5731
5731
  --tl-liquid-live-sat: 1.95;
5732
5732
  --tl-liquid-live-bright: 0.91;
5733
5733
  --tl-liquid-live-contrast: 1.1;
@@ -5742,7 +5742,7 @@ body[data-dsh-tianlight][data-tl-glass-effective="frosted"] {
5742
5742
  --tl-liquid-sheen: 0.08;
5743
5743
  --tl-liquid-grain: 110px;
5744
5744
  --tl-liquid-rim: 0.40;
5745
- --tl-liquid-live-blur: 24px;
5745
+ --tl-liquid-live-blur: 6px;
5746
5746
  --tl-liquid-live-sat: 1.1;
5747
5747
  --tl-liquid-live-bright: 0.98;
5748
5748
  --tl-liquid-live-contrast: 1.04;
@@ -5859,7 +5859,7 @@ body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-eff
5859
5859
  refraction tint at the bottom-right, then the grain surface. The 1px bright
5860
5860
  right edge is what makes it read as a glass pane. */
5861
5861
  background-image:
5862
- linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 26%),
5862
+ linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 26%),
5863
5863
  radial-gradient(120% 100% at 100% 100%, rgba(70, 150, 240, 0.10) 0%, rgba(70, 150, 240, 0) 62%),
5864
5864
  var(--tl-liquid-surface) !important;
5865
5865
  background-size: auto, auto, var(--tl-liquid-surface-size);
@@ -5873,7 +5873,7 @@ body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-eff
5873
5873
  }
5874
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]) {
5875
5875
  background-image:
5876
- linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 22%),
5876
+ linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 22%),
5877
5877
  var(--tl-liquid-surface) !important;
5878
5878
  background-size: auto, var(--tl-liquid-surface-size);
5879
5879
  border-color: var(--tl-glass-line);
@@ -5891,7 +5891,7 @@ body[data-dsh-tianlight][data-ds-dark-theme]:is([data-tl-glass-effective="soft"]
5891
5891
  }
5892
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] {
5893
5893
  background-image:
5894
- linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 22%),
5894
+ linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 22%),
5895
5895
  var(--tl-liquid-surface);
5896
5896
  background-size: auto, var(--tl-liquid-surface-size);
5897
5897
  border-color: var(--tl-glass-line);
@@ -5945,8 +5945,8 @@ body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-eff
5945
5945
  layer ownership stays untouched. */
5946
5946
  body[data-dsh-tianlight]:is([data-tl-glass-effective="soft"], [data-tl-glass-effective="frosted"], [data-tl-glass-effective="real"]) [data-tl-composer] {
5947
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%),
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
5950
  var(--tl-liquid-surface) !important;
5951
5951
  background-size: auto, auto, var(--tl-liquid-surface-size);
5952
5952
  border-color: rgba(255, 255, 255, calc(var(--tl-liquid-hi) + 0.30)) !important;
@@ -6092,6 +6092,7 @@ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"]
6092
6092
  --tl-liquid-noise: 0.02;
6093
6093
  --tl-liquid-sheen: 0.16;
6094
6094
  --tl-liquid-rim: 0.36;
6095
+ --tl-liquid-live-blur: 6px;
6095
6096
  --tl-liquid-live-bright: 0.72;
6096
6097
  --tl-liquid-live-sat: 1.35;
6097
6098
  --tl-liquid-live-contrast: 1.06;
@@ -6126,8 +6127,8 @@ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"]
6126
6127
  /* Composer keeps its ::before ownership (a filter on the card itself would
6127
6128
  re-anchor its non-portaled tooltips); live only makes that one layer real. */
6128
6129
  body[data-dsh-tianlight][data-tl-glass-live-effective="on"] [data-tl-composer]::before {
6129
- -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));
6130
- 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));
6131
6132
  }
6132
6133
  /* Small floating surfaces upgrade their existing bounded blur; none of them
6133
6134
  gains a filter it did not already carry at a non-off depth. */
@@ -6144,8 +6145,8 @@ body[data-dsh-tianlight][data-ds-dark-theme][data-tl-glass-live-effective="on"]
6144
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));
6145
6146
  }
6146
6147
  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));
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));
6149
6150
  }
6150
6151
  /* The role-hub preview is the control's own feedback: live makes it clear at a
6151
6152
  glance, including a tiny moving-wallpaper feel from the real backdrop. */
@@ -25436,7 +25437,7 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25436
25437
  }
25437
25438
  //#endregion
25438
25439
 
25439
-  //#region glass opacity
25440
+ //#region glass opacity
25440
25441
  /**
25441
25442
  * One multiplier for every glass surface. 1 = the designed look; below makes
25442
25443
  * surfaces more see-through, above makes them more solid. Expressed as a
@@ -25584,6 +25585,46 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25584
25585
  * headless). The node is created only while live sampling is effective and is
25585
25586
  * removed again otherwise, so the default path never carries the filter.
25586
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
+
25587
25628
  function ensureGlassLens() {
25588
25629
  try {
25589
25630
  if (glassLensNode !== null && glassLensNode.isConnected === true) return glassLensNode;
@@ -25594,6 +25635,8 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25594
25635
  glassLensNode = existing;
25595
25636
  return glassLensNode;
25596
25637
  }
25638
+ const map = lensMapDataUrl();
25639
+ if (map === "") return null;
25597
25640
  const ns = "http://www.w3.org/2000/svg";
25598
25641
  const svg = document.createElementNS(ns, "svg");
25599
25642
  svg.setAttribute("id", GLASS_LENS_ID);
@@ -25605,29 +25648,26 @@ const LIFE_PAUSE_REPLAY_MS = 60 * 1000;
25605
25648
  const defs = document.createElementNS(ns, "defs");
25606
25649
  const filter = document.createElementNS(ns, "filter");
25607
25650
  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%");
25651
+ filter.setAttribute("x", "-10%");
25652
+ filter.setAttribute("y", "-10%");
25653
+ filter.setAttribute("width", "120%");
25654
+ filter.setAttribute("height", "120%");
25612
25655
  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");
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");
25623
25664
  const displace = document.createElementNS(ns, "feDisplacementMap");
25624
25665
  displace.setAttribute("in", "SourceGraphic");
25625
- displace.setAttribute("in2", "lensNoiseSoft");
25626
- displace.setAttribute("scale", "26");
25666
+ displace.setAttribute("in2", "lensMap");
25667
+ displace.setAttribute("scale", "56");
25627
25668
  displace.setAttribute("xChannelSelector", "R");
25628
25669
  displace.setAttribute("yChannelSelector", "G");
25629
- filter.appendChild(turbulence);
25630
- filter.appendChild(soften);
25670
+ filter.appendChild(mapImage);
25631
25671
  filter.appendChild(displace);
25632
25672
  defs.appendChild(filter);
25633
25673
  svg.appendChild(defs);
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.2'
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.2",
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.2",
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。",