From c789f59b67961f4646e7faa1b34d5f2b4a2eb470 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 27 Jan 2023 15:25:34 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=9B=B4=E6=94=B9=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E7=95=8C=E9=9D=A2=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/electron/main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/electron/main.js b/app/electron/main.js index 847b39bda..47105e224 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -131,8 +131,8 @@ const boot = () => { let defaultHeight let workArea try { - defaultWidth = screen.getPrimaryDisplay().size.width * 4 / 5 - defaultHeight = screen.getPrimaryDisplay().workAreaSize.height * 4 / 5 + defaultWidth = screen.getPrimaryDisplay().size.width + defaultHeight = screen.getPrimaryDisplay().workAreaSize.height workArea = screen.getPrimaryDisplay().workArea } catch (e) { console.error(e) @@ -807,8 +807,8 @@ app.whenReady().then(() => { if (firstOpen) { const firstOpenWindow = new BrowserWindow({ - width: screen.getPrimaryDisplay().size.width / 2, - height: screen.getPrimaryDisplay().workAreaSize.height / 2, + width: screen.getPrimaryDisplay().size.width * 0.6, + height: screen.getPrimaryDisplay().workAreaSize.height * 0.8, frame: false, icon: path.join(appDir, 'stage', 'icon-large.png'), transparent: 'linux' !== process.platform,