Skip to content

fix(mac): persist custom dock icon & fix sidebar divider overlap#1167

Open
cjvayhxy-dev wants to merge 1 commit into
proma-ai:mainfrom
cjvayhxy-dev:fix/persist-custom-dock-icon
Open

fix(mac): persist custom dock icon & fix sidebar divider overlap#1167
cjvayhxy-dev wants to merge 1 commit into
proma-ai:mainfrom
cjvayhxy-dev:fix/persist-custom-dock-icon

Conversation

@cjvayhxy-dev

Copy link
Copy Markdown
Contributor

Summary

  • 图标持久化:通过 NSWorkspace.setIcon 将自定义图标写入 .app bundle,Finder/Launchpad/Dock(未运行时)也显示选中图标
  • 切回默认时清除自定义属性,恢复 bundle 内置 .icns
  • 侧边栏收起时分隔竖线从 TabBar 底部开始,避免与 traffic lights 重叠
  • TabBar 增加左侧 padding 避免第一个 tab 紧贴绿色按钮

Test plan

  • macOS:切换图标后关闭 app,确认 Dock/Finder 显示新图标
  • macOS:切回默认图标后确认恢复
  • macOS:侧边栏收起时竖线不穿过 traffic lights
  • Windows:确认无视觉变化

…th traffic lights

- Use NSWorkspace.setIcon to write custom icon to .app bundle so Finder/Launchpad/Dock show it even when app is not running
- Clear custom icon when user switches back to default (restore bundle .icns)
- Skip in dev mode (app.isPackaged guard)
- Move sidebar divider to absolute positioning inside sidebar container to avoid gradient bleed
- Start divider at top-[34px] when sidebar collapsed on macOS to avoid overlapping traffic lights
- Add pl-4 to TabBar scroll area when sidebar collapsed on macOS for spacing from green button

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant