diff --git a/assets/16.png b/assets/16.png deleted file mode 100644 index f43ff68..0000000 Binary files a/assets/16.png and /dev/null differ diff --git a/assets/macos.png b/assets/macos.png index 953ecfa..f43ff68 100644 Binary files a/assets/macos.png and b/assets/macos.png differ diff --git a/src/tray.ts b/src/tray.ts index 6129949..d690914 100644 --- a/src/tray.ts +++ b/src/tray.ts @@ -3,8 +3,13 @@ import {mainWindow} from "./window"; import {getConfig} from "./utils"; import * as path from "path"; import {createSettingsWindow} from "./settings/main"; +import {platform} from "process"; let tray: any = null; +let defaultIcon = "ac_plug_colored"; app.whenReady().then(async () => { + if (platform == "darwin") { + defaultIcon = "macos" + } if ((await getConfig("windowStyle")) == "discord") { tray = new Tray(path.join(__dirname, "../", "/assets/dsc-tray.png")); const contextMenu = Menu.buildFromTemplate([ @@ -25,7 +30,7 @@ app.whenReady().then(async () => { tray.setToolTip("Discord"); tray.setContextMenu(contextMenu); } else { - var trayIcon = (await getConfig("trayIcon")) ?? "ac_plug_colored"; + var trayIcon = (await getConfig("trayIcon")) ?? defaultIcon; tray = new Tray(path.join(__dirname, "../", `/assets/${trayIcon}.png`)); const contextMenu = Menu.buildFromTemplate([ {