v0.2.2 — 提示卡可读性(issue #6)
本次内容(自 0.2.1)
针对 issue #6 的悬停提示卡可读性,并修复官方深色模式下误判玻璃底导致的「暗底暗字」:
- 头部提级:提示卡
#序号 · 时间由最弱一级(label-tertiary)提升到label-secondary,亮色主题下不再发虚;正文跟随label-primary(与对话正文同色),明暗随主题自动切换 - 保守对比度兜底:仅当提示卡浮层背景「不透明」(
bg-layer-3alpha ≥ 0.85)且 label token 与背景对比 <3:1 时才写纠偏色(亮底深字 / 暗底亮字);玻璃/半透明浮层(官方深色rgba(255,255,255,0.1)类)一律跳过、跟随主题 token——避免把半透明白玻璃误判成浅底 - 长摘要折行:
overflow-wrap: anywhere——摘要含长代码/URL 时在卡片内折行,不撑破卡片(悬停时摘要溢出框体的问题) - 颜色解析增强:
parseRgba支持rgba逗号 / 空格+斜杠语法、#rgb/#rgba/#rrggbb/#rrggbbaa、transparent
验证:类型检查 / 构建通过;判定矩阵 10/10(官方深色玻璃 SKIP、官方浅色 OK、异常 token 的不透明主题 FIX);bundle 服务端一致性逐字节确认。
安装 / 更新
dsh plugin --profile web add git+https://github.com/BananaSoldier01/dsh-tidychat.git#v0.2.2
# 或从 main 更新
dsh plugin --profile web update @bananasoldier01/dsh-tidychat下一版本(候选)
- Turn Index 层(fold/navigator/autoload 共享索引,替代每次全量扫描)
- 运行中回合的已完成步骤折叠(issue #2)