diff --git a/assets/trayTemplate.png b/assets/trayTemplate.png new file mode 100644 index 0000000..749f38c Binary files /dev/null and b/assets/trayTemplate.png differ diff --git a/assets/trayTemplate@2x.png b/assets/trayTemplate@2x.png new file mode 100644 index 0000000..86602ac Binary files /dev/null and b/assets/trayTemplate@2x.png differ diff --git a/design/tray.afdesign b/design/tray.afdesign new file mode 100644 index 0000000..ae459ea --- /dev/null +++ b/design/tray.afdesign @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21bb4491cdf8781e70ed102d759cd34d98a50cf27940bb85f9150bfb92026502 +size 20659 diff --git a/src/back/tray.ts b/src/back/tray.ts index d5b65bd..4605f79 100644 --- a/src/back/tray.ts +++ b/src/back/tray.ts @@ -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() } }