From d2ca8c031f129ea595fc37025e6397e4879a6bcb Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 7 Nov 2026 16:10:57 -0800 Subject: [PATCH] Create new Timeline settings pane on Mac (the Appearance pane was too long). --- .../AppearancePreferencesViewController.swift | 138 ------ .../Base.lproj/AppearancePreferencesView.xib | 313 +------------- .../AppearancePreferencesView.xcstrings | 396 ----------------- .../PreferencesWindowController.swift | 4 + .../Base.lproj/TimelinePreferencesView.xib | 304 +++++++++++++ .../TimelinePreferencesViewController.swift | 185 ++++++++ .../TimelinePreferencesView.xcstrings | 402 ++++++++++++++++++ Shared/Assets.swift | 1 + 8 files changed, 916 insertions(+), 827 deletions(-) create mode 100644 Mac/Preferences/Timeline/Base.lproj/TimelinePreferencesView.xib create mode 100644 Mac/Preferences/Timeline/TimelinePreferencesViewController.swift create mode 100644 Mac/Preferences/Timeline/mul.lproj/TimelinePreferencesView.xcstrings diff --git a/Mac/Preferences/Appearance/AppearancePreferencesViewController.swift b/Mac/Preferences/Appearance/AppearancePreferencesViewController.swift index f9060d59c..831f7fbfb 100644 --- a/Mac/Preferences/Appearance/AppearancePreferencesViewController.swift +++ b/Mac/Preferences/Appearance/AppearancePreferencesViewController.swift @@ -7,7 +7,6 @@ import AppKit import RSCore -import Images final class AppearancePreferencesViewController: NSViewController { @@ -19,16 +18,6 @@ final class AppearancePreferencesViewController: NSViewController { @IBOutlet var sidebarShowAllUnreadButton: NSButton? @IBOutlet var sidebarShowStarredButton: NSButton? - @IBOutlet var timelineIconsPopup: NSPopUpButton? - @IBOutlet var timelineIconSizePopup: NSPopUpButton? - @IBOutlet var timelineTitleAndSummaryButton: NSButton? - @IBOutlet var timelineNumberOfLinesPopup: NSPopUpButton? - @IBOutlet var timelineFullTitlesButton: NSButton? - @IBOutlet var timelineThumbnailsPopup: NSPopUpButton? - @IBOutlet var timelineTextSizePopup: NSPopUpButton? - @IBOutlet var timelineShowSeparatorsButton: NSButton? - @IBOutlet var timelineFadeReadArticlesButton: NSButton? - @IBOutlet var articleTextSizeLabel: NSTextField? @IBOutlet var articleTextSizePopup: NSPopUpButton? @IBOutlet var articleThemePopup: NSPopUpButton? @@ -59,13 +48,6 @@ final class AppearancePreferencesViewController: NSViewController { updateSidebarShowIconsButton() updateSidebarTextSizePopup() updateSmartFeedsButtons() - updateTimelineFeedIconsPopup() - updateTimelineIconSizePopup() - updateTimelineThumbnailsPopup() - updateTimelineTextSizePopup() - updateTimelineRowsControls() - updateTimelineShowSeparatorsButton() - updateTimelineFadeReadArticlesButton() updateArticleThemePopup() } @@ -95,38 +77,6 @@ final class AppearancePreferencesViewController: NSViewController { updateSmartFeedsButtons() } - @objc func handleTimelineFeedIconsDisplayDidChange(_ notification: Notification) { - updateTimelineFeedIconsPopup() - } - - @objc func handleTimelineIconSizeDidChange(_ notification: Notification) { - updateTimelineIconSizePopup() - } - - @objc func handleTimelineThumbnailsDisplayDidChange(_ notification: Notification) { - updateTimelineThumbnailsPopup() - } - - @objc func handleTimelineTextSizeDidChange(_ notification: Notification) { - updateTimelineTextSizePopup() - } - - @objc func handleTimelineNumberOfLinesDidChange(_ notification: Notification) { - updateTimelineRowsControls() - } - - @objc func handleTimelineShowFullTitlesDidChange(_ notification: Notification) { - updateTimelineRowsControls() - } - - @objc func handleTimelineShowSeparatorsDidChange(_ notification: Notification) { - updateTimelineShowSeparatorsButton() - } - - @objc func handleTimelineFadeReadArticlesDidChange(_ notification: Notification) { - updateTimelineFadeReadArticlesButton() - } - // MARK: - Actions @IBAction func appearancePopUpDidChange(_ sender: Any) { @@ -159,53 +109,6 @@ final class AppearancePreferencesViewController: NSViewController { AppDefaults.showStarredFeed = sender.state == .on } - @IBAction func timelineFeedIconsPopUpDidChange(_ sender: Any) { - guard let tag = timelineIconsPopup?.selectedTag(), let feedIconsDisplay = TimelineFeedIconsDisplay(rawValue: tag) else { - return - } - AppDefaults.timelineFeedIconsDisplay = feedIconsDisplay - } - - @IBAction func timelineIconSizePopUpDidChange(_ sender: Any) { - guard let tag = timelineIconSizePopup?.selectedTag(), let iconSize = IconSize(rawValue: tag) else { - return - } - AppDefaults.timelineIconSize = iconSize - } - - @IBAction func timelineThumbnailsPopUpDidChange(_ sender: Any) { - guard let tag = timelineThumbnailsPopup?.selectedTag(), let thumbnailsDisplay = TimelineThumbnailsDisplay(rawValue: tag) else { - return - } - AppDefaults.timelineThumbnailsDisplay = thumbnailsDisplay - } - - @IBAction func timelineTextSizePopUpDidChange(_ sender: Any) { - guard let tag = timelineTextSizePopup?.selectedTag(), let textSize = TimelineTextSize(rawValue: tag) else { - return - } - AppDefaults.timelineTextSize = textSize - } - - @IBAction func timelineNumberOfLinesPopUpDidChange(_ sender: Any) { - guard let numberOfLines = timelineNumberOfLinesPopup?.selectedTag() else { - return - } - AppDefaults.timelineNumberOfLines = numberOfLines - } - - @IBAction func timelineRowsRadioButtonDidChange(_ sender: NSButton) { - AppDefaults.timelineShowFullTitles = sender === timelineFullTitlesButton - } - - @IBAction func timelineShowSeparatorsDidChange(_ sender: NSButton) { - AppDefaults.timelineShowSeparators = sender.state == .on - } - - @IBAction func timelineFadeReadArticlesDidChange(_ sender: NSButton) { - AppDefaults.timelineFadeReadArticles = sender.state == .on - } - @IBAction func showThemesFolder(_ sender: Any) { let url = URL(fileURLWithPath: ArticleThemesManager.shared.folderPath) NSWorkspace.shared.open(url) @@ -231,14 +134,6 @@ private extension AppearancePreferencesViewController { NotificationCenter.default.addObserver(self, selector: #selector(handleSidebarShowsIconsDidChange(_:)), name: .sidebarShowsIconsDidChange, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(handleSidebarTextSizeDidChange(_:)), name: .sidebarTextSizeDidChange, object: nil) NotificationCenter.default.addObserver(self, selector: #selector(handleSidebarSmartFeedsVisibilityDidChange(_:)), name: .sidebarSmartFeedsVisibilityDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineFeedIconsDisplayDidChange(_:)), name: .timelineFeedIconsDisplayDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineIconSizeDidChange(_:)), name: .timelineIconSizeDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineThumbnailsDisplayDidChange(_:)), name: .timelineThumbnailsDisplayDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineTextSizeDidChange(_:)), name: .timelineTextSizeDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineNumberOfLinesDidChange(_:)), name: .timelineNumberOfLinesDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineShowFullTitlesDidChange(_:)), name: .timelineShowFullTitlesDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineShowSeparatorsDidChange(_:)), name: .timelineShowSeparatorsDidChange, object: nil) - NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineFadeReadArticlesDidChange(_:)), name: .timelineFadeReadArticlesDidChange, object: nil) } /// On macOS 15 the "Article Text Size:" label is vertically misaligned @@ -290,39 +185,6 @@ private extension AppearancePreferencesViewController { sidebarShowStarredButton?.state = AppDefaults.showStarredFeed ? .on : .off } - func updateTimelineFeedIconsPopup() { - timelineIconsPopup?.selectItem(withTag: AppDefaults.timelineFeedIconsDisplay.rawValue) - } - - func updateTimelineIconSizePopup() { - timelineIconSizePopup?.selectItem(withTag: AppDefaults.timelineIconSize.rawValue) - } - - func updateTimelineThumbnailsPopup() { - timelineThumbnailsPopup?.selectItem(withTag: AppDefaults.timelineThumbnailsDisplay.rawValue) - } - - func updateTimelineTextSizePopup() { - timelineTextSizePopup?.selectItem(withTag: AppDefaults.timelineTextSize.rawValue) - } - - /// The number of lines applies only to title and summary, so its popup is disabled with full titles. - func updateTimelineRowsControls() { - let showFullTitles = AppDefaults.timelineShowFullTitles - timelineTitleAndSummaryButton?.state = showFullTitles ? .off : .on - timelineFullTitlesButton?.state = showFullTitles ? .on : .off - timelineNumberOfLinesPopup?.selectItem(withTag: AppDefaults.timelineNumberOfLines) - timelineNumberOfLinesPopup?.isEnabled = !showFullTitles - } - - func updateTimelineShowSeparatorsButton() { - timelineShowSeparatorsButton?.state = AppDefaults.timelineShowSeparators ? .on : .off - } - - func updateTimelineFadeReadArticlesButton() { - timelineFadeReadArticlesButton?.state = AppDefaults.timelineFadeReadArticles ? .on : .off - } - func updateArticleThemePopup() { guard let articleThemePopup, let menu = articleThemePopup.menu else { return diff --git a/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib b/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib index 529b9e540..9d9ecf29e 100644 --- a/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib +++ b/Mac/Preferences/Appearance/Base.lproj/AppearancePreferencesView.xib @@ -16,29 +16,20 @@ - - - - - - - - - - + - + - + @@ -46,7 +37,7 @@ - + @@ -67,10 +58,10 @@ - + - + @@ -78,7 +69,7 @@ - + @@ -96,7 +87,7 @@ - + @@ -120,7 +111,7 @@ - + @@ -128,7 +119,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -378,7 +160,7 @@ - + @@ -410,7 +192,7 @@ - + @@ -418,7 +200,7 @@ - + @@ -433,7 +215,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Mac/Preferences/Timeline/TimelinePreferencesViewController.swift b/Mac/Preferences/Timeline/TimelinePreferencesViewController.swift new file mode 100644 index 000000000..c0740929c --- /dev/null +++ b/Mac/Preferences/Timeline/TimelinePreferencesViewController.swift @@ -0,0 +1,185 @@ +// +// TimelinePreferencesViewController.swift +// NetNewsWire +// +// Created by Brent Simmons on 11/7/26. +// + +import AppKit +import RSCore +import Images + +final class TimelinePreferencesViewController: NSViewController { + + @IBOutlet var timelineIconsPopup: NSPopUpButton? + @IBOutlet var timelineIconSizePopup: NSPopUpButton? + @IBOutlet var timelineTitleAndSummaryButton: NSButton? + @IBOutlet var timelineNumberOfLinesPopup: NSPopUpButton? + @IBOutlet var timelineFullTitlesButton: NSButton? + @IBOutlet var timelineThumbnailsPopup: NSPopUpButton? + @IBOutlet var timelineTextSizePopup: NSPopUpButton? + @IBOutlet var timelineShowSeparatorsButton: NSButton? + @IBOutlet var timelineFadeReadArticlesButton: NSButton? + + convenience init() { + self.init(nibName: "TimelinePreferencesView", bundle: nil) + } + + override init(nibName nibNameOrNil: NSNib.Name?, bundle nibBundleOrNil: Bundle?) { + super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) + commonInit() + } + + required init?(coder: NSCoder) { + super.init(coder: coder) + commonInit() + } + + override func viewDidLoad() { + super.viewDidLoad() + view.sizeToFittingSize() + } + + override func viewWillAppear() { + super.viewWillAppear() + updateTimelineFeedIconsPopup() + updateTimelineIconSizePopup() + updateTimelineThumbnailsPopup() + updateTimelineTextSizePopup() + updateTimelineRowsControls() + updateTimelineShowSeparatorsButton() + updateTimelineFadeReadArticlesButton() + } + + // MARK: - Notifications + + @objc func handleTimelineFeedIconsDisplayDidChange(_ notification: Notification) { + updateTimelineFeedIconsPopup() + } + + @objc func handleTimelineIconSizeDidChange(_ notification: Notification) { + updateTimelineIconSizePopup() + } + + @objc func handleTimelineThumbnailsDisplayDidChange(_ notification: Notification) { + updateTimelineThumbnailsPopup() + } + + @objc func handleTimelineTextSizeDidChange(_ notification: Notification) { + updateTimelineTextSizePopup() + } + + @objc func handleTimelineNumberOfLinesDidChange(_ notification: Notification) { + updateTimelineRowsControls() + } + + @objc func handleTimelineShowFullTitlesDidChange(_ notification: Notification) { + updateTimelineRowsControls() + } + + @objc func handleTimelineShowSeparatorsDidChange(_ notification: Notification) { + updateTimelineShowSeparatorsButton() + } + + @objc func handleTimelineFadeReadArticlesDidChange(_ notification: Notification) { + updateTimelineFadeReadArticlesButton() + } + + // MARK: - Actions + + @IBAction func timelineFeedIconsPopUpDidChange(_ sender: Any) { + guard let tag = timelineIconsPopup?.selectedTag(), let feedIconsDisplay = TimelineFeedIconsDisplay(rawValue: tag) else { + return + } + AppDefaults.timelineFeedIconsDisplay = feedIconsDisplay + } + + @IBAction func timelineIconSizePopUpDidChange(_ sender: Any) { + guard let tag = timelineIconSizePopup?.selectedTag(), let iconSize = IconSize(rawValue: tag) else { + return + } + AppDefaults.timelineIconSize = iconSize + } + + @IBAction func timelineThumbnailsPopUpDidChange(_ sender: Any) { + guard let tag = timelineThumbnailsPopup?.selectedTag(), let thumbnailsDisplay = TimelineThumbnailsDisplay(rawValue: tag) else { + return + } + AppDefaults.timelineThumbnailsDisplay = thumbnailsDisplay + } + + @IBAction func timelineTextSizePopUpDidChange(_ sender: Any) { + guard let tag = timelineTextSizePopup?.selectedTag(), let textSize = TimelineTextSize(rawValue: tag) else { + return + } + AppDefaults.timelineTextSize = textSize + } + + @IBAction func timelineNumberOfLinesPopUpDidChange(_ sender: Any) { + guard let numberOfLines = timelineNumberOfLinesPopup?.selectedTag() else { + return + } + AppDefaults.timelineNumberOfLines = numberOfLines + } + + @IBAction func timelineRowsRadioButtonDidChange(_ sender: NSButton) { + AppDefaults.timelineShowFullTitles = sender === timelineFullTitlesButton + } + + @IBAction func timelineShowSeparatorsDidChange(_ sender: NSButton) { + AppDefaults.timelineShowSeparators = sender.state == .on + } + + @IBAction func timelineFadeReadArticlesDidChange(_ sender: NSButton) { + AppDefaults.timelineFadeReadArticles = sender.state == .on + } +} + +// MARK: - Private + +private extension TimelinePreferencesViewController { + + func commonInit() { + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineFeedIconsDisplayDidChange(_:)), name: .timelineFeedIconsDisplayDidChange, object: nil) + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineIconSizeDidChange(_:)), name: .timelineIconSizeDidChange, object: nil) + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineThumbnailsDisplayDidChange(_:)), name: .timelineThumbnailsDisplayDidChange, object: nil) + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineTextSizeDidChange(_:)), name: .timelineTextSizeDidChange, object: nil) + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineNumberOfLinesDidChange(_:)), name: .timelineNumberOfLinesDidChange, object: nil) + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineShowFullTitlesDidChange(_:)), name: .timelineShowFullTitlesDidChange, object: nil) + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineShowSeparatorsDidChange(_:)), name: .timelineShowSeparatorsDidChange, object: nil) + NotificationCenter.default.addObserver(self, selector: #selector(handleTimelineFadeReadArticlesDidChange(_:)), name: .timelineFadeReadArticlesDidChange, object: nil) + } + + func updateTimelineFeedIconsPopup() { + timelineIconsPopup?.selectItem(withTag: AppDefaults.timelineFeedIconsDisplay.rawValue) + } + + func updateTimelineIconSizePopup() { + timelineIconSizePopup?.selectItem(withTag: AppDefaults.timelineIconSize.rawValue) + } + + func updateTimelineThumbnailsPopup() { + timelineThumbnailsPopup?.selectItem(withTag: AppDefaults.timelineThumbnailsDisplay.rawValue) + } + + func updateTimelineTextSizePopup() { + timelineTextSizePopup?.selectItem(withTag: AppDefaults.timelineTextSize.rawValue) + } + + /// The number of lines applies only to title and summary, so its popup is disabled with full titles. + func updateTimelineRowsControls() { + let showFullTitles = AppDefaults.timelineShowFullTitles + timelineTitleAndSummaryButton?.state = showFullTitles ? .off : .on + timelineFullTitlesButton?.state = showFullTitles ? .on : .off + timelineNumberOfLinesPopup?.selectItem(withTag: AppDefaults.timelineNumberOfLines) + timelineNumberOfLinesPopup?.isEnabled = !showFullTitles + } + + func updateTimelineShowSeparatorsButton() { + timelineShowSeparatorsButton?.state = AppDefaults.timelineShowSeparators ? .on : .off + } + + func updateTimelineFadeReadArticlesButton() { + timelineFadeReadArticlesButton?.state = AppDefaults.timelineFadeReadArticles ? .on : .off + } +} diff --git a/Mac/Preferences/Timeline/mul.lproj/TimelinePreferencesView.xcstrings b/Mac/Preferences/Timeline/mul.lproj/TimelinePreferencesView.xcstrings new file mode 100644 index 000000000..605a5beeb --- /dev/null +++ b/Mac/Preferences/Timeline/mul.lproj/TimelinePreferencesView.xcstrings @@ -0,0 +1,402 @@ +{ + "sourceLanguage" : "en", + "strings" : { + "tlB-fR-0c1.title" : { + "comment" : "Class = \"NSButtonCell\"; title = \"Fade read articles\"; ObjectID = \"tlB-fR-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Fade read articles" + } + } + } + }, + "tlB-sP-0c1.title" : { + "comment" : "Class = \"NSButtonCell\"; title = \"Show separators\"; ObjectID = \"tlB-sP-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Show separators" + } + } + } + }, + "tlL-fI-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Feed Icons:\"; ObjectID = \"tlL-fI-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Feed Icons:" + } + } + } + }, + "tlL-fS-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Feed Icon Size:\"; ObjectID = \"tlL-fS-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Feed Icon Size:" + } + } + } + }, + "tlL-ln-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"lines\"; ObjectID = \"tlL-ln-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "lines" + } + } + } + }, + "tlL-nL-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Rows:\"; ObjectID = \"tlL-nL-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Rows:" + } + } + } + }, + "tlL-tH-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Thumbnails:\"; ObjectID = \"tlL-tH-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Thumbnails:" + } + } + } + }, + "tlL-tX-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Text Size:\"; ObjectID = \"tlL-tX-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Text Size:" + } + } + } + }, + "tlM-fD-0m0.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Automatic\"; ObjectID = \"tlM-fD-0m0\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Automatic" + } + } + } + }, + "tlM-fD-0m1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Always\"; ObjectID = \"tlM-fD-0m1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Always" + } + } + } + }, + "tlM-fD-0m2.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Never\"; ObjectID = \"tlM-fD-0m2\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Never" + } + } + } + }, + "tlM-fS-0m1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Small\"; ObjectID = \"tlM-fS-0m1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Small" + } + } + } + }, + "tlM-fS-0m2.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Medium\"; ObjectID = \"tlM-fS-0m2\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Medium" + } + } + } + }, + "tlM-fS-0m3.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Large\"; ObjectID = \"tlM-fS-0m3\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Large" + } + } + } + }, + "tlM-nL-0m1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"1\"; ObjectID = \"tlM-nL-0m1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "1" + } + } + } + }, + "tlM-nL-0m2.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"2\"; ObjectID = \"tlM-nL-0m2\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "2" + } + } + } + }, + "tlM-nL-0m3.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"3\"; ObjectID = \"tlM-nL-0m3\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "3" + } + } + } + }, + "tlM-nL-0m4.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"4\"; ObjectID = \"tlM-nL-0m4\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "4" + } + } + } + }, + "tlM-nL-0m5.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"5\"; ObjectID = \"tlM-nL-0m5\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "5" + } + } + } + }, + "tlM-nL-0m6.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"6\"; ObjectID = \"tlM-nL-0m6\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "6" + } + } + } + }, + "tlM-tS-0m0.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"None\"; ObjectID = \"tlM-tS-0m0\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "None" + } + } + } + }, + "tlM-tS-0m1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Small\"; ObjectID = \"tlM-tS-0m1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Small" + } + } + } + }, + "tlM-tS-0m2.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Large\"; ObjectID = \"tlM-tS-0m2\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Large" + } + } + } + }, + "tlM-tX-0m1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Small\"; ObjectID = \"tlM-tX-0m1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Small" + } + } + } + }, + "tlM-tX-0m2.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Medium\"; ObjectID = \"tlM-tX-0m2\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Medium" + } + } + } + }, + "tlM-tX-0m3.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Large\"; ObjectID = \"tlM-tX-0m3\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Large" + } + } + } + }, + "tlM-tX-0m4.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Extra Large\"; ObjectID = \"tlM-tX-0m4\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Extra Large" + } + } + } + }, + "tlM-tX-0m5.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Extra Extra Large\"; ObjectID = \"tlM-tX-0m5\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Extra Extra Large" + } + } + } + }, + "tlN-cL-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Feed icon size, thumbnails, rows, and separators apply only to the standard layout.\"; ObjectID = \"tlN-cL-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Feed icon size, thumbnails, rows, and separators apply only to the standard layout." + } + } + } + }, + "tlN-fD-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Automatic shows icons for folders, smart feeds, and authors with avatars.\"; ObjectID = \"tlN-fD-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Automatic shows icons for folders, smart feeds, and authors with avatars." + } + } + } + }, + "tlN-fT-0c1.title" : { + "comment" : "Class = \"NSTextFieldCell\"; title = \"Shows the whole title, up to 12 lines.\"; ObjectID = \"tlN-fT-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Shows the whole title, up to 12 lines." + } + } + } + }, + "tlR-fT-0c1.title" : { + "comment" : "Class = \"NSButtonCell\"; title = \"Full title, no preview\"; ObjectID = \"tlR-fT-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Full title, no preview" + } + } + } + }, + "tlR-tP-0c1.title" : { + "comment" : "Class = \"NSButtonCell\"; title = \"Title and preview, in\"; ObjectID = \"tlR-tP-0c1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Title and preview, in" + } + } + } + } + }, + "version" : "1.2" +} \ No newline at end of file diff --git a/Shared/Assets.swift b/Shared/Assets.swift index dd4513b35..1d0e5c806 100644 --- a/Shared/Assets.swift +++ b/Shared/Assets.swift @@ -62,6 +62,7 @@ struct Assets { static let preferencesToolbarAccounts = RSImage(symbol: "at")! static let preferencesToolbarGeneral = RSImage(symbol: "gearshape")! static var preferencesToolbarAppearance: RSImage { RSImage(named: "preferencesToolbarAppearance")! } + static let preferencesToolbarTimeline = RSImage(symbol: "list.bullet.rectangle")! static let preferencesToolbarAdvanced = RSImage(symbol: "gearshape.2")! static let readClosed = RSImage(symbol: "largecircle.fill.circle")! static let readOpen = RSImage(symbol: "circle")!