From cdaaef1dcf262068b2f0f6fc382d8c511b680d3a Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 9 Nov 2026 09:32:51 -0800 Subject: [PATCH] Add explanation for grayscale icons. --- .../Base.lproj/AppearancePreferencesView.xib | 23 ++++++++++++++----- .../AppearancePreferencesView.xcstrings | 12 ++++++++++ Shared/IconImageCache.swift | 9 ++++---- iOS/Settings/Settings.storyboard | 2 +- ...neCustomizerCollectionViewController.swift | 2 +- 5 files changed, 36 insertions(+), 12 deletions(-) diff --git a/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib b/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib index fec95c5ff..0c6e6ff78 100644 --- a/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib +++ b/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib @@ -23,14 +23,14 @@ - + - + - + @@ -38,7 +38,7 @@ - + @@ -59,7 +59,7 @@ + + + + + + + + @@ -245,7 +253,10 @@ - + + + + diff --git a/Mac/Preferences/Appearance/mul.lproj/AppearancePreferencesView.xcstrings b/Mac/Preferences/Appearance/mul.lproj/AppearancePreferencesView.xcstrings index ec779f054..aa61c0277 100644 --- a/Mac/Preferences/Appearance/mul.lproj/AppearancePreferencesView.xcstrings +++ b/Mac/Preferences/Appearance/mul.lproj/AppearancePreferencesView.xcstrings @@ -97,6 +97,18 @@ } } }, + "gyL-iC-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"This is for feed icons and author avatars. Article thumbnails remain in color.\"; ObjectID = \"gyL-iC-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "This is for feed icons and author avatars. Article thumbnails remain in color." + } + } + } + }, "jMV-2o-5Oh.title" : { "comment" : "Class = \"NSMenuItem\"; title = \"Medium\"; ObjectID = \"jMV-2o-5Oh\";", "extractionState" : "extracted_with_value", diff --git a/Shared/IconImageCache.swift b/Shared/IconImageCache.swift index 6a136d648..2e45237c1 100644 --- a/Shared/IconImageCache.swift +++ b/Shared/IconImageCache.swift @@ -131,6 +131,11 @@ extension Notification.Name { displayedIconImage(colorIconImage(for: feed)) } + /// Grayscale when `AppDefaults.grayscaleIcons` is on. + func displayedIconImage(_ iconImage: IconImage) -> IconImage { + AppDefaults.grayscaleIcons ? iconImage.grayscaleIconImage : iconImage + } + func emptyCache() { smartFeedIconImageCache.removeAll() lastFoundFeedIconImages.removeAll() @@ -186,10 +191,6 @@ private extension IconImageCache { return FaviconGenerator.shared.favicon(feed) } - func displayedIconImage(_ iconImage: IconImage) -> IconImage { - AppDefaults.grayscaleIcons ? iconImage.grayscaleIconImage : iconImage - } - func postFeedIconImageDidChange(_ feeds: Set?) { guard let feeds else { return diff --git a/iOS/Settings/Settings.storyboard b/iOS/Settings/Settings.storyboard index 7f30e5afd..6c718f310 100644 --- a/iOS/Settings/Settings.storyboard +++ b/iOS/Settings/Settings.storyboard @@ -595,7 +595,7 @@ - + diff --git a/iOS/Settings/TimelineCustomizerCollectionViewController.swift b/iOS/Settings/TimelineCustomizerCollectionViewController.swift index 2e52949fb..313480e11 100644 --- a/iOS/Settings/TimelineCustomizerCollectionViewController.swift +++ b/iOS/Settings/TimelineCustomizerCollectionViewController.swift @@ -258,7 +258,7 @@ private extension TimelineCustomizerCollectionViewController { showFeedName: .byline, feedName: "The Fellowship of the Ring", byline: "J. R. R. Tolkien", - iconImage: IconImage.nnwFeedIcon, + iconImage: IconImageCache.shared.displayedIconImage(IconImage.nnwFeedIcon), showIcon: section.showsFeedIcon, numberOfLines: AppDefaults.timelineNumberOfLines, iconSize: AppDefaults.timelineIconSize,