From 3f16aadac209539d39e59a01dbbe72925328c380 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 24 Sep 2018 22:22:39 -0700 Subject: [PATCH] fix: inconsistent titleBarStyle on transparent fullscreen --- atom/browser/native_window_mac.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index 0397c62d8df94..4d1f412ed25e4 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -380,6 +380,7 @@ - (void)windowDidEnterFullScreen:(NSNotification*)notification { // Set window style to hide the toolbar, otherwise the toolbar will show in // fullscreen mode. + [window setTitlebarAppearsTransparent:NO]; shell_->SetStyleMask(true, NSFullSizeContentViewWindowMask); } } @@ -397,6 +398,7 @@ - (void)windowWillExitFullScreen:(NSNotification*)notification { // Turn off the style for toolbar. if (base::mac::IsAtLeastOS10_10() && shell_->title_bar_style() == atom::NativeWindowMac::HIDDEN_INSET) { + [window setTitlebarAppearsTransparent:YES]; shell_->SetStyleMask(false, NSFullSizeContentViewWindowMask); } }