Make sure the Tab Rail's background matches the split view's detail background. (#6003)

This commit is contained in:
Doug
2026-08-11 11:07:24 +01:00
committed by GitHub
parent d57c376b21
commit 2228da3eb9
6 changed files with 59 additions and 12 deletions
@@ -24,11 +24,13 @@ public extension View {
environment(\.defaultMinListRowHeight, 48)
.scrollContentBackground(.hidden)
.background(Color.compound.bgSubtleSecondaryLevel0.ignoresSafeArea())
.preference(key: CompoundBackgroundPreferenceKey.self, value: .color(.compound.bgSubtleSecondaryLevel0))
case .plain:
listStyle(.plain)
.environment(\.defaultMinListRowHeight, 48)
.scrollContentBackground(.hidden)
.background(Color.compound.bgCanvasDefault.ignoresSafeArea())
.preference(key: CompoundBackgroundPreferenceKey.self, value: .default)
}
}