[GH-317] Correct size for Linux tray icons (#1595)
Signed-off-by: Elsie Hupp <9206310+elsiehupp@users.noreply.github.com>
3
src/assets/linux/ICONS.md
Normal file
@@ -0,0 +1,3 @@
|
||||
## Figma
|
||||
|
||||
Canonical vector source images for icons can be found on [Figma](https://www.figma.com/file/7V9FN9l9c4zHIls2ZUCoPU/MM-30584-Desktop-App-Icon-Update?node-id=9%3A1170). The files on GitHub are exports.
|
Before Width: | Height: | Size: 574 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 650 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 658 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 572 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 647 B |
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 665 B |
Before Width: | Height: | Size: 1.3 KiB |
BIN
src/assets/linux/top_bar_dark_16.png
Normal file
After Width: | Height: | Size: 328 B |
BIN
src/assets/linux/top_bar_dark_16@2x.png
Normal file
After Width: | Height: | Size: 580 B |
BIN
src/assets/linux/top_bar_dark_mention_16.png
Normal file
After Width: | Height: | Size: 401 B |
BIN
src/assets/linux/top_bar_dark_mention_16@2x.png
Normal file
After Width: | Height: | Size: 737 B |
BIN
src/assets/linux/top_bar_dark_unread_16.png
Normal file
After Width: | Height: | Size: 405 B |
BIN
src/assets/linux/top_bar_dark_unread_16@2x.png
Normal file
After Width: | Height: | Size: 749 B |
BIN
src/assets/linux/top_bar_light_16.png
Normal file
After Width: | Height: | Size: 502 B |
BIN
src/assets/linux/top_bar_light_16@2x.png
Normal file
After Width: | Height: | Size: 836 B |
BIN
src/assets/linux/top_bar_light_mention_16.png
Normal file
After Width: | Height: | Size: 493 B |
BIN
src/assets/linux/top_bar_light_mention_16@2x.png
Normal file
After Width: | Height: | Size: 890 B |
BIN
src/assets/linux/top_bar_light_unread_16.png
Normal file
After Width: | Height: | Size: 489 B |
BIN
src/assets/linux/top_bar_light_unread_16@2x.png
Normal file
After Width: | Height: | Size: 898 B |
@@ -44,19 +44,18 @@ export function refreshTrayImages(trayIconTheme) {
|
||||
}
|
||||
case 'linux':
|
||||
{
|
||||
const theme = trayIconTheme;
|
||||
try {
|
||||
if (trayIconTheme.equals('dark')) {
|
||||
trayImages = {
|
||||
normal: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', theme, 'MenuIcon.png')),
|
||||
unread: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', theme, 'MenuIconUnread.png')),
|
||||
mention: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', theme, 'MenuIconMention.png')),
|
||||
normal: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'top_bar_dark_16.png')),
|
||||
unread: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'top_bar_dark_unread_16.png')),
|
||||
mention: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'top_bar_dark_mention_16.png')),
|
||||
};
|
||||
} catch (e) {
|
||||
} else {
|
||||
//Fallback for invalid theme setting
|
||||
trayImages = {
|
||||
normal: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'light', 'MenuIcon.png')),
|
||||
unread: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'light', 'MenuIconUnread.png')),
|
||||
mention: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'light', 'MenuIconMention.png')),
|
||||
normal: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'top_bar_light_16.png')),
|
||||
unread: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'top_bar_light_unread_16.png')),
|
||||
mention: nativeImage.createFromPath(path.resolve(assetsDir, 'linux', 'top_bar_light_mention_16.png')),
|
||||
};
|
||||
}
|
||||
break;
|
||||
|