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
parent
commit
6500f02c2c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      app/main.dev.js
  2. BIN
      resources/icon.png

11
app/main.dev.js

@ -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`)

BIN
resources/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Loading…
Cancel
Save