新增设置-以全屏模式启动设置

This commit is contained in:
lyswhut
2022-05-24 08:57:04 +08:00
parent 15d2589db8
commit aa56dafd5f
9 changed files with 18 additions and 25 deletions
+7 -2
View File
@@ -160,7 +160,7 @@ function createWindow() {
/**
* Initial window options
*/
global.modules.mainWindow = new BrowserWindow({
const options = {
height: windowSizeInfo.height,
useContentSize: true,
width: windowSizeInfo.width,
@@ -178,7 +178,12 @@ function createWindow() {
nodeIntegration: true,
spellcheck: false, // 禁用拼写检查器
},
})
}
if (global.appSetting.startInFullscreen) {
options.fullscreen = true
if (isLinux) options.resizable = true
}
global.modules.mainWindow = new BrowserWindow(options)
const shouldUseDarkColors = nativeTheme.shouldUseDarkColors
const themeId = global.appSetting.theme.id == 'auto'