diff --git a/Shared/Assets.swift b/Shared/Assets.swift index 1d0e5c806..92423ae73 100644 --- a/Shared/Assets.swift +++ b/Shared/Assets.swift @@ -105,7 +105,7 @@ struct Assets { static let trash = RSImage(symbol: "trash")! static let searchFeed = IconImage(RSImage(symbol: "magnifyingglass")!, isSymbol: true) - static let mainFolder = IconImage(folder, isSymbol: true, isBackgroundSuppressed: true, preferredColor: Assets.Colors.secondaryAccent) + static let mainFolder = IconImage(folder, isSymbol: true, isBackgroundSuppressed: true, preferredColor: Assets.Colors.primaryAccent) static let todayFeed = IconImage(RSImage(symbol: "sun.max.fill")!, isSymbol: true, isBackgroundSuppressed: true, preferredColor: UIColor.systemOrange) static let unreadFeed = IconImage(RSImage(symbol: "largecircle.fill.circle")!, isSymbol: true, isBackgroundSuppressed: true, preferredColor: Assets.Colors.secondaryAccent) static var timelineStar: RSImage { diff --git a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift index 07133e761..fa8823c60 100644 --- a/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift +++ b/iOS/MainFeed/Collection View Cells/MainFeedCollectionViewFolderCell.swift @@ -60,10 +60,15 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell { AppDefaults.unreadCountDisplay.text(for: unreadCount) } + /// Gray when grayscale icons are on. + private var iconTintColor: UIColor { + iconImage?.preferredColor ?? Assets.Colors.primaryAccent + } + var iconImage: IconImage? { didSet { faviconView.iconImage = iconImage - faviconView.tintColor = iconImage?.preferredColor ?? Assets.Colors.secondaryAccent + faviconView.tintColor = iconTintColor } } @@ -181,11 +186,11 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell { folderTitle.font = UIFont.systemFont(ofSize: UIFont.preferredFont(forTextStyle: .body).pointSize, weight: .semibold) unreadCountLabel.textColor = Assets.Colors.primaryAccent unreadCountLabel.font = UIFont.systemFont(ofSize: UIFont.preferredFont(forTextStyle: .body).pointSize, weight: .semibold) - faviconView.tintColor = Assets.Colors.primaryAccent + faviconView.tintColor = iconTintColor disclosureButton.configuration?.baseForegroundColor = .label default: folderTitle.textColor = .label - faviconView.tintColor = Assets.Colors.primaryAccent + faviconView.tintColor = iconTintColor folderTitle.font = UIFont.preferredFont(forTextStyle: .body) unreadCountLabel.textColor = .secondaryLabel unreadCountLabel.font = UIFont.preferredFont(forTextStyle: .body)