Skip to content

Commit

Permalink
Fixed pixelated tray icon on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ransome1 committed Nov 23, 2023
1 parent f0052f8 commit 4be288f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file added assets/icons/tray/tray.ico
Binary file not shown.
3 changes: 2 additions & 1 deletion src/main/modules/Tray.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ function createTray() {
}

const files = configStorage.get('files') as File[] || [];
const iconName = process.platform === 'win32' ? 'tray.ico' : 'tray.png';
const menu = Menu.buildFromTemplate(createMenuTemplate(files));

tray = new Tray(getAssetPath('icons/tray/tray.png'));
tray = new Tray(getAssetPath(`icons/tray/${iconName}`));
tray.on('click', () => {
handleCreateWindow();
});
Expand Down

0 comments on commit 4be288f

Please sign in to comment.