mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-22 08:06:33 +00:00
tray icon
This commit is contained in:
parent
f5ecebb61a
commit
2606214e53
BIN
assets/tray.png
BIN
assets/tray.png
Binary file not shown.
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 16 KiB |
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user