diff options
author | 2018-02-23 12:12:54 +0100 | |
---|---|---|
committer | 2018-02-23 12:12:54 +0100 | |
commit | ae1014ed7d8f2532c4ec33b530662665dc16b141 (patch) | |
tree | 73f936db1a3bb797da6e29db3f53ad8e2a0f2678 /src/index.js | |
parent | Merge branch 'fix/copy-paste' into feature/titlebar (diff) | |
download | ferdium-app-ae1014ed7d8f2532c4ec33b530662665dc16b141.tar.gz ferdium-app-ae1014ed7d8f2532c4ec33b530662665dc16b141.tar.zst ferdium-app-ae1014ed7d8f2532c4ec33b530662665dc16b141.zip |
complete titlebar for Windows & Linux
Diffstat (limited to 'src/index.js')
-rw-r--r-- | src/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js index e8818af96..2acb8e2cb 100644 --- a/src/index.js +++ b/src/index.js | |||
@@ -4,7 +4,7 @@ import path from 'path'; | |||
4 | 4 | ||
5 | import windowStateKeeper from 'electron-window-state'; | 5 | import windowStateKeeper from 'electron-window-state'; |
6 | 6 | ||
7 | import { isDevMode, isWindows } from './environment'; | 7 | import { isDevMode, isMac, isWindows } from './environment'; |
8 | import ipcApi from './electron/ipc-api'; | 8 | import ipcApi from './electron/ipc-api'; |
9 | import Tray from './lib/Tray'; | 9 | import Tray from './lib/Tray'; |
10 | import Settings from './electron/Settings'; | 10 | import Settings from './electron/Settings'; |
@@ -72,7 +72,7 @@ const createWindow = () => { | |||
72 | height: mainWindowState.height, | 72 | height: mainWindowState.height, |
73 | minWidth: 600, | 73 | minWidth: 600, |
74 | minHeight: 500, | 74 | minHeight: 500, |
75 | titleBarStyle: process.env.OS_PLATFORM || process.platform === 'win32' ? '' : 'hidden', | 75 | titleBarStyle: isMac ? 'hidden' : '', |
76 | frame: false, | 76 | frame: false, |
77 | backgroundColor: '#3498db', | 77 | backgroundColor: '#3498db', |
78 | autoHideMenuBar: true, | 78 | autoHideMenuBar: true, |