mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-03 06:25:10 +03:00
Add image for status bar
This commit is contained in:
parent
d8c2b3130d
commit
04e93c377e
@ -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])
|
||||
|
BIN
Encrypted Ink/Assets.xcassets/Status.imageset/22.png
vendored
Normal file
BIN
Encrypted Ink/Assets.xcassets/Status.imageset/22.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
BIN
Encrypted Ink/Assets.xcassets/Status.imageset/22@2x.png
vendored
Normal file
BIN
Encrypted Ink/Assets.xcassets/Status.imageset/22@2x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
Encrypted Ink/Assets.xcassets/Status.imageset/22@3x.png
vendored
Normal file
BIN
Encrypted Ink/Assets.xcassets/Status.imageset/22@3x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
23
Encrypted Ink/Assets.xcassets/Status.imageset/Contents.json
vendored
Normal file
23
Encrypted Ink/Assets.xcassets/Status.imageset/Contents.json
vendored
Normal 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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user