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 @@