Skip to content

feat: menu-bar tray app + compact UI refresh#6

Draft
Cmochance wants to merge 1 commit into
mainfrom
feat/menu-bar-app-ui-refresh
Draft

feat: menu-bar tray app + compact UI refresh#6
Cmochance wants to merge 1 commit into
mainfrom
feat/menu-bar-app-ui-refresh

Conversation

@Cmochance

Copy link
Copy Markdown
Owner

本地积累的一批改动先提交存档,待后续处理(未经真机逐维视觉细调,先开 draft)。

Rust / Tauri

  • macOS menu-bar 形态:ActivationPolicy::Accessory 隐藏 Dock 图标,托盘图标提供 Show Window / Quit,左键点击唤出窗口。
  • 关窗口不退出:CloseRequested 改为 hide(),后台 CDP monitor 继续跑;真正退出只走托盘 Quit。
  • 窗口改 560x640 紧凑尺寸,transparent + sidebar vibrancy + hidden title bar(Cargo features 加 macos-private-apitray-icon)。

Frontend

  • AgentSelector + StatusBar 合并成单个 TopBar
  • 新增 Icon.svelte(内联 SVG 图标集),去掉 Google Fonts CDN 外链。
  • 硬编码 Tailwind 颜色迁移到 app.css 的 CSS 变量令牌(--ink / --accent / --fill-hover …),UI 跟随窗口材质。
  • ThemeGrid 固定 3 列 + 分页(每页 9 个);UploadCard 删除,上传入口移到 TopBar。

Docs

  • docs/research/:竞品调研 roadmap + Antigravity 改进方案。
  • docs/linear/changli.jpg:Linear 主题参考图。

验证

  • npm run build 通过,web/ 产物 hash 与提交内容一致。
  • cargo fmt --check 通过;cargo clippy 未在本地跑(本机已清 src-tauri/target 腾空间),交给 CI。

由 Claude 协助整理提交。

🤖 Generated with Claude Code

Rust / Tauri:
- Run as a macOS menu-bar (Accessory) app: no Dock icon, tray icon with
  Show Window / Quit, left-click to reveal.
- Closing the window hides instead of quitting so the background CDP
  monitor keeps running; Quit is only via the tray item.
- Window: 560x640 compact, transparent + "sidebar" vibrancy, hidden
  title bar (macos-private-api + tray-icon features).

Frontend:
- Replace AgentSelector + StatusBar header with a single TopBar.
- New Icon.svelte (inline SVG set); drop the Google Fonts CDN link.
- Move ad-hoc Tailwind colours to CSS variable tokens (--ink, --accent,
  --fill-hover, ...) in app.css so the UI follows the window material.
- ThemeGrid: fixed 3-column layout with pagination (9 per page);
  UploadCard removed, upload now lives in TopBar.

Docs:
- docs/research/: competitive research + Antigravity improvement notes.
- docs/linear/changli.jpg: Linear theme reference shot.

Frontend build verified (vite build, web/ assets regenerated);
cargo fmt --check clean, clippy left to CI.
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