Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make titlebar opaque while fullscreen #39779

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions shell/browser/native_window_mac.mm
Expand Up @@ -1721,6 +1721,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 @@ -1730,6 +1733,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