Repository navigation
feat(desktop): Windows 沉浸式窗口(对齐 macOS Overlay) - #1
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
在 Windows 上对齐 macOS 的沉浸式 Overlay 标题栏体验:去掉系统标题栏,内容铺满窗口,并在现有顶部拖拽区托管最小化 / 最大化 / 关闭按钮。
Changes
#[cfg(windows)]对 main / renamer 窗口decorations(false);macOS 仍走titleBarStyle: Overlay+ traffic lightsminimize/toggle-maximize/closeWindowControls+isImmersiveWindow();主壳与重命名窗口在 Windows 显示自定义 caption;CSS 变量控制 titlebar / caption 留白Notes
windowEffectsTest plan