forked from shadowfacts/Tusker
Fix status action account list not adjusting to non-pure-black dark mode
This commit is contained in:
parent
9d2324b587
commit
d1b5126288
|
@ -48,6 +48,7 @@ class StatusActionAccountListCollectionViewController: UIViewController, Collect
|
|||
|
||||
override func loadView() {
|
||||
var accountsConfig = UICollectionLayoutListConfiguration(appearance: .grouped)
|
||||
accountsConfig.backgroundColor = .appGroupedBackground
|
||||
accountsConfig.itemSeparatorHandler = { [unowned self] indexPath, sectionConfig in
|
||||
guard let item = self.dataSource.itemIdentifier(for: indexPath) else {
|
||||
return sectionConfig
|
||||
|
@ -64,6 +65,7 @@ class StatusActionAccountListCollectionViewController: UIViewController, Collect
|
|||
case .status:
|
||||
var config = UICollectionLayoutListConfiguration(appearance: .grouped)
|
||||
config.footerMode = self.showInacurateCountWarning ? .supplementary : .none
|
||||
config.backgroundColor = .appGroupedBackground
|
||||
config.leadingSwipeActionsConfigurationProvider = { [unowned self] in
|
||||
(collectionView.cellForItem(at: $0) as? TimelineStatusCollectionViewCell)?.leadingSwipeActions()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue