Repository navigation
新增阅读设置:字体背景、译文停留时间与英文占比阈值 - #1
Merged
Merged
Conversation
qhmiao
marked this pull request as ready for review
October 14, 2026 06:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
现有浮层的字体、背景和译文停留时间固定在代码中,混合选区也无法按英文比例筛选。本 PR 在托盘新增“阅读设置…”窗口,保存后立即应用并持久化到
settings.json,让用户按阅读习惯调整以下三项。修改内容
#RRGGBB指定。自动选择文字颜色,保持至少 4.5:1 的对比度,并提供即时示例预览。abc中文为 60%,在 60% 时触发、61% 时不触发,追加标点和数字不改变结果。新增字段默认值保持兼容:
BubbleFontFamily="Microsoft YaHei UI"、BubbleFontSize=14、BubbleBackground=""、AutoHideSeconds=0、MinEnglishPercent=0。0% 关闭新增比例过滤,保留原有非中文语言规则;纯中文及没有文字字母的选区仍跳过。旧配置缺失新字段时沿用原行为,非法阅读选项回退对应默认值。表单校验失败、保存失败及取消均不应用修改;恢复默认值只更新预览,点击保存才生效。保存使用临时文件原子替换,保留自动翻译开关等其他已有配置。
验证