Repository navigation
feat: 文字大小 ⌘± 步进、15 档梯子与图标/顶栏缩放修复 - #287
Merged
Merged
Conversation
- 菜单新增 放大文字⌘+ / 缩小文字⌘− / 重置⌥⌘0,逐档步进并在端点禁用 - TextScale 扩为 90%–160% 每 5% 一档共 15 档,首发五档 raw 值保留,旧快照兼容 - WeiBeiIconButtonStyle 按钮框随档位缩放,修复大档位图标撑满裁边 - 顶栏高度/胶囊高度/状态横幅与浮动条避让/空态纸面同步随档缩放 - 空态问候「早安,宜开卷」基准 16→25.5(compact 14.5→23),原最大档视觉成为标准档
taekchef
marked this pull request as ready for review
August 22, 2026 00:43
This was referenced Aug 22, 2026
wang-kaopu
pushed a commit
to wang-kaopu/weibei
that referenced
this pull request
Aug 23, 2026
固定 100ms 睡眠在满载 CI runner 上会被 20ms 空闲计时器超出 主线程调度窗口,今天三次假失败(WroughtMind#287/WroughtMind#306/WroughtMind#311)。改为最长 2s 的 10ms 轮询:正常路径仍在一个空闲延迟内返回,只有真实失败才 等满时限;断言语义(恰好一条、最小修订 2)不变。
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 #279 验收反馈:五档偏少且只能进设置改;大档位下顶部三个面板切换按钮视觉不完整;空态页「早安,宜开卷」基准字号偏小。
改动
size改为size × 档位倍率——图标字形本就随档缩放,框不缩导致大档位撑满裁边;此修复对全 App 所有图标按钮生效。共享核心文件占用
Sources/WeiBei/App/WeiBeiApp.swift:+20(菜单三项)。负责人任务:本 PR。预计释放条件:合并即释放。Sources/WeiBei/Stores/WorkspaceStore.swift:未动(0 行)。Package.swift/script//.github/:未动。验证
swift build✅;swift run WeiBeiSelfCheck✅(含档位持久化往返与旧快照兼容场景)swift test交 CI:首跑因既有时序型测试testDirtyInputSchedulesOneIdleSnapshot(20ms 延迟/100ms 等待窗口)在满载 runner 上假失败,与本次纯视图层改动无关;重跑通过 ✅(近 4 次可查日志的 CI 中该测试仅此一次失败)冒烟(用户验收)
⌘+ / ⌘− 连按:界面文字与图标按钮 5% 一档步进,顶部三个面板切换按钮在 160% 下完整不裁边;⌥⌘0 一步回标准;空态页「早安,宜开卷」标准档≈旧版最大档的大小。