Skip to content

Commit

Permalink
🐛 Fix: macOS tray icon background color bug
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #970
  • Loading branch information
Molunerfinn committed Oct 21, 2022
1 parent 7677f1e commit 114f22a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
File renamed without changes
File renamed without changes
File renamed without changes
19 changes: 19 additions & 0 deletions src/main/apis/app/remoteNotice/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// get notice from remote
// such as some notices for users; some updates for users
// import { app } from 'electron'

class RemoteNoticeHandler {
constructor () {
this.init()
}

init () {

}
}

const remoteNoticeHandler = new RemoteNoticeHandler()

export {
remoteNoticeHandler
}
2 changes: 1 addition & 1 deletion src/main/apis/app/system/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
}
Expand Down

0 comments on commit 114f22a

Please sign in to comment.