mirror of
https://github.com/Kuingsmile/PicList.git
synced 2025-01-23 14:48:13 -05:00
parent
4e02244ebe
commit
466dbec4b7
@ -225,26 +225,18 @@ const createMiniWidow = () => {
|
|||||||
let obj = {
|
let obj = {
|
||||||
height: 64,
|
height: 64,
|
||||||
width: 64,
|
width: 64,
|
||||||
show: false,
|
show: process.platform === 'linux',
|
||||||
frame: false,
|
frame: false,
|
||||||
fullscreenable: false,
|
fullscreenable: false,
|
||||||
skipTaskbar: true,
|
skipTaskbar: true,
|
||||||
resizable: false,
|
resizable: false,
|
||||||
transparent: true,
|
transparent: process.platform !== 'linux',
|
||||||
icon: `${__static}/logo.png`,
|
icon: `${__static}/logo.png`,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
backgroundThrottling: false
|
backgroundThrottling: false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.platform === 'linux') {
|
|
||||||
obj.transparent = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (process.platform === 'darwin') {
|
|
||||||
obj.show = false
|
|
||||||
}
|
|
||||||
|
|
||||||
if (db.read().get('settings.miniWindowOntop').value()) {
|
if (db.read().get('settings.miniWindowOntop').value()) {
|
||||||
obj.alwaysOnTop = true
|
obj.alwaysOnTop = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user