@ash-qw/dsh-theme-prts 1.0.4 → 1.0.6

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.en.md +1 -1
  3. package/README.md +1 -1
  4. package/THIRD_PARTY_NOTICES.md +4 -4
  5. package/THIRD_PARTY_NOTICES.zh-CN.md +4 -4
  6. package/lib/client.js +226 -45
  7. package/package.json +1 -1
  8. package/src/assets/cursors/animation.json +83 -1
  9. package/src/assets/cursors/prts-link-hold.png +0 -0
  10. package/src/assets/cursors/prts-link-press-00.png +0 -0
  11. package/src/assets/cursors/prts-link-press-01.png +0 -0
  12. package/src/assets/cursors/prts-link-press-02.png +0 -0
  13. package/src/assets/cursors/prts-link-press-03.png +0 -0
  14. package/src/assets/cursors/prts-link-press-04.png +0 -0
  15. package/src/assets/cursors/prts-link-press-05.png +0 -0
  16. package/src/assets/cursors/prts-link-release-00.png +0 -0
  17. package/src/assets/cursors/prts-link-release-01.png +0 -0
  18. package/src/assets/cursors/prts-link-release-02.png +0 -0
  19. package/src/assets/cursors/prts-link-release-03.png +0 -0
  20. package/src/assets/cursors/prts-link-release-04.png +0 -0
  21. package/src/assets/cursors/prts-link-release-05.png +0 -0
  22. package/src/assets/cursors/prts-link-release-06.png +0 -0
  23. package/src/assets/cursors/prts-link-release-07.png +0 -0
  24. package/src/assets/cursors/prts-link-release-08.png +0 -0
  25. package/src/assets/cursors/prts-link-release-09.png +0 -0
  26. package/src/assets/cursors/prts-link-release-10.png +0 -0
  27. package/src/assets/cursors/prts-link-release-11.png +0 -0
  28. package/src/assets/cursors/prts-link.png +0 -0
  29. package/src/assets/cursors/prts-resize-ew.png +0 -0
  30. package/src/assets/cursors/prts-resize-nesw.png +0 -0
  31. package/src/assets/cursors/prts-resize-ns.png +0 -0
  32. package/src/assets/cursors/prts-resize-nwse.png +0 -0
  33. package/src/client/conversation-control-adapter.js +3 -1
  34. package/src/client/cursor-adapter.js +143 -34
  35. package/src/client/theme-settings-workbench.js +84 -7
  36. package/src/styles/cursor.css +5 -1
  37. package/src/styles/prts.css +26 -25
  38. package/src/styles/theme-settings-workbench.css +230 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # 变更记录
2
2
 
3
+ ## 1.0.6 - 2026-10-10
4
+
5
+ - 强化主题设置的四类分区边界和标题层级,将外观设置归为完整分区,并让导航高亮跟随正文滚动与定位。
6
+ - 保留会话过程折叠栏的宿主原生样式,修复“已完成”等状态栏被通用按钮装饰覆盖成深色边框长条的问题。
7
+ - 为发送后的用户消息临时回显补齐主题样式,避免正式消息到达时气泡、间距和头像发生突变;覆盖原生与通讯链条模式及窄屏布局。
8
+
9
+ ## 1.0.5 - 2026-10-10
10
+
11
+ - 重排主题设置为外观、交互、会话流线和粒子效果分区,新增分区定位导航,统一控件对齐、留白与明暗主题表现。
12
+ - 二元设置统一使用滑动开关;关闭会话流线时收起其子设置,自定义调色盘仅在自定义色调下显示,保留已有偏好。
13
+ - 可点击区域使用 PRTS link 手形与对应点击动画,新增 32×32 四向静态调整大小光标;停止打包已停用的文本点击动画帧。
14
+ - 手形点击动画改为局部更新,避免根节点逐帧更新引发整页样式重算;包含大量子元素的背景容器使用静态手形,保护长会话中的粒子交互性能。
15
+ - 避免正文内移动鼠标时反复写入光标标记,减轻粒子动画的主线程负担;补齐指针取消、拖拽开始和页面隐藏时的光标清理。
16
+ - 会话正文根据鼠标实际命中的字符范围切换 PRTS 文本光标,行尾和段落空白保留手形,并在滚动和窗口缩放后重新检测。
17
+ - 文本光标统一使用静态 I 形,移除点击动画;保留手形点击反馈和原生文本选择行为。
18
+
3
19
  ## 1.0.4 - 2026-10-10
4
20
 
5
21
  - 新增 PRTS 手形光标与按下、按住、松开反馈,支持在主题设置中切回系统光标;文本输入使用静态 I 形和单次点击动画,适配减少动态偏好。
package/README.en.md CHANGED
@@ -38,7 +38,7 @@ The theme is published publicly on npm and requires no GitHub login or access to
38
38
  - day/night modes synchronized with Harness, three appearance presets, and four material levels;
39
39
  - city silhouettes, faction particle marks, session waveforms, and a P.R.T.S. startup sequence;
40
40
  - desktop, tablet, phone, reduced-motion, and reduced-transparency accommodations;
41
- - PRTS hand cursors with press, hold, and release feedback, plus a static text cursor with one-shot click feedback; switch back to system cursors in theme settings;
41
+ - PRTS hand cursors with press, hold, and release feedback (large background containers stay static to avoid long-conversation stalls), link hand cursors for clickable elements, four static resize directions, and a static I-beam cursor over text fields and conversation text; turn off “PRTS 光标” in theme settings to use system cursors;
42
42
  - no runtime network requests, analytics, or telemetry.
43
43
 
44
44
  Cursor artwork comes from [crowninggg/prts-cursor v1.1.4](https://github.com/crowninggg/prts-cursor/releases/tag/v1.1.4), extracted and adapted for web cursors. See [third-party notices](THIRD_PARTY_NOTICES.md#prts-hand-and-text-cursors) for provenance, adaptations, and licensing boundaries.
package/README.md CHANGED
@@ -38,7 +38,7 @@ npx @deepseek-ai/dsh plugin --profile web add @ash-qw/dsh-theme-prts
38
38
  - 与 Harness 同步的日间 / 夜间模式、三套外观预设和四档界面材质;
39
39
  - 城市剪影、阵营粒子徽记、会话声纹和 P.R.T.S. 启动序列;
40
40
  - 桌面、平板、手机、减少动效和降低透明度适配;
41
- - PRTS 手形光标,支持按下、按住和松开效果;文本框使用静态 I 形及单次点击反馈,可在主题设置的“鼠标样式”切回系统光标;
41
+ - PRTS 手形光标,支持按下、按住和松开效果(大型背景容器保持静态,避免长会话卡顿);可点击区域使用 link 手形,调整大小使用四向静态光标;文本框和正文文字使用静态 I 形光标,可在主题设置中关闭“PRTS 光标”以使用系统光标;
42
42
  - 无运行时网络请求、分析统计或额外遥测。
43
43
 
44
44
  鼠标素材来自 [crowninggg/prts-cursor v1.1.4](https://github.com/crowninggg/prts-cursor/releases/tag/v1.1.4),提取后适配为网页光标;来源、处理方式和许可边界见 [第三方素材说明](THIRD_PARTY_NOTICES.zh-CN.md#prts-手形与文本光标)。
@@ -37,9 +37,9 @@ An applicable rights holder or authorized representative may submit a removal or
37
37
 
38
38
  After receiving a verifiable request, the project maintainer will review it promptly and may suspend public distribution of an affected release, remove or replace the relevant material, or update attribution and provenance records. This process does not imply that the material was previously authorized and does not limit or waive any rights or remedies of a rights holder.
39
39
 
40
- ## PRTS hand and text cursors
40
+ ## PRTS hand, text and resize cursors
41
41
 
42
- - Files: `src/assets/cursors/prts-hand*.png`, `prts-text*.png` and `animation.json`.
43
- - Source: embedded `PRTS-Replica-v8-96x-normal.cur`, `normal_hold.cur`, `normal_press.ani`, `normal_release.ani`, `beam.cur` and `beam_click.ani` resources in `程序文件/PRTS-Setup.exe` from [crowninggg/prts-cursor v1.1.4, PRTS-Windows-1.1.4.zip](https://github.com/crowninggg/prts-cursor/releases/tag/v1.1.4), retrieved 2026-10-09. Resources were read without executing the installer.
44
- - Adaptation: each 96×96 hand frame is cropped to (18, 10, 82, 84) and resized to 42×48. Source hotspot (28, 20) maps to (7, 6). ANI frame durations are preserved in the manifest; terminal 60-second hold frames are represented by static held/resting states at runtime. Text frames retain the full 96×96 canvas, resized to 48×48 with hotspot (24, 24). Text click feedback plays once; the continuous text-loop animation is not included. Link-arrow and unavailable variants are not included.
42
+ - Files: `src/assets/cursors/prts-hand*.png`, `prts-link*.png`, `prts-text*.png`, `prts-resize-*.png` and `animation.json`.
43
+ - Source: embedded `PRTS-Replica-v8-96x-normal.cur`, `normal_hold.cur`, `normal_press.ani`, `normal_release.ani`, `beam.cur`, `beam_click.ani`, `link.cur`, `link_hold.cur`, `link_press.ani`, `link_release.ani` and `sel_1_static.cur` through `sel_4_static.cur` resources in `程序文件/PRTS-Setup.exe` from [crowninggg/prts-cursor v1.1.4, PRTS-Windows-1.1.4.zip](https://github.com/crowninggg/prts-cursor/releases/tag/v1.1.4), retrieved 2026-10-09. Resources were read without executing the installer.
44
+ - Adaptation: each 96×96 hand frame is cropped to (18, 10, 82, 84) and resized to 42×48. Source hotspot (28, 20) maps to (7, 6). ANI frame durations are preserved in the manifest; terminal 60-second hold frames are represented by static held/resting states at runtime. Text frames retain the full 96×96 canvas, resized to 48×48 with hotspot (24, 24). Link frames are cropped to (18, 10, 96, 96), resized to 51×56 with hotspot (7, 7), retaining the arrow. The four static resize cursors retain the full canvas, resized to 32×32 with hotspot (16, 16). Text click frames remain in the source archive but are no longer bundled or played. Continuous text-loop and unavailable variants are not included.
45
45
  - Upstream Credits.txt describes an unofficial personal derivative tool and attributes Arknights character/interface assets to their original rights holders. No explicit redistribution license for this artwork was found in the inspected package. This artwork is excluded from this project's MIT license; inclusion does not grant rights to the underlying artwork.
@@ -37,9 +37,9 @@ P.R.T.S. 头像、阵营标识及衍生徽记仅收录于个人、非商业同
37
37
 
38
38
  收到可核实的请求后,项目维护者会及时审查,并可能暂停相关版本的公开分发、移除或替换相关素材,或更新署名及来源记录。此流程不表示相关素材此前已获授权,也不限制或放弃权利人的任何权利或救济途径。
39
39
 
40
- ## PRTS 手形与文本光标
40
+ ## PRTS 手形、文本与调整大小光标
41
41
 
42
- - 文件:`src/assets/cursors/prts-hand*.png`、`prts-text*.png` 及 `animation.json`。
43
- - 来源:[crowninggg/prts-cursor v1.1.4 的 PRTS-Windows-1.1.4.zip](https://github.com/crowninggg/prts-cursor/releases/tag/v1.1.4),获取日期为 2026-10-09。使用其中 `程序文件/PRTS-Setup.exe` 内嵌的 `PRTS-Replica-v8-96x-normal.cur`、`normal_hold.cur`、`normal_press.ani`、`normal_release.ani`、`beam.cur` 和 `beam_click.ani` 资源。提取时仅读取资源,未运行安装程序。
44
- - 适配方式:每张 96×96 手形帧裁剪至矩形 (18, 10, 82, 84),再缩放为 42×48;原始点击热点 (28, 20) 映射为 (7, 6)。ANI 帧时长保留在清单中,末尾 60 秒停留帧在运行时由静态按住或静止状态代替。文本帧保留完整的 96×96 画布,缩放至 48×48,热点为 (24, 24)。文本点击反馈仅播放一次,未收录持续循环的文本动画,也未收录链接箭头和禁止操作变体。
42
+ - 文件:`src/assets/cursors/prts-hand*.png`、`prts-link*.png`、`prts-text*.png`、`prts-resize-*.png` 及 `animation.json`。
43
+ - 来源:[crowninggg/prts-cursor v1.1.4 的 PRTS-Windows-1.1.4.zip](https://github.com/crowninggg/prts-cursor/releases/tag/v1.1.4),获取日期为 2026-10-09。使用其中 `程序文件/PRTS-Setup.exe` 内嵌的 `PRTS-Replica-v8-96x-normal.cur`、`normal_hold.cur`、`normal_press.ani`、`normal_release.ani`、`beam.cur`、`beam_click.ani`、`link.cur`、`link_hold.cur`、`link_press.ani`、`link_release.ani` 及 `sel_1_static.cur` 至 `sel_4_static.cur` 资源。提取时仅读取资源,未运行安装程序。
44
+ - 适配方式:每张 96×96 手形帧裁剪至矩形 (18, 10, 82, 84),再缩放为 42×48;原始点击热点 (28, 20) 映射为 (7, 6)。ANI 帧时长保留在清单中,末尾 60 秒停留帧在运行时由静态按住或静止状态代替。文本帧保留完整的 96×96 画布,缩放至 48×48,热点为 (24, 24)。链接帧裁剪至 (18, 10, 96, 96),缩放为 51×56,热点为 (7, 7),保留箭头。四种静态调整大小光标保留完整画布,缩放至 32×32,热点为 (16, 16)。文本点击帧保留在源码素材中,但不再打包或播放;未收录持续循环的文本动画和禁止操作变体。
45
45
  - 权利说明:上游 `Credits.txt` 将其描述为非官方自用衍生工具,并注明明日方舟角色及界面素材归原权利人所有。在已检查的安装包中,未发现这些美术素材的明确再分发许可。它们不属于本项目 MIT 许可证的授权范围;本项目收录这些素材并不授予原美术作品的相关权利。