Skip to content

Commit 2a6a0ca

Browse files
Ben KonynBen Konyn
authored andcommitted
V1.0.8 added mac icons and settings
1 parent 1c58c59 commit 2a6a0ca

File tree

12 files changed

+15
-8
lines changed

12 files changed

+15
-8
lines changed

assets/icon.icns

5.26 KB
Binary file not shown.

assets/icon.ico

100644100755
File mode changed.

assets/icon1024x1024.png

104 KB
Loading

assets/icon16x16.png

2 KB
Loading

assets/icon24x24.png

2.54 KB
Loading

assets/icon32x32.png

2.83 KB
Loading

assets/icon48.png

-4.16 KB
Binary file not shown.
File renamed without changes.

main.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,15 @@ if (!gotTheLock) {
8989
height: 600,
9090
resizable: false,
9191
webPreferences: { nodeIntegration: true, contextIsolation: false },
92-
icon: path.join(__dirname, 'assets', 'icon128.png'), // may need to add some options for mac/ico file
92+
icon: process.platform === 'win32'
93+
? path.join(__dirname, 'assets', 'icon128x128.png') // Windows icon
94+
: path.join(__dirname, 'assets', 'icon.icns')
95+
9396
});
94-
97+
98+
if (process.platform === 'darwin') {
99+
app.dock.setIcon(path.join(__dirname, 'assets', 'icon1024x1024.png'));
100+
}
95101
win.setMenu(null);
96102

97103
win.loadFile(path.join(__dirname, `./renderer/${startPage}`));
@@ -218,7 +224,7 @@ app.on("open-url", (event, url) => {
218224
}
219225

220226
function createTray() {
221-
const iconPath = path.join(__dirname, 'assets/icon48.png'); // Ensure the path is correct
227+
const iconPath = path.join(__dirname, 'assets/icon24x24.png'); // Ensure the path is correct
222228
tray = new Tray(iconPath);
223229

224230
const contextMenu = Menu.buildFromTemplate([

0 commit comments

Comments
 (0)