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()