🔧 setTitlebarAppearsTransparent=YES

This commit is contained in:
Felix Rieseberg 2017-11-18 20:00:01 -08:00
parent f469059e90
commit e3b6271806

View file

@ -963,9 +963,14 @@ NativeWindowMac::NativeWindowMac(
[window_ setReleasedWhenClosed:NO];
// Hide the title bar.
if (title_bar_style_ == HIDDEN_INSET) {
if (title_bar_style_ == HIDDEN_INSET || title_bar_style_ == HIDDEN) {
if (base::mac::IsAtLeastOS10_10()) {
[window_ setTitlebarAppearsTransparent:YES];
}
}
if (title_bar_style_ == HIDDEN_INSET) {
if (base::mac::IsAtLeastOS10_10()) {
base::scoped_nsobject<NSToolbar> toolbar(
[[NSToolbar alloc] initWithIdentifier:@"titlebarStylingToolbar"]);
[toolbar setShowsBaselineSeparator:NO];