Add tray icon theme settings to the settings dialog

This commit is contained in:
Jonas Schwabe
2016-05-08 01:01:56 +02:00
parent 5a201b7727
commit ecfa143526
3 changed files with 15 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ const trayImages = function() {
mention: nativeImage.createFromPath(path.resolve(__dirname, 'resources/osx/MenuIconMentionTemplate.png'))
};
case 'linux':
var resourcesDir = 'resources/linux/' + (config.trayIconTheme||'light') + '/';
var resourcesDir = 'resources/linux/' + (config.trayIconTheme || 'light') + '/';
return {
normal: nativeImage.createFromPath(path.resolve(__dirname, resourcesDir + 'MenuIconTemplate.png')),
unread: nativeImage.createFromPath(path.resolve(__dirname, resourcesDir + 'MenuIconUnreadTemplate.png')),