mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2024-12-22 16:16:30 +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() {
|
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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user