Update menu bar icon and its behavior. (#880)

This commit is contained in:
Jack Hinkle 2022-01-23 07:43:11 -05:00 committed by GitHub
parent 370d6cf890
commit 4d408a581f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 10 deletions

View file

@ -1,13 +1,13 @@
{
"images" : [
{
"filename" : "status.pdf",
"idiom" : "universal",
"filename" : "status.png",
"scale" : "1x"
},
{
"filename" : "status@2x.pdf",
"idiom" : "universal",
"filename" : "status@2x.png",
"scale" : "2x"
},
{
@ -16,10 +16,10 @@
}
],
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
}

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View file

@ -71,11 +71,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
}
prefs.set(currentBuildNumber, forKey: PrefKey.buildNumber.rawValue)
self.setDefaultPrefs()
if !DEBUG_MACOS10, #available(macOS 11.0, *) {
self.statusItem.button?.image = NSImage(systemSymbolName: "sun.max", accessibilityDescription: "MonitorControl")
} else {
self.statusItem.button?.image = NSImage(named: "status")
}
self.statusItem.button?.image = NSImage(named: "status")
self.statusItem.menu = menu
self.checkPermissions()
CGDisplayRegisterReconfigurationCallback({ _, _, _ in app.displayReconfigured() }, nil)