mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 10:47:21 +00:00
Normalize filter button status display between sidebar and timeline and across iOS 17/18/26.
This commit is contained in:
1 parent
cdefbbf7e2
commit
3dfaf3e707
2 files changed
+2
-8
No files matched your search
@@ -927,16 +927,10 @@ private extension MainTimelineModernViewController {
|
||||
navigationItem.rightBarButtonItem = shouldShowFilterButton ? filterButton : nil
|
||||
|
||||
if isReadArticlesFiltered {
|
||||
if #available(iOS 26, *) {
|
||||
filterButton.style = .prominent
|
||||
} else {
|
||||
filterButton.style = .done
|
||||
}
|
||||
filterButton.tintColor = Assets.Colors.primaryAccent
|
||||
filterButton.accLabelText = NSLocalizedString("Selected - Filter Read Articles", comment: "Selected - Filter Read Articles")
|
||||
} else {
|
||||
filterButton.style = .plain
|
||||
filterButton.tintColor = nil
|
||||
filterButton.tintColor = .label
|
||||
filterButton.accLabelText = NSLocalizedString("Filter Read Articles", comment: "Filter Read Articles")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user