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() {
|
override func loadView() {
|
||||||
var accountsConfig = UICollectionLayoutListConfiguration(appearance: .grouped)
|
var accountsConfig = UICollectionLayoutListConfiguration(appearance: .grouped)
|
||||||
|
accountsConfig.backgroundColor = .appGroupedBackground
|
||||||
accountsConfig.itemSeparatorHandler = { [unowned self] indexPath, sectionConfig in
|
accountsConfig.itemSeparatorHandler = { [unowned self] indexPath, sectionConfig in
|
||||||
guard let item = self.dataSource.itemIdentifier(for: indexPath) else {
|
guard let item = self.dataSource.itemIdentifier(for: indexPath) else {
|
||||||
return sectionConfig
|
return sectionConfig
|
||||||
|
@ -64,6 +65,7 @@ class StatusActionAccountListCollectionViewController: UIViewController, Collect
|
||||||
case .status:
|
case .status:
|
||||||
var config = UICollectionLayoutListConfiguration(appearance: .grouped)
|
var config = UICollectionLayoutListConfiguration(appearance: .grouped)
|
||||||
config.footerMode = self.showInacurateCountWarning ? .supplementary : .none
|
config.footerMode = self.showInacurateCountWarning ? .supplementary : .none
|
||||||
|
config.backgroundColor = .appGroupedBackground
|
||||||
config.leadingSwipeActionsConfigurationProvider = { [unowned self] in
|
config.leadingSwipeActionsConfigurationProvider = { [unowned self] in
|
||||||
(collectionView.cellForItem(at: $0) as? TimelineStatusCollectionViewCell)?.leadingSwipeActions()
|
(collectionView.cellForItem(at: $0) as? TimelineStatusCollectionViewCell)?.leadingSwipeActions()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue