Skip to content

Commit

Permalink
🔧 Eh, let's do it for all the types
Browse files Browse the repository at this point in the history
  • Loading branch information
felixrieseberg committed Nov 19, 2017
1 parent e3b6271 commit daad465
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions atom/browser/native_window_mac.mm
Expand Up @@ -962,13 +962,14 @@ static bool FromV8(v8::Isolate* isolate, v8::Handle<v8::Value> val,
// We will manage window's lifetime ourselves.
[window_ setReleasedWhenClosed:NO];

// Hide the title bar.
if (title_bar_style_ == HIDDEN_INSET || title_bar_style_ == HIDDEN) {
// Hide the title bar background
if (title_bar_style_ != NORMAL) {
if (base::mac::IsAtLeastOS10_10()) {
[window_ setTitlebarAppearsTransparent:YES];
}
}

// Hide the title bar.
if (title_bar_style_ == HIDDEN_INSET) {
if (base::mac::IsAtLeastOS10_10()) {
base::scoped_nsobject<NSToolbar> toolbar(
Expand Down

0 comments on commit daad465

Please sign in to comment.