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