mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-04 03:08:43 +00:00
Merge pull request #4918 from stuartbreckenridge/main
Fix for About padding + some minor tweaks
This commit is contained in:
3 files changed
+13
-10
No files matched your search
@@ -31,7 +31,7 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell {
|
||||
unreadCountLabel.isHidden = true
|
||||
} else {
|
||||
unreadCountLabel.isHidden = false
|
||||
updateUnreadCount()
|
||||
updateUnreadCountVisibility()
|
||||
}
|
||||
unreadCountLabel.text = newValue.formatted()
|
||||
}
|
||||
@@ -51,7 +51,7 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell {
|
||||
var disclosureExpanded = true {
|
||||
didSet {
|
||||
updateExpandedState(animate: true)
|
||||
updateUnreadCount()
|
||||
updateUnreadCountVisibility()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,13 +75,13 @@ class MainFeedCollectionViewFolderCell: UICollectionViewCell {
|
||||
}
|
||||
}
|
||||
|
||||
func updateUnreadCount() {
|
||||
if !disclosureExpanded && unreadCount > 0 && unreadCountLabel.alpha != 1 {
|
||||
UIView.animate(withDuration: 0.3) {
|
||||
func updateUnreadCountVisibility() {
|
||||
if !disclosureExpanded && unreadCount > 0 {
|
||||
UIView.animate {
|
||||
self.unreadCountLabel.alpha = 1
|
||||
}
|
||||
} else {
|
||||
UIView.animate(withDuration: 0.3) {
|
||||
UIView.animate {
|
||||
self.unreadCountLabel.alpha = 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,7 +137,9 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
AccountManager.shared.resumeAll()
|
||||
}
|
||||
self.coordinator.selectAllUnreadFeed {
|
||||
self.coordinator.selectArticleInCurrentFeed(id!)
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {
|
||||
self.coordinator.selectArticleInCurrentFeed(id!)
|
||||
}
|
||||
}
|
||||
} else {
|
||||
self.coordinator.selectAllUnreadFeed()
|
||||
@@ -152,7 +154,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
if AccountManager.shared.isSuspended {
|
||||
AccountManager.shared.resumeAll()
|
||||
}
|
||||
self.coordinator.selectTodayFeed {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {
|
||||
self.coordinator.selectArticleInCurrentFeed(id!)
|
||||
}
|
||||
} else {
|
||||
@@ -168,7 +170,7 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
if AccountManager.shared.isSuspended {
|
||||
AccountManager.shared.resumeAll()
|
||||
}
|
||||
self.coordinator.selectStarredFeed {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {
|
||||
self.coordinator.selectArticleInCurrentFeed(id!)
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -29,7 +29,7 @@ struct AboutView: View {
|
||||
.bold()
|
||||
.foregroundStyle(.secondary)
|
||||
.padding(.top, 16)
|
||||
AboutCreditView(contributorType: "Contributing Developers", contributors: [.stuartBreckenridge, .mauriceParker])
|
||||
AboutCreditView(contributorType: "Contributing Developers", contributors: [.mauriceParker, .stuartBreckenridge])
|
||||
AboutCreditView(contributorType: "App Icon", contributors: [.bradEllis])
|
||||
AboutCreditView(contributorType: "Feedly Syncing", contributors: [.keilGillard])
|
||||
AboutCreditView(contributorType: "NewsBlur Syncing", contributors: [.anhDo])
|
||||
@@ -58,6 +58,7 @@ struct AboutView: View {
|
||||
Text(verbatim: "Copyright © 2002-2026 Brent Simmons")
|
||||
.font(.caption)
|
||||
.foregroundStyle(.secondary)
|
||||
.padding(.bottom)
|
||||
}
|
||||
.scenePadding(.horizontal)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user