Skip to content

Commit 0cd5b44

Browse files
swording-kEtienneLescot
authored andcommitted
fix: use a transparent template icon in the macOS menu bar
1 parent 63f248f commit 0cd5b44

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎build/trayTemplate.svg‎

Lines changed: 10 additions & 0 deletions
Loading

‎electron/main.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ const isMac = process.platform === "darwin";
198198
const trayIconSize = isMac ? 16 : 24;
199199

200200
// Tray Icons
201-
const defaultTrayIcon = getTrayIcon("openscreen.png", trayIconSize);
201+
const defaultTrayIcon = getTrayIcon(isMac ? "trayTemplate.png" : "openscreen.png", trayIconSize);
202+
if (isMac) defaultTrayIcon.setTemplateImage(true);
202203
const recordingTrayIcon = getTrayIcon("rec-button.png", trayIconSize);
203204

204205
function createWindow() {

‎public/trayTemplate.png‎

274 Bytes
Loading

‎public/trayTemplate@2x.png‎

568 Bytes
Loading

0 commit comments

Comments
 (0)