Skip to content

Commit

Permalink
Add preliminary windows icon
Browse files Browse the repository at this point in the history
This could be replaced by a proper .ico in the future
  • Loading branch information
SRichner committed Feb 28, 2024
1 parent f3e3639 commit ca9b243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/electron/electron/main/services/WindowService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ export class WindowService {
if (this.tray) {
return;
}
const appIcon = path.join(process.env.VITE_PUBLIC, 'IconTemplate.png');
const iconToUse = is.macOS ? 'IconTemplate.png' : '[email protected]';
const appIcon = path.join(process.env.VITE_PUBLIC, iconToUse);
const trayImage = nativeImage.createFromPath(appIcon);
trayImage.setTemplateImage(true);
this.tray = new Tray(trayImage);
Expand Down
Binary file added src/electron/public/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca9b243

Please sign in to comment.