fix: make titlebar opaque while fullscreen (#39781)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
This commit is contained in:
trop[bot]
2023-09-11 09:35:10 +02:00
committed by GitHub
parent 2cc8b33fe2
commit 539ebf049a

View File

@@ -1696,6 +1696,9 @@ void NativeWindowMac::NotifyWindowEnterFullScreen() {
// Restore the window title under fullscreen mode.
if (buttons_proxy_)
[window_ setTitleVisibility:NSWindowTitleVisible];
if (transparent() || !has_frame())
[window_ setTitlebarAppearsTransparent:NO];
}
void NativeWindowMac::NotifyWindowLeaveFullScreen() {
@@ -1705,6 +1708,9 @@ void NativeWindowMac::NotifyWindowLeaveFullScreen() {
[buttons_proxy_ redraw];
[buttons_proxy_ setVisible:YES];
}
if (transparent() || !has_frame())
[window_ setTitlebarAppearsTransparent:YES];
}
void NativeWindowMac::NotifyWindowWillEnterFullScreen() {