Skip to content

Commit

Permalink
fix(tray): add small tray icon for Linux
Browse files Browse the repository at this point in the history
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Jul 25, 2023
1 parent 5786eaf commit 8a8d993
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Binary file added img/icons/icon-tray-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion scripts/generate-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function generateIcons() {
// Linux (PNG)
favicon: {
name: 'icon',
pngSizes: [512],
pngSizes: [32, 512],
icoSizes: [],
},
})
Expand All @@ -66,6 +66,8 @@ async function generateIcons() {

// Rename icon512.png -> icon.png
await fs.rename(path.join(outputPath, 'icon512.png'), path.join(outputPath, 'icon.png'))
// Rename icon32.png -> icon-tray-linux.png
await fs.rename(path.join(outputPath, 'icon32.png'), path.join(outputPath, 'icon-tray-linux.png'))

// Remove unused favicon
await fs.unlink(path.join(outputPath, 'favicon.ico'))
Expand Down
2 changes: 1 addition & 1 deletion src/shared/icons.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const icons = {

win32: require('../../img/icons/icon.ico'),

linux: require('../../img/icons/icon.png'),
linux: require('../../img/icons/icon-tray-linux.png'),
},
}

Expand Down

0 comments on commit 8a8d993

Please sign in to comment.