Merge pull request #17 from peres07/fix/add-min-width-and-min-height-to-app-window

fix: add a minWidth and minHeight in app window
This commit is contained in:
Hydra 2024-04-14 23:01:05 -03:00 committed by GitHub
commit 03ee6b88e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,6 +16,8 @@ export class WindowManager {
this.mainWindow = new BrowserWindow({ this.mainWindow = new BrowserWindow({
width: 1200, width: 1200,
height: 720, height: 720,
minWidth: 1024,
minHeight: 540,
titleBarStyle: "hidden", titleBarStyle: "hidden",
icon: path.join(__dirname, "..", "..", "images", "icon.png"), icon: path.join(__dirname, "..", "..", "images", "icon.png"),
trafficLightPosition: { x: 16, y: 16 }, trafficLightPosition: { x: 16, y: 16 },