From 0ca0e9df361bbe483ce43fd0f245fa5bdf74bb60 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 24 May 2025 22:29:51 +0200 Subject: [PATCH] Resize tray icon in main.js --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 67d46e5..153a875 100644 --- a/main.js +++ b/main.js @@ -556,8 +556,9 @@ app.whenReady().then(() => { Menu.setApplicationMenu(menu); - const trayIconPath = path.join(__dirname, 'assets/icon/trayicon.png'); // Passe ggf. an - tray = new Tray(nativeImage.createFromPath(trayIconPath)); + let img = nativeImage.createFromPath(path.join(__dirname, 'assets/icon/trayicon.png')) + .resize({ width: 22, height: 22 }); + tray = new Tray(img); // --- Context Menu bauen --- function buildTrayMenu() {