Windows: Fullscreen (#9728)

~~This is still a work in progress, but to show the public where I am
working on it~~ Ready for review

TODO:
- [x] Justify fullscreen size to display
- [x] Record and apply restored size

Release Notes:

- N/A
This commit is contained in:
白山風露 2024-03-27 01:58:16 +09:00 committed by GitHub
parent fc5a0885f3
commit 35b39e02ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 82 additions and 9 deletions

View file

@ -104,8 +104,9 @@ impl RenderOnce for TitleBar {
.w_full()
.children(self.children),
)
.when(self.platform_style == PlatformStyle::Windows, |title_bar| {
title_bar.child(WindowsWindowControls::new(height))
})
.when(
self.platform_style == PlatformStyle::Windows && !cx.is_fullscreen(),
|title_bar| title_bar.child(WindowsWindowControls::new(height)),
)
}
}