From fe9e124f698e5608b0bc73fefa09a50022fd6897 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 1 Nov 2015 21:29:43 +0900 Subject: [PATCH] Add 'title-bar-style' option to GitHubElectron.BrowserWindow The documentation is below: https://github.com/atom/electron/blob/master/docs/api/browser-window.md#new-browserwindowoptions --- github-electron/github-electron-main-tests.ts | 6 +++++- github-electron/github-electron.d.ts | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/github-electron/github-electron-main-tests.ts b/github-electron/github-electron-main-tests.ts index 4e359e257b..2fa0c93f41 100644 --- a/github-electron/github-electron-main-tests.ts +++ b/github-electron/github-electron-main-tests.ts @@ -145,7 +145,11 @@ ipc.on('online-status-changed', (event: any, status: any) => { // https://github.com/atom/electron/blob/master/docs/api/synopsis.md app.on('ready', () => { - window = new BrowserWindow({ width: 800, height: 600 }); + window = new BrowserWindow({ + width: 800, + height: 600, + 'title-bar-style': 'hidden-inset', + }); window.loadUrl('https://github.com'); }); diff --git a/github-electron/github-electron.d.ts b/github-electron/github-electron.d.ts index 92fff65f71..0b4ed6bf4a 100644 --- a/github-electron/github-electron.d.ts +++ b/github-electron/github-electron.d.ts @@ -515,6 +515,7 @@ declare module GitHubElectron { 'shared-worker'?: boolean; 'direct-write'?: boolean; 'page-visibility'?: boolean; + 'title-bar-style'?: string; } interface Rectangle {