Repository navigation
feat: macOS 无边框窗口恢复原生红绿灯 - #352
Open
EveSunMaple wants to merge 4 commits into
Open
EveSunMaple wants to merge 4 commits into
EveSunMaple wants to merge 4 commits into
Conversation
This branch has not been deployed
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.
改动类型
是否包含破坏性变更
改动说明
macOS 无边框窗口此前使用自绘的窗口控制按钮,本次改为使用系统原生红绿灯(左上角),更符合 macOS 用户的使用习惯。
titleBarStyle: "hidden"+trafficLightPosition: { x: 24, y: 24 },左侧与上方 24px 留白一致,并与 64px 顶栏内的 40px 控件垂直居中;Windows / Linux 保持自绘按钮不变usesNativeTrafficLights/showCustomControls状态,macOS 下隐藏自绘按钮与分隔线关联 Issue
Closes #349
测试情况
pnpm dev验证:红绿灯位置、拖拽、最小化 / 最大化 / 关闭正常;普通展开 / 收起、灵动悬浮(展开与收起)、全屏播放器、图片外观模式均无遮挡pnpm typecheck、pnpm lint通过截图 / 录屏
主界面(展开)
侧边栏收起
灵动悬浮
全屏播放器顶栏
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native)dev分支提交