2017-11-19 13:57:42 -08:00
|
|
|
//
|
|
|
|
// PseudoFeed.swift
|
2018-08-28 22:18:24 -07:00
|
|
|
// NetNewsWire
|
2017-11-19 13:57:42 -08:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 11/19/17.
|
|
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
2019-04-15 15:03:05 -05:00
|
|
|
#if os(macOS)
|
|
|
|
|
|
|
|
import AppKit
|
2018-07-23 18:29:08 -07:00
|
|
|
import Articles
|
2018-07-28 12:16:14 -07:00
|
|
|
import Account
|
2017-11-19 13:57:42 -08:00
|
|
|
import RSCore
|
|
|
|
|
2018-02-11 22:10:28 -08:00
|
|
|
protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconProvider, PasteboardWriterOwner {
|
2017-11-19 13:57:42 -08:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2019-04-15 15:03:05 -05:00
|
|
|
private var smartFeedIcon: RSImage = {
|
2017-11-19 13:57:42 -08:00
|
|
|
|
2019-04-15 15:03:05 -05:00
|
|
|
return RSImage(named: NSImage.smartBadgeTemplateName)!
|
2017-12-17 10:51:05 -08:00
|
|
|
}()
|
2017-11-19 13:57:42 -08:00
|
|
|
|
2017-12-17 10:51:05 -08:00
|
|
|
extension PseudoFeed {
|
|
|
|
|
2019-04-15 15:03:05 -05:00
|
|
|
var smallIcon: RSImage? {
|
2018-02-14 13:14:25 -08:00
|
|
|
return smartFeedIcon
|
2017-12-17 10:51:05 -08:00
|
|
|
}
|
|
|
|
}
|
2019-04-15 15:03:05 -05:00
|
|
|
#else
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import Articles
|
|
|
|
import Account
|
|
|
|
import RSCore
|
|
|
|
|
|
|
|
protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconProvider {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private var smartFeedIcon: UIImage = {
|
2019-04-28 15:11:02 -05:00
|
|
|
return AppAssets.smartFeedImage
|
2019-04-15 15:03:05 -05:00
|
|
|
}()
|
|
|
|
|
|
|
|
extension PseudoFeed {
|
|
|
|
var smallIcon: UIImage? {
|
|
|
|
return smartFeedIcon
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|