Browse Source
Merge pull request #291 from LN-Zap/fix/center-window
fix(BrowserWindow): fix width/height
renovate/lint-staged-8.x
JimmyMow
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
7 deletions
-
app/main.dev.js
-
BIN
resources/icon.png
|
|
@ -206,16 +206,13 @@ app.on('ready', async () => { |
|
|
|
await installExtensions() |
|
|
|
} |
|
|
|
|
|
|
|
const icon = path.join(__dirname, '..', 'resources', 'icon.icns') |
|
|
|
console.log('icon: ', icon) |
|
|
|
mainWindow = new BrowserWindow({ |
|
|
|
show: false, |
|
|
|
titleBarStyle: 'hidden', |
|
|
|
width: 700, |
|
|
|
height: 1100, |
|
|
|
minHeight: 700, |
|
|
|
minWidth: 1100, |
|
|
|
icon |
|
|
|
width: 950, |
|
|
|
height: 600, |
|
|
|
minWidth: 950, |
|
|
|
minHeight: 425 |
|
|
|
}) |
|
|
|
|
|
|
|
mainWindow.loadURL(`file://${__dirname}/app.html`) |
|
|
|
Width:
|
Height:
|
Size: 24 KiB
|