From 9791ff24d82323b2f73bd9fce93e20169e1714d6 Mon Sep 17 00:00:00 2001 From: PiEgg Date: Fri, 21 Oct 2022 10:46:54 +0800 Subject: [PATCH] :bug: Fix: macOS tray icon background color bug #970 --- ...wdarwin-v2.png => menubar-newdarwinTemplate.png} | Bin ...win-v2@2.png => menubar-newdarwinTemplate@2.png} | Bin ...win-v2@3.png => menubar-newdarwinTemplate@3.png} | Bin src/main/apis/app/system/index.ts | 2 +- 4 files changed, 1 insertion(+), 1 deletion(-) rename public/{menubar-newdarwin-v2.png => menubar-newdarwinTemplate.png} (100%) rename public/{menubar-newdarwin-v2@2.png => menubar-newdarwinTemplate@2.png} (100%) rename public/{menubar-newdarwin-v2@3.png => menubar-newdarwinTemplate@3.png} (100%) diff --git a/public/menubar-newdarwin-v2.png b/public/menubar-newdarwinTemplate.png similarity index 100% rename from public/menubar-newdarwin-v2.png rename to public/menubar-newdarwinTemplate.png diff --git a/public/menubar-newdarwin-v2@2.png b/public/menubar-newdarwinTemplate@2.png similarity index 100% rename from public/menubar-newdarwin-v2@2.png rename to public/menubar-newdarwinTemplate@2.png diff --git a/public/menubar-newdarwin-v2@3.png b/public/menubar-newdarwinTemplate@3.png similarity index 100% rename from public/menubar-newdarwin-v2@3.png rename to public/menubar-newdarwinTemplate@3.png diff --git a/src/main/apis/app/system/index.ts b/src/main/apis/app/system/index.ts index eb35574..d38748f 100644 --- a/src/main/apis/app/system/index.ts +++ b/src/main/apis/app/system/index.ts @@ -153,7 +153,7 @@ export function createContextMenu () { const getTrayIcon = () => { if (process.platform === 'darwin') { const isMacOSGreaterThan11 = isMacOSVersionGreaterThanOrEqualTo('11') - return isMacOSGreaterThan11 ? `${__static}/menubar-newdarwin-v2.png` : `${__static}/menubar.png` + return isMacOSGreaterThan11 ? `${__static}/menubar-newdarwinTemplate.png` : `${__static}/menubar.png` } else { return `${__static}/menubar-nodarwin.png` }