forked from MSG/msg-desktop
FIX: Replaced statusbar to show icon instead of string.
This commit is contained in:
parent
d3b066218f
commit
80cddb0314
1 changed files with 8 additions and 1 deletions
|
@ -90,8 +90,15 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
window.makeKeyAndOrderFront(nil)
|
||||
|
||||
if let button = statusBarItem.button {
|
||||
button.title = "MSG"
|
||||
//button.title = "MSG"
|
||||
button.toolTip = "MSG App"
|
||||
if let image = NSImage(named: "AppIcon") {
|
||||
let newSize = NSSize(width: 18, height: 18)
|
||||
image.size = newSize
|
||||
image.isTemplate = true // Important: so it adapts to dark/light mode but we need to get B&W icons..
|
||||
button.image = image
|
||||
}
|
||||
button.target = self
|
||||
}
|
||||
|
||||
let menu = NSMenu()
|
||||
|
|
Loading…
Add table
Reference in a new issue