mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Use a feed icon included with the app (instead of the app icon) as the icon for NetNewsWire feeds.
This commit is contained in:
@@ -33,4 +33,6 @@ extension IconImage {
|
||||
}
|
||||
return nil
|
||||
}()
|
||||
|
||||
static let nnwFeedIcon = IconImage(AppAssets.nnwFeedIcon)
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ final class FaviconDownloader {
|
||||
|
||||
if let url = URL(string: homePageURL) {
|
||||
if url.host == "nnw.ranchero.com" || url.host == "netnewswire.blog" {
|
||||
return IconImage.appIcon
|
||||
return IconImage.nnwFeedIcon
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public final class FeedIconDownloader {
|
||||
}
|
||||
|
||||
if let homePageURLString = feed.homePageURL, let homePageURL = URL(string: homePageURLString), (homePageURL.host == "nnw.ranchero.com" || homePageURL.host == "netnewswire.blog") {
|
||||
return IconImage.appIcon
|
||||
return IconImage.nnwFeedIcon
|
||||
}
|
||||
|
||||
func checkHomePageURL() {
|
||||
|
||||
Reference in New Issue
Block a user