From 99cf02fb96a530a9d983bec0f4c8de1b58aee676 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Thu, 7 Sep 2023 22:55:40 +0000 Subject: [PATCH] fix: make titlebar opaque while fullscreen Co-authored-by: Samuel Attard --- shell/browser/native_window_mac.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shell/browser/native_window_mac.mm b/shell/browser/native_window_mac.mm index e12827ed50767..6a0ff27625812 100644 --- a/shell/browser/native_window_mac.mm +++ b/shell/browser/native_window_mac.mm @@ -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() { @@ -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() {