ENH: Fixed sizing of the main window. #1

Open
eroesch wants to merge 8 commits from eroesch/msg-desktop:main into main
Showing only changes of commit 80cddb0314 - Show all commits

View file

@ -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()