新增不强制win7开启透明效果即可使用

This commit is contained in:
lyswhut
2020-01-19 13:56:54 +08:00
parent bb0b59080a
commit f8e449b017
7 changed files with 54 additions and 13 deletions
+17
View File
@@ -6,3 +6,20 @@ exports.getWindowSizeInfo = () => {
const { windowSizeId = 1 } = electronStore.get('setting') || {}
return windowSizeList.find(i => i.id === windowSizeId) || windowSizeList[0]
}
exports.parseEnv = () => {
const params = {}
const rx = /^-\w+/
for (let param of process.argv) {
if (!rx.test(param)) continue
param = param.substring(1)
let index = param.indexOf('=')
if (index < 0) {
params[param] = true
} else {
params[param.substring(0, index)] = param.substring(index + 1)
}
}
return params
}