diff --git a/Tusker/Screens/Conversation/ExpandThreadCollectionViewCell.swift b/Tusker/Screens/Conversation/ExpandThreadCollectionViewCell.swift index 260dfa5d..62275b76 100644 --- a/Tusker/Screens/Conversation/ExpandThreadCollectionViewCell.swift +++ b/Tusker/Screens/Conversation/ExpandThreadCollectionViewCell.swift @@ -144,7 +144,15 @@ class ExpandThreadCollectionViewCell: UICollectionViewListCell { } override func updateConfiguration(using state: UICellConfigurationState) { - backgroundConfiguration = .appListPlainCell(for: state) + var config = UIBackgroundConfiguration.listGroupedCell().updated(for: state) + if state.isFocused { + // use default + } else if state.isHighlighted || state.isSelected { + config.backgroundColor = .appSelectedCellBackground + } else { + config.backgroundColor = .appSecondaryBackground + } + backgroundConfiguration = config } }