Skip to content

Commit

Permalink
feat: update icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Aug 15, 2023
1 parent acd280b commit 4a76fc4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
Binary file modified assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/tray.ico
Binary file not shown.
Binary file added assets/tray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/trayTemplate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/trayTemplate@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 11 additions & 5 deletions src/electron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,17 @@ app.whenReady().then(function () {

tryConnect()

tray = new Tray(
process.platform == 'darwin'
? path.join(__dirname, '../assets', 'trayTemplate.png')
: path.join(__dirname, '../assets', 'icon.png')
)
let trayImage = path.join(__dirname, '../assets', 'tray.png')
switch (process.platform) {
case 'darwin':
trayImage = path.join(__dirname, '../assets', 'trayTemplate.png')
break
case 'win32':
trayImage = path.join(__dirname, '../assets', 'tray.ico')
break
}

tray = new Tray(trayImage)

const menu = new Menu()
menu.append(
Expand Down

0 comments on commit 4a76fc4

Please sign in to comment.