1new BrowserWindow({
2 width: 800, height: 600,
3 minHeight: 300,
4 minWidth: 300,
5 frame:false
6})
1const screenElectron = electron.screen;
2const display = screenElectron.getPrimaryDisplay();
3const dimensions = display.workAreaSize;
4mainWindow = new BrowserWindow({
5 width: parseInt(dimensions.width * 0.8),
6 height: parseInt(dimensions.height * 0.8),
7 minWidth: parseInt(dimensions.width * 0.8),
8 minHeight: parseInt(dimensions.height * 0.8),
9 maxWidth: dimensions.width,
10 maxHeight: dimensions.height,
11 icon: `${__dirname}/assets/icon.ico`
12 });
13