add config option to select an icon theme
This commit is contained in:
11
src/main.js
11
src/main.js
@@ -64,11 +64,12 @@ const trayImages = function() {
|
||||
mention: nativeImage.createFromPath(path.resolve(__dirname, 'resources/osx/MenuIconMentionTemplate.png'))
|
||||
};
|
||||
case 'linux':
|
||||
return {
|
||||
normal: nativeImage.createFromPath(path.resolve(__dirname, 'resources/linux/light/MenuIconTemplate.png')),
|
||||
unread: nativeImage.createFromPath(path.resolve(__dirname, 'resources/linux/light/MenuIconUnreadTemplate.png')),
|
||||
mention: nativeImage.createFromPath(path.resolve(__dirname, 'resources/linux/light/MenuIconMentionTemplate.png'))
|
||||
};
|
||||
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')),
|
||||
mention: nativeImage.createFromPath(path.resolve(__dirname, resourcesDir + 'MenuIconMentionTemplate.png'))
|
||||
};
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
|
BIN
src/resources/linux/dark/MenuIconMentionTemplate.png
Normal file
BIN
src/resources/linux/dark/MenuIconMentionTemplate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
src/resources/linux/dark/MenuIconTemplate.png
Normal file
BIN
src/resources/linux/dark/MenuIconTemplate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
BIN
src/resources/linux/dark/MenuIconUnreadTemplate.png
Normal file
BIN
src/resources/linux/dark/MenuIconUnreadTemplate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
Reference in New Issue
Block a user