mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-21 15:46:31 +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() {
|
||||
if (!this.tray) {
|
||||
const file = path.join(__dirname, '../../assets/tray.png')
|
||||
const icon = nativeImage.createFromPath(file).resize({
|
||||
width: 24,
|
||||
height: 24,
|
||||
})
|
||||
this.tray = new Tray(icon)
|
||||
const resized = nativeImage.createFromPath(file).resize({ width: 24, height: 24 })
|
||||
resized.setTemplateImage(true)
|
||||
resized.isMacTemplateImage = true
|
||||
this.tray = new Tray(resized)
|
||||
this.build()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user