Fix status action account list not adjusting to non-pure-black dark mode

This commit is contained in:
Shadowfacts 2023-02-14 22:47:56 -05:00
parent 9d2324b587
commit d1b5126288
1 changed files with 2 additions and 0 deletions

View File

@ -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()
}