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

View file

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

View file

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