From 0938ea1a3d13dcea7c591d56a7f7dcde09685f6a Mon Sep 17 00:00:00 2001 From: npezza93 Date: Sun, 20 May 2018 09:52:04 -0400 Subject: [PATCH] Fix deprecated hidden-inset title bar style As of https://github.com/electron/electron/pull/11975 the hidden-inset titleBarStyle has been removed so the custom-inset title bar option renders a normal title bar which is not desired. --- src/main-process/atom-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main-process/atom-window.js b/src/main-process/atom-window.js index f8b158934..2207f627e 100644 --- a/src/main-process/atom-window.js +++ b/src/main-process/atom-window.js @@ -51,7 +51,7 @@ class AtomWindow extends EventEmitter { // taskbar's icon. See https://github.com/atom/atom/issues/4811 for more. if (process.platform === 'linux') options.icon = ICON_PATH if (this.shouldAddCustomTitleBar()) options.titleBarStyle = 'hidden' - if (this.shouldAddCustomInsetTitleBar()) options.titleBarStyle = 'hidden-inset' + if (this.shouldAddCustomInsetTitleBar()) options.titleBarStyle = 'hiddenInset' if (this.shouldHideTitleBar()) options.frame = false this.browserWindow = new BrowserWindow(options)