testing tray

This commit is contained in:
cupcakearmy 2021-05-29 15:28:06 +02:00
parent f1c0ab6dbb
commit aa3a3ea265
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9
4 changed files with 8 additions and 5 deletions

BIN
assets/trayTemplate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
assets/trayTemplate@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

BIN
design/tray.afdesign (Stored with Git LFS) Normal file

Binary file not shown.

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()
} }
} }