Skip to content

Commit

Permalink
fix: make titlebar opaque while fullscreen (#39759)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Sep 7, 2023
1 parent 5fa9dee commit 0b44f43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shell/browser/native_window_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1692,6 +1692,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 @@ -1701,6 +1704,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 0b44f43

Please sign in to comment.