Skip to content

feat: add configurable notch height modes#80

Merged
wxtsky merged 1 commit intowxtsky:mainfrom
Hatiaa:codex/add-notch-height-mode
Apr 13, 2026
Merged

feat: add configurable notch height modes#80
wxtsky merged 1 commit intowxtsky:mainfrom
Hatiaa:codex/add-notch-height-mode

Conversation

@Hatiaa
Copy link
Copy Markdown
Contributor

@Hatiaa Hatiaa commented Apr 13, 2026

动机

如下图,我的电脑是Macbook Air 15-inch,运行CodeIsland时面板和notch下沿有 1 pixel 的差距,难受
a7fad3840aacf5e35847df74d58c7149

概要

  • 新增 notch 高度模式设置,支持:
    • 对齐 notch 高度
    • 对齐 menubar 高度
    • 自定义高度
  • 在外观设置页增加对应选项和自定义高度滑块
  • 调整高度计算逻辑,根据用户选择动态决定面板顶部高度
  • 设置变更后立即重建当前面板,使新高度无需重启即可生效

目的

有些机器上系统计算出的 notch 高度和实际视觉对齐会有轻微误差,导致面板与 notch 边缘不能完全贴合。这个改动提供一个和 boring.notch 类似的高度对齐能力,让用户可以按自己的屏幕观感微调。

验证

  • 基于最新 main 同步后实现
  • swift build 通过
  • 重新构建并启动应用,功能可正常运行

Copy link
Copy Markdown
Owner

@wxtsky wxtsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 编译通过,测试通过,代码干净,三语翻译齐全。

@wxtsky wxtsky merged commit 60874c1 into wxtsky:main Apr 13, 2026
nguyenvanduocit pushed a commit to nguyenvanduocit/CodeIsland that referenced this pull request Apr 15, 2026
- PR wxtsky#80 MERGED: configurable notch height modes → T-026
- PR wxtsky#86 open: auto-collapse after session jump → T-027 (watch)
- PR wxtsky#76 open: message input bar + TerminalWriter → T-028 (watch)
- Issue wxtsky#84: Ghostty quick terminal activation bug → T-029
- Note PR wxtsky#69 and wxtsky#70 now merged upstream (T-024, T-025 ready)
- vibe-island: no new code changes

https://claude.ai/code/session_01Hoa4hooNsWEnv8vC42x8G3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants