Support dark mode for small avatars on iOS

This commit is contained in:
Maurice Parker
2019-06-20 11:58:26 -05:00
parent 6c55fdd8ec
commit 2ee72125ba
6 changed files with 55 additions and 48 deletions

View File

@@ -73,6 +73,19 @@ class MasterTimelineViewController: ProgressTableViewController, UndoableCommand
}
}
override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
super.traitCollectionDidChange(previousTraitCollection)
if traitCollection.userInterfaceStyle != previousTraitCollection?.userInterfaceStyle {
appDelegate.authorAvatarDownloader.resetCache()
appDelegate.feedIconDownloader.resetCache()
appDelegate.faviconDownloader.resetCache()
performBlockAndRestoreSelection {
tableView.reloadData()
}
}
}
// MARK Actions
@IBAction func markAllAsRead(_ sender: Any) {