Skip to content

修正 macOS 工作区顶栏对齐与项目配色 - #964

Merged
1lck merged 5 commits into
previewfrom
codex/macos-titlebar-alignment
Sep 28, 2026
Merged

1lck merged 5 commits into
previewfrom
codex/macos-titlebar-alignment

Conversation

@arkleselect

@arkleselect arkleselect commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

改动内容

  • 将 macOS 工作区 40pt 顶栏中的系统红黄绿按钮与项目区垂直对齐;在窗口缩放、退出全屏及欢迎页与工作区切换后重新校准位置。调整项目按钮左侧留白,使其与系统按钮的间距接近 IDEA。
  • 将工作区顶栏的 24pt Lithe Logo 改为 20pt 项目字母头像;项目切换按钮的悬停块改为 30pt 高,并移除项目、分支切换块的手型光标。
  • 统一工作区、欢迎页最近项目列表及项目切换菜单的头像绘制,删除欢迎页和切换菜单原有的两套颜色/首字母实现。按标准化项目路径选择稳定颜色,移除并重新打开项目后保持一致,也避免超过九个项目时颜色固定回退到第一色。
  • 使用 IDEA Community Islands 主题的九组头像色及明暗顶栏色生成项目光照;深色 Lithe 主题下以 85% 混色,在水平方向 600pt、垂直方向 300pt 渐隐,并按同一颜色计算面板圆角缺口,消除局部浅色亮斑。IDEA 的明暗主题共享头像色,仅顶栏光照色不同;本实现保持该对应关系。
  • 更新平台功能矩阵和生成的 Markdown/CSV,加入本次行为的验收点。

实现说明

颜色值参考 IDEA Islands 深色主题 与 IDEA 基础浅色主题。项目颜色索引采用路径稳定映射;这与 IDEA 使用项目元数据保存分配序号的方式不同,目的是复用现有项目路径身份而不增加另一套持久化状态。

CleanShot 2026-09-28 at 16 41 40 CleanShot 2026-09-28 at 18 48 19

验证

  • 针对性计时测试:4 项通过;受影响核心测试组串行运行:202 项通过。
  • ./scripts/test-macos.sh --no-parallel:1639 项、189 个测试组通过。
  • ./scripts/verify-service-boundaries.sh、./scripts/verify-runtime-bundle-immutability.sh、./scripts/verify-platform-feature-matrix-change.sh origin/preview HEAD、./scripts/verify-platform-feature-matrix.sh、测试稳定性静态检查和 git diff --check 均通过。
  • 默认并行运行 ./scripts/test-macos.sh 曾出现 59 项失败;同一完整测试集串行重跑全部通过。草稿阶段仍需在实际 macOS 窗口中对照 IDEA 核验悬停尺寸、红绿灯间距、主题光照和窗口切换。

合入最新 preview 的冲突处理(159a25dd)

@ghfind-review ghfind-review Bot added the review: medium ghfind author score; see https://ghfind.com label Sep 28, 2026
@arkleselect
arkleselect marked this pull request as ready for review September 28, 2026 11:17
1lck and others added 4 commits September 28, 2026 21:15
* feat(macos): add selectable keymap presets

* fix(macOS): resolve Eclipse keymap inheritance and Classic Stop binding

* fix(ci): allow Rust Core bridge job to finish on macOS

---------

Co-authored-by: Xiaoyumuxi <3075514079@qq.com>
* style(macos): 对齐欢迎页与 IDEA 社区版样式

* fix(macOS): restore welcome update and stable rollback actions

---------

Co-authored-by: Lichenkang <2188718831@qq.com>
@1lck
1lck merged commit 7ba56ad into preview Sep 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: medium ghfind author score; see https://ghfind.com

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants