mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-21 23:56:28 +00:00
testing tray
This commit is contained in:
parent
f1c0ab6dbb
commit
aa3a3ea265
BIN
assets/trayTemplate.png
Normal file
BIN
assets/trayTemplate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
assets/trayTemplate@2x.png
Normal file
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
BIN
design/tray.afdesign
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -60,11 +60,11 @@ export default class TrayUtility {
|
||||
|
||||
static init() {
|
||||
if (!this.tray) {
|
||||
const file = path.join(__dirname, '../../assets/tray.png')
|
||||
const resized = nativeImage.createFromPath(file).resize({ width: 24, height: 24 })
|
||||
resized.setTemplateImage(true)
|
||||
resized.isMacTemplateImage = true
|
||||
this.tray = new Tray(resized)
|
||||
const file = path.join(__dirname, '../../assets/trayTemplate.png')
|
||||
// const resized = nativeImage.createFromPath(file).resize({ width: 24, height: 24 })
|
||||
// resized.setTemplateImage(true)
|
||||
// resized.isMacTemplateImage = true
|
||||
this.tray = new Tray(file)
|
||||
this.build()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user