优化默认设置

This commit is contained in:
lyswhut
2020-06-26 00:17:09 +08:00
parent e29d3e3eaa
commit b02d32929c
3 changed files with 11 additions and 12 deletions
+5 -1
View File
@@ -72,10 +72,14 @@ const createWindow = () => {
if (global.modules.lyricWindow) return
if (!global.appSetting.desktopLyric.enable) return
// const windowSizeInfo = getWindowSizeInfo(global.appSetting)
const { x, y, width, height, isAlwaysOnTop } = global.appSetting.desktopLyric
let { x, y, width, height, isAlwaysOnTop } = global.appSetting.desktopLyric
let { width: screenWidth, height: screenHeight } = global.envParams.workAreaSize
screenWidth += 16
screenHeight += 16
if (x == null) {
x = screenWidth - width - 8
y = screenHeight - height - 8
}
/**
* Initial window options
*/