mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
💄 Make backgrounds behave in light/dark modes
This commit is contained in:
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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user