From 5ad3e5154957cd1df9817c3eab9f21207b97faf5 Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Tue, 27 Jan 2026 22:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Make=20backgrounds=20behave=20in?= =?UTF-8?q?=20light/dark=20modes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift | 2 +- iOS/Settings/TimelineCustomizerCell.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift b/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift index 6b7ee3113..ee2319c19 100644 --- a/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift +++ b/iOS/MainTimeline/Cells/MainTimelineCollectionViewCell.swift @@ -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 } diff --git a/iOS/Settings/TimelineCustomizerCell.swift b/iOS/Settings/TimelineCustomizerCell.swift index 42bce8efd..8b10a612a 100644 --- a/iOS/Settings/TimelineCustomizerCell.swift +++ b/iOS/Settings/TimelineCustomizerCell.swift @@ -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 }