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({ let win = new BrowserWindow({
title: '', title: '',
width: 320, width: 960,
height: 240, height: 640,
frame: false, minWidth: 960,
resizable: false, minHeight: 640,
maximizable: false, // frame: false,
// resizable: false,
// maximizable: false,
icon, icon,
transparent: true,
vibrancy: 'dark',
webPreferences: { webPreferences: {
webSecurity: false, webSecurity: false,
experimentalFeatures: true, preload: './inject.js',
preload: './inject.js' defaultEncoding: 'UTF-8',
spellcheck: false
}, },
show: false show: false
}) })
@ -33,10 +34,6 @@ exports.createMainWindow = function (icon) {
win.loadURL('app://local/index.html') win.loadURL('app://local/index.html')
// createAppTray(win)
// ctrlTrayBtn(win)
// createLrcTray(win)
win.on('ready-to-show', _ => { win.on('ready-to-show', _ => {
win.show() win.show()
win.openDevTools() win.openDevTools()