From 39b46e126f7f2d4d8860f4189191f60ff8fbddab Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Wed, 2 Mar 2016 03:08:10 -0800 Subject: [PATCH] hidden-inset titlebar --- index.js | 2 +- main/index.css | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 94c23abf..d8462664 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,7 @@ function createMainWindow () { width: 600, height: 400, title: 'WebTorrent', - // titleBarStyle: 'hidden', + titleBarStyle: 'hidden-inset', show: false }) win.loadURL('file://' + path.join(__dirname, 'main', 'index.html')) diff --git a/main/index.css b/main/index.css index 85a34783..111af115 100644 --- a/main/index.css +++ b/main/index.css @@ -15,10 +15,12 @@ body { background: #333; font-size: 16px; line-height: 1.5em; + -webkit-app-region: drag; } a { cursor: default; + -webkit-app-region: no-drag; } body.drag::before {