mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
Update menu bar icon and its behavior. (#880)
This commit is contained in:
parent
370d6cf890
commit
4d408a581f
6 changed files with 6 additions and 10 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
BIN
MonitorControl/Assets.xcassets/status.imageset/status.pdf
vendored
Normal file
BIN
MonitorControl/Assets.xcassets/status.imageset/status.pdf
vendored
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.3 KiB |
BIN
MonitorControl/Assets.xcassets/status.imageset/status@2x.pdf
vendored
Normal file
BIN
MonitorControl/Assets.xcassets/status.imageset/status@2x.pdf
vendored
Normal file
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue