💄 Make backgrounds behave in light/dark modes

This commit is contained in:
Stuart Breckenridge committed 2026-01-27 22:32:01 +08:00
1 parent f120b1a280
commit 5ad3e51549
2 files changed
+2 -2

No files matched your search

@@ -298,7 +298,7 @@ class MainTimelineCollectionViewCell: UICollectionViewCell {
updateIndicatorView(state)
if isPreview {
backgroundConfig.backgroundColor = .secondarySystemBackground
backgroundConfig.backgroundColor = traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white
topSeparator.alpha = 0.0
}
+1 -1
View File
@@ -49,7 +49,7 @@ final class TimelineCustomizerCell: UICollectionViewCell {
override func updateConfiguration(using state: UICellConfigurationState) {
var backgroundConfig = UIBackgroundConfiguration.listCell().updated(for: state)
backgroundConfig.backgroundColor = .secondarySystemBackground
backgroundConfig.backgroundColor = traitCollection.userInterfaceStyle == .dark ? .secondarySystemBackground : .white
backgroundConfig.cornerRadius = 20
self.backgroundConfiguration = backgroundConfig
}