Immersive short modal

This commit is contained in:
Thomas Ricouard 2024-05-17 13:56:03 +02:00
parent ba3d8b1882
commit 1578896b3e
3 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ public struct AppAccountsSelectorView: View {
} }
.sheet(isPresented: $isPresented, content: { .sheet(isPresented: $isPresented, content: {
accountsView.presentationDetents([.height(preferredHeight), .large]) accountsView.presentationDetents([.height(preferredHeight), .large])
.presentationBackground(.thinMaterial) .presentationBackground(.ultraThinMaterial)
.presentationCornerRadius(16) .presentationCornerRadius(16)
.onAppear { .onAppear {
refreshAccounts() refreshAccounts()
@ -101,7 +101,7 @@ public struct AppAccountsSelectorView: View {
#endif #endif
} }
#if !os(visionOS) #if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor) .listRowBackground(theme.primaryBackgroundColor.opacity(0.4))
#endif #endif
if accountCreationEnabled { if accountCreationEnabled {
@ -113,7 +113,7 @@ public struct AppAccountsSelectorView: View {
#if os(visionOS) #if os(visionOS)
.foregroundStyle(theme.labelColor) .foregroundStyle(theme.labelColor)
#else #else
.listRowBackground(theme.primaryBackgroundColor) .listRowBackground(theme.primaryBackgroundColor.opacity(0.4))
#endif #endif
} }
} }

View File

@ -47,7 +47,7 @@ struct NotificationsPolicyView: View {
}) })
} }
#if !os(visionOS) #if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor) .listRowBackground(theme.primaryBackgroundColor.opacity(0.3))
#endif #endif
} }
.formStyle(.grouped) .formStyle(.grouped)

View File

@ -30,7 +30,7 @@ public struct TimelineContentFilterView: View {
} }
} }
#if !os(visionOS) #if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor) .listRowBackground(theme.primaryBackgroundColor.opacity(0.3))
#endif #endif
Section { Section {
@ -46,7 +46,7 @@ public struct TimelineContentFilterView: View {
} }
} }
#if !os(visionOS) #if !os(visionOS)
.listRowBackground(theme.primaryBackgroundColor) .listRowBackground(theme.primaryBackgroundColor.opacity(0.3))
#endif #endif
} }
.navigationTitle("timeline.content-filter.title") .navigationTitle("timeline.content-filter.title")