master
yutent 2024-01-03 18:38:19 +08:00
parent 0029d2cbe3
commit c062258901
1 changed files with 10 additions and 13 deletions

View File

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