aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Tray.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-02-18 21:46:02 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-02-18 21:47:16 +0100
commit3b7857f0014050b52d6002bb517f77b43e5327d7 (patch)
tree6a38d8edcd37d9dc5e9b4f4370c3ecf3d5637d71 /src/lib/Tray.js
parentfix(Linux): invert tray icon color & add border for bright UI's (diff)
downloadferdium-app-3b7857f0014050b52d6002bb517f77b43e5327d7.tar.gz
ferdium-app-3b7857f0014050b52d6002bb517f77b43e5327d7.tar.zst
ferdium-app-3b7857f0014050b52d6002bb517f77b43e5327d7.zip
Test nativeImage for @2x images
Diffstat (limited to 'src/lib/Tray.js')
-rw-r--r--src/lib/Tray.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Tray.js b/src/lib/Tray.js
index 2efe71a71..588fa75bf 100644
--- a/src/lib/Tray.js
+++ b/src/lib/Tray.js
@@ -1,4 +1,4 @@
1import { app, Tray, Menu, systemPreferences } from 'electron'; 1import { app, Tray, Menu, systemPreferences, nativeImage } from 'electron';
2import path from 'path'; 2import path from 'path';
3 3
4const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png'; 4const FILE_EXTENSION = process.platform === 'win32' ? 'ico' : 'png';
@@ -78,8 +78,8 @@ export default class TrayIcon {
78 platform = `${platform}-dark`; 78 platform = `${platform}-dark`;
79 } 79 }
80 80
81 return path.join( 81 return nativeImage.createFromPath(path.join(
82 __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`, 82 __dirname, '..', 'assets', 'images', type, platform, `${asset}.${FILE_EXTENSION}`),
83 ); 83 );
84 } 84 }
85} 85}