fix: inconsistent titleBarStyle on transparent fullscreen (#14790)

This commit is contained in:
trop[bot] 2018-09-25 12:03:54 -07:00 committed by Shelley Vohr
parent 05a429075e
commit 8574a55bd8

View file

@ -203,6 +203,7 @@
// Set window style to hide the toolbar, otherwise the toolbar will show // Set window style to hide the toolbar, otherwise the toolbar will show
// in fullscreen mode. // in fullscreen mode.
[window setTitlebarAppearsTransparent:NO];
shell_->SetStyleMask(true, NSFullSizeContentViewWindowMask); shell_->SetStyleMask(true, NSFullSizeContentViewWindowMask);
} }
} }
@ -221,6 +222,7 @@
// Turn off the style for toolbar. // Turn off the style for toolbar.
if (shell_->title_bar_style() == atom::NativeWindowMac::HIDDEN_INSET) { if (shell_->title_bar_style() == atom::NativeWindowMac::HIDDEN_INSET) {
shell_->SetStyleMask(false, NSFullSizeContentViewWindowMask); shell_->SetStyleMask(false, NSFullSizeContentViewWindowMask);
[window setTitlebarAppearsTransparent:YES];
} }
} }
} }