testing tray

This commit is contained in:
2021-05-29 15:28:06 +02:00
parent f1c0ab6dbb
commit aa3a3ea265
4 changed files with 8 additions and 5 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
View File
Binary file not shown.
+5 -5
View File
@@ -60,11 +60,11 @@ export default class TrayUtility {
static init() { static init() {
if (!this.tray) { if (!this.tray) {
const file = path.join(__dirname, '../../assets/tray.png') const file = path.join(__dirname, '../../assets/trayTemplate.png')
const resized = nativeImage.createFromPath(file).resize({ width: 24, height: 24 }) // const resized = nativeImage.createFromPath(file).resize({ width: 24, height: 24 })
resized.setTemplateImage(true) // resized.setTemplateImage(true)
resized.isMacTemplateImage = true // resized.isMacTemplateImage = true
this.tray = new Tray(resized) this.tray = new Tray(file)
this.build() this.build()
} }
} }