From d1b51262886d508ac6305f937a4337bcaa8b942d Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 14 Feb 2023 22:47:56 -0500 Subject: [PATCH] Fix status action account list not adjusting to non-pure-black dark mode --- .../StatusActionAccountListCollectionViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift b/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift index 4d8e4dc4..dc62d481 100644 --- a/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift +++ b/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift @@ -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() }