mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-15 06:56:34 +03:00
24 lines
631 B
Swift
24 lines
631 B
Swift
|
// Copyright © 2022 Tokenary. All rights reserved.
|
||
|
|
||
|
import Cocoa
|
||
|
import WalletCore
|
||
|
|
||
|
struct Images {
|
||
|
|
||
|
static var statusBarIcon: NSImage { named("Status") }
|
||
|
static var multicoinWalletPreferences: NSImage { systemName("ellipsis.rectangle") }
|
||
|
|
||
|
static func logo(coin: CoinType) -> NSImage {
|
||
|
return named("Logo" + coin.name)
|
||
|
}
|
||
|
|
||
|
private static func named(_ name: String) -> NSImage {
|
||
|
return NSImage(named: name)!
|
||
|
}
|
||
|
|
||
|
private static func systemName(_ systemName: String) -> NSImage {
|
||
|
return NSImage(systemSymbolName: systemName, accessibilityDescription: nil)!
|
||
|
}
|
||
|
|
||
|
}
|