style: 修改默认窗口大小与最小窗口大小

This commit is contained in:
Alirea
2025-09-15 14:02:00 +08:00
parent 4298961311
commit e79830565e

View File

@@ -278,12 +278,12 @@ function createWindow() {
const [x, y] = config.UI.location.split(',').map(s => parseInt(s.trim()) || 100)
mainWindow = new BrowserWindow({
width: Math.max(width, 800),
height: Math.max(height, 600),
width: Math.max(width, 1600),
height: Math.max(height, 900),
x,
y,
minWidth: 800,
minHeight: 600,
minWidth: 1600,
minHeight: 900,
icon: path.join(__dirname, '../public/AUTO-MAS.ico'),
frame: false, // 去掉系统标题栏
titleBarStyle: 'hidden', // 隐藏标题栏
@@ -1008,3 +1008,4 @@ app.on('window-all-closed', () => {
app.on('activate', () => {
if (mainWindow === null) createWindow()
})