Add image for status bar

This commit is contained in:
Ivan Grachyov 2021-06-13 13:53:38 +03:00
parent d8c2b3130d
commit 04e93c377e
5 changed files with 25 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import WalletConnect
class Agent {
static let shared = Agent()
private lazy var statusImage = NSImage(named: "Status")
private init() {}
private var statusBarItem: NSStatusItem!
@ -64,7 +65,7 @@ class Agent {
func setupStatusBarItem() {
let statusBar = NSStatusBar.system
statusBarItem = statusBar.statusItem(withLength: NSStatusItem.squareLength)
statusBarItem.button?.title = "🍎"
statusBarItem.button?.image = statusImage
statusBarItem.button?.target = self
statusBarItem.button?.action = #selector(statusBarButtonClicked(sender:))
statusBarItem.button?.sendAction(on: [.leftMouseUp])

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "22.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "22@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "22@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}