diff --git a/Shared/SmartFeeds/StarredFeedDelegate.swift b/Shared/SmartFeeds/StarredFeedDelegate.swift index 2c70b079e..251e72cd5 100644 --- a/Shared/SmartFeeds/StarredFeedDelegate.swift +++ b/Shared/SmartFeeds/StarredFeedDelegate.swift @@ -22,7 +22,9 @@ struct StarredFeedDelegate: SmartFeedDelegate { let nameForDisplay = NSLocalizedString("Starred", comment: "Starred pseudo-feed title") let fetchType: FetchType = .starred - var smallIcon: IconImage? = AppAssets.starredFeedImage + var smallIcon: IconImage? { + return AppAssets.starredFeedImage + } func fetchUnreadCount(for account: Account, completion: @escaping SingleUnreadCountCompletionBlock) { account.fetchUnreadCountForStarredArticles(completion) diff --git a/Shared/SmartFeeds/TodayFeedDelegate.swift b/Shared/SmartFeeds/TodayFeedDelegate.swift index 50c275665..085a43777 100644 --- a/Shared/SmartFeeds/TodayFeedDelegate.swift +++ b/Shared/SmartFeeds/TodayFeedDelegate.swift @@ -20,7 +20,9 @@ struct TodayFeedDelegate: SmartFeedDelegate { let nameForDisplay = NSLocalizedString("Today", comment: "Today pseudo-feed title") let fetchType = FetchType.today - var smallIcon: IconImage? = AppAssets.todayFeedImage + var smallIcon: IconImage? { + return AppAssets.todayFeedImage + } func fetchUnreadCount(for account: Account, completion: @escaping SingleUnreadCountCompletionBlock) { account.fetchUnreadCountForToday(completion) diff --git a/Shared/SmartFeeds/UnreadFeed.swift b/Shared/SmartFeeds/UnreadFeed.swift index ed258a314..4ef22635b 100644 --- a/Shared/SmartFeeds/UnreadFeed.swift +++ b/Shared/SmartFeeds/UnreadFeed.swift @@ -39,7 +39,9 @@ final class UnreadFeed: PseudoFeed { } } - var smallIcon: IconImage? = AppAssets.unreadFeedImage + var smallIcon: IconImage? { + return AppAssets.unreadFeedImage + } #if os(macOS) var pasteboardWriter: NSPasteboardWriting { diff --git a/iOS/AppAssets.swift b/iOS/AppAssets.swift index b3b74b14c..b34b4db4c 100644 --- a/iOS/AppAssets.swift +++ b/iOS/AppAssets.swift @@ -177,9 +177,9 @@ struct AppAssets { return UIImage(systemName: "arrow.turn.down.left")! }() - static var primaryAccentColor: UIColor = { + static var primaryAccentColor: UIColor { return UIColor(named: "primaryAccentColor")! - }() + } static var safariImage: UIImage = { return UIImage(systemName: "safari")! @@ -189,9 +189,9 @@ struct AppAssets { return IconImage(UIImage(systemName: "magnifyingglass")!, isSymbol: true) }() - static var secondaryAccentColor: UIColor = { + static var secondaryAccentColor: UIColor { return UIColor(named: "secondaryAccentColor")! - }() + } static var sectionHeaderColor: UIColor = { return UIColor(named: "sectionHeaderColor")! @@ -217,10 +217,10 @@ struct AppAssets { return UIImage(systemName: "star")! }() - static var starredFeedImage: IconImage = { - let image = UIImage(named: "smartFeedStar")! - return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: nil) - }() + static var starredFeedImage: IconImage { + let image = UIImage(systemName: "star.fill")! + return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: AppAssets.starColor.cgColor) + } static var tickMarkColor: UIColor = { return UIColor(named: "tickMarkColor")! @@ -231,19 +231,19 @@ struct AppAssets { return image.withTintColor(AppAssets.starColor, renderingMode: .alwaysOriginal) }() - static var todayFeedImage: IconImage = { - let image = UIImage(named: "smartFeedToday")! - return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: nil) - }() + static var todayFeedImage: IconImage { + let image = UIImage(systemName: "sun.max.fill")! + return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: UIColor.systemOrange.cgColor) + } static var trashImage: UIImage = { return UIImage(systemName: "trash")! }() - static var unreadFeedImage: IconImage = { - let image = UIImage(named: "smartFeedUnread")! - return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: nil) - }() + static var unreadFeedImage: IconImage { + let image = UIImage(systemName: "largecircle.fill.circle")! + return IconImage(image, isSymbol: true, isBackgroundSupressed: true, preferredColor: AppAssets.secondaryAccentColor.cgColor) + } static var vibrantTextColor: UIColor = { return UIColor(named: "vibrantTextColor")! diff --git a/iOS/Base.lproj/Main.storyboard b/iOS/Base.lproj/Main.storyboard index db1c5561a..cf1166c5f 100644 --- a/iOS/Base.lproj/Main.storyboard +++ b/iOS/Base.lproj/Main.storyboard @@ -1,9 +1,9 @@ - + - + @@ -332,7 +332,7 @@