tray icon

This commit is contained in:
cupcakearmy 2021-05-28 20:56:35 +02:00
parent f5ecebb61a
commit 2606214e53
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
2 changed files with 4 additions and 5 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -61,11 +61,10 @@ 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/tray.png')
const icon = nativeImage.createFromPath(file).resize({ const resized = nativeImage.createFromPath(file).resize({ width: 24, height: 24 })
width: 24, resized.setTemplateImage(true)
height: 24, resized.isMacTemplateImage = true
}) this.tray = new Tray(resized)
this.tray = new Tray(icon)
this.build() this.build()
} }
} }