From 1875a0f9e7829e8e2767367ed87ee7435c71f4da Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 10 Nov 2026 20:50:24 -0800 Subject: [PATCH] =?UTF-8?q?Fix=20bug=20where=20folders=20on=20iOS=20weren?= =?UTF-8?q?=E2=80=99t=20grayscale=20when=20the=20grayscale=20icon=20settin?= =?UTF-8?q?g=20is=20on.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Shared/Assets.swift | 2 +- .../MainFeedCollectionViewFolderCell.swift | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) 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)