diff --git a/app/main.js b/app/main.js index 69571f2c3..0b12858a8 100644 --- a/app/main.js +++ b/app/main.js @@ -14,6 +14,8 @@ function createWindow() { width: width > 2000 ? Math.floor(width * 0.5) : width - 250, height: height > 1000 ? Math.floor(height * 0.7) : height - 150, center: true, + frame: false, + titleBarStyle: 'hidden', webPreferences: { // Avoid app throttling when Electron is in background backgroundThrottling: false, @@ -24,6 +26,10 @@ function createWindow() { win.on('blur', () => win.webContents.send('blur')); win.on('focus', () => win.webContents.send('focus')); + if (process.platform === 'darwin') { + win.setSheetOffset(40); + } + const template = [ { label: 'Edit', diff --git a/src/components/header/header.less b/src/components/header/header.less index fe98ca38a..5e5b9f944 100644 --- a/src/components/header/header.less +++ b/src/components/header/header.less @@ -1,5 +1,6 @@ .header { margin-top: 5px; + -webkit-user-select: none; h2 { margin: 5px 0 diff --git a/src/components/loadingBar/loadingBar.less b/src/components/loadingBar/loadingBar.less index f3fd331de..6393bdadb 100644 --- a/src/components/loadingBar/loadingBar.less +++ b/src/components/loadingBar/loadingBar.less @@ -1,7 +1,7 @@ loading-bar { position: fixed; width: 100%; - top: 0; + top: -2px; left: 0; } diff --git a/src/index.less b/src/index.less index 71be6d58f..f6d0e09b0 100644 --- a/src/index.less +++ b/src/index.less @@ -5,6 +5,8 @@ body { min-width: 320px; + -webkit-app-region: drag; + padding-top: 22px; & > main, & > main > md-content { height: 100%; } @@ -24,6 +26,10 @@ login, login md-card { height: auto; } +button { + -webkit-app-region: no-drag; +} + body { .logout { margin-right: 0;