Merge pull request #9798 from electron/tonyganch/10.13-transparent-titlebar
Fix invisible titlebar on macOS 10.13
This commit is contained in:
commit
3cc0429388
1 changed files with 1 additions and 3 deletions
|
@ -899,9 +899,7 @@ NativeWindowMac::NativeWindowMac(
|
||||||
if (transparent() || !has_frame()) {
|
if (transparent() || !has_frame()) {
|
||||||
if (base::mac::IsAtLeastOS10_10()) {
|
if (base::mac::IsAtLeastOS10_10()) {
|
||||||
// Don't show title bar.
|
// Don't show title bar.
|
||||||
if (title_bar_style_ == CUSTOM_BUTTONS_ON_HOVER) {
|
[window_ setTitlebarAppearsTransparent:YES];
|
||||||
[window_ setTitlebarAppearsTransparent:YES];
|
|
||||||
}
|
|
||||||
[window_ setTitleVisibility:NSWindowTitleHidden];
|
[window_ setTitleVisibility:NSWindowTitleHidden];
|
||||||
}
|
}
|
||||||
// Remove non-transparent corners, see http://git.io/vfonD.
|
// Remove non-transparent corners, see http://git.io/vfonD.
|
||||||
|
|
Loading…
Reference in a new issue