From 04e93c377e21c84c88ac79115f1f8055057abd0f Mon Sep 17 00:00:00 2001 From: Ivan Grachyov Date: Sun, 13 Jun 2021 13:53:38 +0300 Subject: [PATCH] Add image for status bar --- Encrypted Ink/Agent.swift | 3 ++- .../Assets.xcassets/Status.imageset/22.png | Bin 0 -> 1047 bytes .../Assets.xcassets/Status.imageset/22@2x.png | Bin 0 -> 2453 bytes .../Assets.xcassets/Status.imageset/22@3x.png | Bin 0 -> 4329 bytes .../Status.imageset/Contents.json | 23 ++++++++++++++++++ 5 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Encrypted Ink/Assets.xcassets/Status.imageset/22.png create mode 100644 Encrypted Ink/Assets.xcassets/Status.imageset/22@2x.png create mode 100644 Encrypted Ink/Assets.xcassets/Status.imageset/22@3x.png create mode 100644 Encrypted Ink/Assets.xcassets/Status.imageset/Contents.json diff --git a/Encrypted Ink/Agent.swift b/Encrypted Ink/Agent.swift index 164acd65..6084e577 100644 --- a/Encrypted Ink/Agent.swift +++ b/Encrypted Ink/Agent.swift @@ -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]) diff --git a/Encrypted Ink/Assets.xcassets/Status.imageset/22.png b/Encrypted Ink/Assets.xcassets/Status.imageset/22.png new file mode 100644 index 0000000000000000000000000000000000000000..72ab8b2fcfaf0d5c5b4ea0b52af77c9cb39245da GIT binary patch literal 1047 zcmeAS@N?(olHy`uVBq!ia0vp^Vj#@H1|*Mc$*~4fEa{HEjtmSN`?>!lvI6-E$sR$z z3=CCj3=9n|3=F@3LJcn%7)lKo7+xhXFj&oCU=S~uvn$XBC{d9b;hE;^%b*2hb1<+l zN-=;;U<6`2Mrk94K=9|K~g}p;cyE zbG1apT_@y)#B^j_-0ET9q!1FG_lF^GX}rV5r5fvY6|9Z8d)3uk$!#84a5prbJ2R2KruBRrPUYa&TC&M01MB#2_xEoY{(e4V%0I!#3(Bq=qfBI&P`A zAh(c5`Nx@$jRz0sY&Cewy5qvt4Qr$`3i`!dx2>3}&h5vq9p>lisK|d^^1$Qw`#-)6 zVT|vx%z65GM^yf!vRrvtw#sSSKN_?2_%U?1-+Ed2zezPd(s)I}gq>^VSaj~$*ZDJl z^$IK22#&y_-4&5q4?Hska<8{u{`gSsAE$UNs}{S;GNupwdRL_~wyA&E@Ppy}TI&|M z2e~Udex6L+a3E3D?o~lQ%W6-_pQRsOnuM=RD$AF2PUMz8CLs1n{A0-`AJ@SBtJWC* zUv4?AQnSvmKg}qr>kvUs5 z?`XK}e4V`R;i412c3InYu0QN7ktXW%eoNuneeDy|n13&0-1~HS!PE5*G;ch1^vqix zBR`$9W@`C{pc9Hx7Xt6(ZklTn(#0pn&SP=gw`I-Kyh|EEyHD{oE>`$p;(L6W*aP0V zy1FjwF1Nnid^$pr@w4uEzRM!clftI)g&eDVFEFFqw2aTJgtu?`(e~%3QiW$-nEXvt z{p(4tW$(J4*zQwLiJ!&g7X9S6)#ow`~ADec1N~bUQ@lW9BO?M_whCZA9 l4tl@7$Hbp}XIc0EKZB#)HN^!wGeP-}!PC{xWt~$(697+jlgj`A literal 0 HcmV?d00001 diff --git a/Encrypted Ink/Assets.xcassets/Status.imageset/22@2x.png b/Encrypted Ink/Assets.xcassets/Status.imageset/22@2x.png new file mode 100644 index 0000000000000000000000000000000000000000..6d404b0b82810ed8634f663ca67286a5fe5b6bc2 GIT binary patch literal 2453 zcmYLLc{tSDAO4OpW0@Hv%1$LqW#1>uSbkZC8CwyuWzRH&D3hhJ&XlXTaWR%_y0}z| zavOxPHQXpdc2kx#kzER1q*Ht8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&VhDU`LiXOFbq|dVfGi(@>-C Ix?R-&0H9U&l>h($ literal 0 HcmV?d00001 diff --git a/Encrypted Ink/Assets.xcassets/Status.imageset/Contents.json b/Encrypted Ink/Assets.xcassets/Status.imageset/Contents.json new file mode 100644 index 00000000..6a14797d --- /dev/null +++ b/Encrypted Ink/Assets.xcassets/Status.imageset/Contents.json @@ -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 + } +}