Skip to content

feat(desktop): Windows 沉浸式窗口(对齐 macOS Overlay) - #1

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/windows-immersive-window-3ce0
Jul 25, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/windows-immersive-window-3ce0

Conversation

@robeshell

Copy link
Copy Markdown
Owner

Summary

在 Windows 上对齐 macOS 的沉浸式 Overlay 标题栏体验:去掉系统标题栏,内容铺满窗口,并在现有顶部拖拽区托管最小化 / 最大化 / 关闭按钮。

Changes

  • Rust:#[cfg(windows)] 对 main / renamer 窗口 decorations(false);macOS 仍走 titleBarStyle: Overlay + traffic lights
  • Capabilities:补充 minimize / toggle-maximize / close
  • Frontend:新增 WindowControls + isImmersiveWindow();主壳与重命名窗口在 Windows 显示自定义 caption;CSS 变量控制 titlebar / caption 留白

Notes

  • macOS / Linux 行为不变
  • 本环境无法实机验证 Windows UI;请在 Windows 上确认拖拽、双击最大化、Snap、重命名窗口关闭是否正常
  • 未引入 Mica/Acrylic;若需要再加 windowEffects

Test plan

  • Windows:主窗口无系统标题栏,内容顶到边缘,右上角按钮可用
  • Windows:顶部区域可拖动窗口
  • Windows:重命名窗口同样沉浸式且可关闭
  • macOS:Overlay + traffic lights 不受影响
Open in Web Open in Cursor 

cursoragent and others added 2 commits July 25, 2026 07:42
Match macOS Overlay titlebar by dropping native decorations on Windows
and hosting caption controls in the existing top drag region.

Co-authored-by: robeshell <robeshell@users.noreply.github.com>
Co-authored-by: robeshell <robeshell@users.noreply.github.com>
@cursor
cursor Bot merged commit c1f19f3 into main Jul 25, 2026
0 of 3 checks passed
@robeshell
robeshell deleted the cursor/windows-immersive-window-3ce0 branch July 31, 2026 22:50
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