Added FeedWrangler image assets

This commit is contained in:
Maurice Parker 2019-11-21 11:28:08 -06:00
parent 0f105c8421
commit 68ff7378e7
6 changed files with 5 additions and 14 deletions

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "accountFreshRSS.pdf"
"filename" : "outline-512.png"
}
],
"info" : {

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB