From c06225890158df4d67a7b688229de2ae92ebe838 Mon Sep 17 00:00:00 2001 From: yutent Date: Wed, 3 Jan 2024 18:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tools/windows.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/tools/windows.js b/src/tools/windows.js index 4831eb9..3850729 100644 --- a/src/tools/windows.js +++ b/src/tools/windows.js @@ -13,18 +13,19 @@ exports.createMainWindow = function (icon) { // 创建浏览器窗口 let win = new BrowserWindow({ title: '', - width: 320, - height: 240, - frame: false, - resizable: false, - maximizable: false, + width: 960, + height: 640, + minWidth: 960, + minHeight: 640, + // frame: false, + // resizable: false, + // maximizable: false, icon, - transparent: true, - vibrancy: 'dark', webPreferences: { webSecurity: false, - experimentalFeatures: true, - preload: './inject.js' + preload: './inject.js', + defaultEncoding: 'UTF-8', + spellcheck: false }, show: false }) @@ -33,10 +34,6 @@ exports.createMainWindow = function (icon) { win.loadURL('app://local/index.html') - // createAppTray(win) - // ctrlTrayBtn(win) - // createLrcTray(win) - win.on('ready-to-show', _ => { win.show() win.openDevTools()