tune macos menus

This commit is contained in:
ivan grachev 2024-03-21 14:01:05 +03:00
parent 7fadc9e015
commit ea1c08b071
8 changed files with 30 additions and 8 deletions

View File

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

View 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
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

@ -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") }

View File

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

View File

@ -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?"