mirror of
https://github.com/lil-org/wallet.git
synced 2024-12-29 15:32:31 +03:00
tune macos menus
This commit is contained in:
parent
7fadc9e015
commit
ea1c08b071
@ -113,7 +113,7 @@ class Agent: NSObject {
|
||||
let warpcastItem = NSMenuItem(title: Strings.viewOnWarpcast, action: #selector(didSelectWarpcastMenuItem), keyEquivalent: "")
|
||||
let xItem = NSMenuItem(title: Strings.viewOnX, action: #selector(didSelectXMenuItem), keyEquivalent: "")
|
||||
let quitItem = NSMenuItem(title: Strings.quit, action: #selector(didSelectQuitMenuItem), keyEquivalent: "q")
|
||||
showItem.attributedTitle = NSAttributedString(string: Strings.showWallets, attributes: [.font: NSFont.systemFont(ofSize: 23)])
|
||||
showItem.image = Images.zorb
|
||||
|
||||
showItem.target = self
|
||||
safariItem.target = self
|
||||
|
23
App macOS/Assets.xcassets/zorb.imageset/Contents.json
vendored
Normal file
23
App macOS/Assets.xcassets/zorb.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"images" : [
|
||||
{
|
||||
"filename" : "Group.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "1x"
|
||||
},
|
||||
{
|
||||
"filename" : "Group@2x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "2x"
|
||||
},
|
||||
{
|
||||
"filename" : "Group@3x.png",
|
||||
"idiom" : "universal",
|
||||
"scale" : "3x"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
"author" : "xcode",
|
||||
"version" : 1
|
||||
}
|
||||
}
|
BIN
App macOS/Assets.xcassets/zorb.imageset/Group.png
vendored
Normal file
BIN
App macOS/Assets.xcassets/zorb.imageset/Group.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
App macOS/Assets.xcassets/zorb.imageset/Group@2x.png
vendored
Normal file
BIN
App macOS/Assets.xcassets/zorb.imageset/Group@2x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.5 KiB |
BIN
App macOS/Assets.xcassets/zorb.imageset/Group@3x.png
vendored
Normal file
BIN
App macOS/Assets.xcassets/zorb.imageset/Group@3x.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.5 KiB |
@ -6,6 +6,7 @@ import WalletCore
|
||||
struct Images {
|
||||
|
||||
static var statusBarIcon: NSImage { named("Status") }
|
||||
static var zorb: NSImage { named("zorb") }
|
||||
static var multicoinWalletPreferences: NSImage { systemName("ellipsis.rectangle") }
|
||||
static var network: NSImage { systemName("network") }
|
||||
static var circleFill: NSImage { systemName("circle.fill") }
|
||||
|
@ -183,12 +183,10 @@ class AccountsListViewController: NSViewController {
|
||||
|
||||
@IBAction func addButtonTapped(_ sender: NSButton) {
|
||||
let menu = sender.menu
|
||||
|
||||
let createItem = NSMenuItem(title: "", action: #selector(didClickCreateAccount), keyEquivalent: "")
|
||||
let importItem = NSMenuItem(title: "", action: #selector(didClickImportAccount), keyEquivalent: "")
|
||||
let font = NSFont.systemFont(ofSize: 23)
|
||||
createItem.attributedTitle = NSAttributedString(string: AddAccountOption.createNew.title, attributes: [.font: font])
|
||||
importItem.attributedTitle = NSAttributedString(string: AddAccountOption.importExisting.title, attributes: [.font: font])
|
||||
let createItem = NSMenuItem(title: AddAccountOption.createNew.title, action: #selector(didClickCreateAccount), keyEquivalent: "")
|
||||
let importItem = NSMenuItem(title: AddAccountOption.importExisting.title, action: #selector(didClickImportAccount), keyEquivalent: "")
|
||||
importItem.target = self
|
||||
createItem.target = self
|
||||
menu?.addItem(createItem)
|
||||
menu?.addItem(.separator())
|
||||
menu?.addItem(importItem)
|
||||
|
@ -16,7 +16,7 @@ struct Strings {
|
||||
static let failedToSign = "failed to sign"
|
||||
static let failedToSwitchChain = "failed to switch chain"
|
||||
static let tinyWallet = "tiny wallet"
|
||||
static let showWallets = "❒ show wallets"
|
||||
static let showWallets = "show wallets"
|
||||
static let enterWallet = "enter wallet"
|
||||
static let quit = "quit"
|
||||
static let quitTinyWallet = "quit wallet?"
|
||||
|
Loading…
Reference in New Issue
Block a user