1
0

Resize tray icon in main.js

This commit is contained in:
2025-05-24 22:29:51 +02:00
parent 43f95084d6
commit 0ca0e9df36

View File

@@ -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() {