Add explanation for grayscale icons.

This commit is contained in:
Brent Simmons committed 2026-11-09 09:32:51 -08:00
1 parent b528ad3d5f
commit cdaaef1dcf
5 files changed
+36 -12

No files matched your search

@@ -23,14 +23,14 @@
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application" customClass="NSObject"/>
<view id="apV-iw-0v1">
<rect key="frame" x="0.0" y="0.0" width="515" height="394"/>
<rect key="frame" x="0.0" y="0.0" width="515" height="430"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<customView translatesAutoresizingMaskIntoConstraints="NO" id="apC-nT-0c1">
<rect key="frame" x="74" y="20" width="368" height="354"/>
<rect key="frame" x="74" y="20" width="368" height="390"/>
<subviews>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="apL-cM-0l1">
<rect key="frame" x="-2" y="334" width="113" height="16"/>
<rect key="frame" x="-2" y="370" width="113" height="16"/>
<textFieldCell key="cell" lineBreakMode="truncatingTail" sendsActionOnEndEditing="YES" alignment="right" title="Appearance:" id="apL-cM-0c1">
<font key="font" metaFont="system"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
@@ -38,7 +38,7 @@
</textFieldCell>
</textField>
<popUpButton verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="apP-cM-0p1">
<rect key="frame" x="117" y="330" width="250" height="24"/>
<rect key="frame" x="117" y="366" width="250" height="24"/>
<popUpButtonCell key="cell" type="push" title="System" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="apM-cM-0m0" id="apP-cM-0c1">
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
<font key="font" metaFont="message"/>
@@ -59,7 +59,7 @@
</connections>
</popUpButton>
<button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="gyB-iC-0b1">
<rect key="frame" x="117" y="302" width="251" height="16"/>
<rect key="frame" x="117" y="338" width="251" height="16"/>
<buttonCell key="cell" type="check" title="Grayscale icons" bezelStyle="regularSquare" imagePosition="left" inset="2" id="gyB-iC-0c1">
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
<font key="font" metaFont="system"/>
@@ -68,6 +68,14 @@
<action selector="grayscaleIconsDidChange:" target="-2" id="gyA-iC-0a1"/>
</connections>
</button>
<textField focusRingType="none" horizontalHuggingPriority="251" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" translatesAutoresizingMaskIntoConstraints="NO" id="gyL-iC-0l1">
<rect key="frame" x="137" y="302" width="233" height="28"/>
<textFieldCell key="cell" controlSize="small" title="This is for feed icons and author avatars. Article thumbnails remain in color." id="gyL-iC-0c1">
<font key="font" usesAppearanceFont="YES"/>
<color key="textColor" name="secondaryLabelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
</textField>
<box verticalHuggingPriority="750" boxType="separator" translatesAutoresizingMaskIntoConstraints="NO" id="sp1-Bx-0s1">
<rect key="frame" x="0.0" y="279" width="367" height="5"/>
</box>
@@ -245,7 +253,10 @@
<constraint firstItem="gyB-iC-0b1" firstAttribute="top" secondItem="apP-cM-0p1" secondAttribute="bottom" constant="12" id="g01-Ly-Out"/>
<constraint firstItem="gyB-iC-0b1" firstAttribute="leading" secondItem="apP-cM-0p1" secondAttribute="leading" id="g02-Ly-Out"/>
<constraint firstAttribute="trailing" secondItem="gyB-iC-0b1" secondAttribute="trailing" id="g03-Ly-Out"/>
<constraint firstItem="sp1-Bx-0s1" firstAttribute="top" secondItem="gyB-iC-0b1" secondAttribute="bottom" constant="20" id="c06-Ly-Out"/>
<constraint firstItem="gyL-iC-0l1" firstAttribute="top" secondItem="gyB-iC-0b1" secondAttribute="bottom" constant="8" id="g04-Ly-Out"/>
<constraint firstItem="gyL-iC-0l1" firstAttribute="leading" secondItem="gyB-iC-0b1" secondAttribute="leading" constant="22" id="g05-Ly-Out"/>
<constraint firstAttribute="trailing" secondItem="gyL-iC-0l1" secondAttribute="trailing" id="g06-Ly-Out"/>
<constraint firstItem="sp1-Bx-0s1" firstAttribute="top" secondItem="gyL-iC-0l1" secondAttribute="bottom" constant="20" id="c06-Ly-Out"/>
<constraint firstItem="sp1-Bx-0s1" firstAttribute="leading" secondItem="apC-nT-0c1" secondAttribute="leading" id="c07-Ly-Out"/>
<constraint firstAttribute="trailing" secondItem="sp1-Bx-0s1" secondAttribute="trailing" constant="1" id="c08-Ly-Out"/>
<constraint firstItem="sbB-fI-0b1" firstAttribute="top" secondItem="sp1-Bx-0s1" secondAttribute="bottom" constant="20" id="c09-Ly-Out"/>
@@ -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",
+5 -4
View File
@@ -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<Feed>?) {
guard let feeds else {
return
+1 -1
View File
@@ -595,7 +595,7 @@
</tableViewCell>
</cells>
</tableViewSection>
<tableViewSection headerTitle="Appearance" id="TkH-4v-yhk">
<tableViewSection headerTitle="Appearance" footerTitle="This is for feed icons and author avatars. Article thumbnails remain in color." id="TkH-4v-yhk">
<cells>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="10" id="EvG-yE-gDF" customClass="VibrantBasicTableViewCell" customModule="NetNewsWire" customModuleProvider="target">
<rect key="frame" x="20" y="1152" width="374" height="51"/>
@@ -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,