Added FeedWrangler image assets
This commit is contained in:
parent
0f105c8421
commit
68ff7378e7
|
@ -129,6 +129,8 @@ struct AppAssets {
|
|||
return AppAssets.accountFeedbin
|
||||
case .feedly:
|
||||
return AppAssets.accountFeedly
|
||||
case .feedWrangler:
|
||||
return AppAssets.accountFeedWrangler
|
||||
case .freshRSS:
|
||||
return AppAssets.accountFreshRSS
|
||||
default:
|
||||
|
|
|
@ -15,7 +15,7 @@ class AccountsAddViewController: NSViewController {
|
|||
|
||||
private var accountsAddWindowController: NSWindowController?
|
||||
|
||||
private let addableAccountTypes: [AccountType] = [.onMyMac, .feedbin, .feedly, .freshRSS]
|
||||
private let addableAccountTypes: [AccountType] = [.onMyMac, .feedbin, .feedly, .feedWrangler, .freshRSS]
|
||||
|
||||
init() {
|
||||
super.init(nibName: "AccountsAdd", bundle: nil)
|
||||
|
|
|
@ -103,18 +103,7 @@ extension AccountsPreferencesViewController: NSTableViewDelegate {
|
|||
if let cell = tableView.makeView(withIdentifier: NSUserInterfaceItemIdentifier(rawValue: "Cell"), owner: nil) as? NSTableCellView {
|
||||
let account = sortedAccounts[row]
|
||||
cell.textField?.stringValue = account.nameForDisplay
|
||||
switch account.type {
|
||||
case .onMyMac:
|
||||
cell.imageView?.image = AppAssets.accountLocal
|
||||
case .feedbin:
|
||||
cell.imageView?.image = AppAssets.accountFeedbin
|
||||
case .freshRSS:
|
||||
cell.imageView?.image = AppAssets.accountFreshRSS
|
||||
case .feedly:
|
||||
cell.imageView?.image = AppAssets.accountFeedly
|
||||
default:
|
||||
break
|
||||
}
|
||||
cell.imageView?.image = account.smallIcon?.image
|
||||
return cell
|
||||
}
|
||||
return nil
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"images" : [
|
||||
{
|
||||
"idiom" : "universal",
|
||||
"filename" : "accountFreshRSS.pdf"
|
||||
"filename" : "outline-512.png"
|
||||
}
|
||||
],
|
||||
"info" : {
|
||||
|
|
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
Loading…
Reference in New Issue