fix: inconsistent titleBarStyle on transparent fullscreen (#14765)
This commit is contained in:
parent
50a4a8e9c3
commit
c7b91acf41
1 changed files with 2 additions and 0 deletions
|
@ -212,6 +212,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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -230,6 +231,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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue