mirror of
https://github.com/atom/atom.git
synced 2026-01-27 07:47:58 -05:00
explicitly check for platform being darwin before applying titleBarStyle
This commit is contained in:
@@ -23,7 +23,6 @@ class AtomWindow
|
||||
options =
|
||||
show: false
|
||||
title: 'Atom'
|
||||
titleBarStyle: 'hidden'
|
||||
# Add an opaque backgroundColor (instead of keeping the default
|
||||
# transparent one) to prevent subpixel anti-aliasing from being disabled.
|
||||
# We believe this is a regression introduced with Electron 0.37.3, and
|
||||
@@ -41,6 +40,9 @@ class AtomWindow
|
||||
if process.platform is 'linux'
|
||||
options.icon = @constructor.iconPath
|
||||
|
||||
if process.platform is 'darwin'
|
||||
options.titleBarStyle = 'hidden'
|
||||
|
||||
@browserWindow = new BrowserWindow options
|
||||
global.atomApplication.addWindow(this)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user