Skip to content

Commit

Permalink
fix: make titlebar opaque while fullscreen (#39780)
Browse files Browse the repository at this point in the history
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
  • Loading branch information
trop[bot] and MarshallOfSound committed Sep 9, 2023
1 parent ab272cb commit 325549f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shell/browser/native_window_mac.mm
Expand Up @@ -1723,6 +1723,9 @@ void ReorderChildWindowAbove(NSWindow* child_window, NSWindow* other_window) {
// Restore the window title under fullscreen mode.
if (buttons_proxy_)
[window_ setTitleVisibility:NSWindowTitleVisible];

if (transparent() || !has_frame())
[window_ setTitlebarAppearsTransparent:NO];
}

void NativeWindowMac::NotifyWindowLeaveFullScreen() {
Expand All @@ -1732,6 +1735,9 @@ void ReorderChildWindowAbove(NSWindow* child_window, NSWindow* other_window) {
[buttons_proxy_ redraw];
[buttons_proxy_ setVisible:YES];
}

if (transparent() || !has_frame())
[window_ setTitlebarAppearsTransparent:YES];
}

void NativeWindowMac::NotifyWindowWillEnterFullScreen() {
Expand Down

0 comments on commit 325549f

Please sign in to comment.