PCL-CE icon indicating copy to clipboard operation
PCL-CE copied to clipboard

[UI] 信息文本中超链接的下划线断断续续且与文字长度不相同

Open TheMyceliumOfAntan opened this issue 2 weeks ago • 1 comments

检查项 / Checklist

  • [x] 我已在 Issues 页面 中搜索,确认了这一 Bug 未被提交过 / I have searched the Issues page and confirmed that this bug has not been reported yet.
  • [ ] 我确认只是全部选中而没有仔细确认就直接提交了这个 Issue,并且同意这个 Issue 可以直接被关闭 / I confirm that I checked all boxes without carefully reading them, and agree that this issue may be closed directly.
  • [x] 我确认正在使用当前更新分支的最新版 PCL CE,若不是,此 Issue 可能会被直接关闭(更新方式:启动器 设置-关于-软件更新 检查更新,或在 Releases 页面下载) / I confirm that I am using the latest PCL CE version on the current update channel. If not, this issue may be closed directly. To update, check for updates in Settings → About → Updates, or download the latest version from the Releases page.
  • [x] 我确认会详细描述我所遇到的问题,并附上日志和截图,而不是随便填点东西敷衍了事 / I will describe the problem in detail, attach logs and screenshots, and avoid submitting vague or incomplete information.
  • [x] 我确认已亲自复现并核实所报告的问题;如未能复现,我已在描述中明确说明未确认的部分。Issue 中的描述、日志和截图均为真实内容,未直接提交 AI 生成的未经核实内容 / I confirm that I have personally reproduced and verified the reported problem. If I could not reproduce it, I have clearly stated which parts remain unconfirmed in the description. The description, logs, and screenshots are genuine, and I have not submitted unverified AI-generated content.

AI 使用情况 / AI Usage

未使用 / Not used

AI 工具与核实说明 / AI Tools and Verification

无

描述 / Description

在版权声明、法律信息等信息板块的超链接下划线并没有连在一起。空格使下划线被隔开(也可能是刻意的设计),但在连续的文本的超链接中下划线仍然断断续续

image

重现步骤 / Steps to Reproduce

1.点击设置 2.点击软件信息

日志与附件 / Logs & Attachments

Launch-2026-11-20-170908882.log

TheMyceliumOfAntan avatar Nov 20 '26 09:11 TheMyceliumOfAntan

这似乎是Avalonia的问题:AvaloniaUI/Avalonia#19406

Avalonia 的 TextDecoration 不是直接在文字下方画一条直线,而是用每个字形的轮廓和“下划线所在的那条水平带”求交,再按交集逐段画出来(Avalonia/src/Avalonia.Base/Media/TextDecoration.cs,glyphRun.GetIntersections(...))

如果要修的话直接手动加一条 1px Border就解决了?

TheMyceliumOfAntan avatar Nov 20 '26 09:11 TheMyceliumOfAntan