fix: inconsistent titleBarStyle on transparent fullscreen (#14792)

This commit is contained in:
Shelley Vohr
2018-09-25 06:58:32 -07:00
committed by John Kleinschmidt
parent 005a65da79
commit 503b488153

View File

@@ -380,6 +380,7 @@ bool ScopedDisableResize::disable_resize_ = false;
// 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 @@ bool ScopedDisableResize::disable_resize_ = false;
// 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);
}
}