Browse Source

fix(BrowserWindow): fix width/height

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
a7264ab918
  1. 13
      app/main.dev.js
  2. BIN
      resources/icon.png

13
app/main.dev.js

@ -10,7 +10,7 @@
*
* @flow
*/
import { app, BrowserWindow, ipcMain } from 'electron'
import { app, BrowserWindow, ipcMain, screen } from 'electron'
import path from 'path'
import fs from 'fs'
import { spawn } from 'child_process'
@ -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