实现窗口控制按钮覆盖层,接入Win11贴靠布局#1909
Open
yaoyaozijing wants to merge 5 commits into
Open
Conversation
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.
实现窗口控制按钮覆盖层,移除原本写在sysappbar里的关闭按钮,以避免关闭按钮随页面切换移动、以及在某些场景消失的问题
按钮图标跟随深色/浅色模式,而在播放器页面下锁定为白色;关闭按钮图标会跟随关闭时行为改变,最小化到托盘时显示为一个向下的双箭头
播放器按钮能自动避开该覆盖层,覆盖层跟随播放器UI自动显示/隐藏
最大化按钮接入了Win11贴靠布局,高分屏测试正常。
sysappbar:




播放器页面:
播放器页面按钮跟随隐藏:
win11 贴靠布局:
win11 贴靠布局参考了项目:https://github.com/luoluoqixi/flutter_windows11_snap_layouts_examples.git