Skip to content

Commit

Permalink
Set bar hidden-inset and draggable
Browse files Browse the repository at this point in the history
  • Loading branch information
1000ch committed Nov 13, 2016
1 parent 748cce5 commit 75db676
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions browser.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#header {
padding-left: 80px !important;
-webkit-app-region: drag;
}
Empty file added browser.js
Empty file.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

'use strict';
const path = require('path');
const fs = require('fs');
Expand Down Expand Up @@ -44,6 +43,7 @@ function createMainWindow() {
icon: process.platform === 'linux' && path.join(__dirname, 'static/Icon.png'),
minWidth: 480,
minHeight: 480,
titleBarStyle: 'hidden-inset',
autoHideMenuBar: true,
backgroundColor: '#fff',
webPreferences: {
Expand Down Expand Up @@ -90,7 +90,7 @@ app.on('ready', () => {
const page = mainWindow.webContents;

page.on('dom-ready', () => {
//page.insertCSS(fs.readFileSync(path.join(__dirname, 'browser.css'), 'utf8'));
page.insertCSS(fs.readFileSync(path.join(__dirname, 'browser.css'), 'utf8'));
mainWindow.show();
});

Expand Down

0 comments on commit 75db676

Please sign in to comment.