From 1578896b3e02c6343fa054649f0352cc547dec31 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Fri, 17 May 2024 13:56:03 +0200 Subject: [PATCH] Immersive short modal --- .../Sources/AppAccount/AppAccountsSelectorView.swift | 6 +++--- .../Sources/Notifications/NotificationsPolicyView.swift | 2 +- .../Sources/Timeline/View/TimelineContentFilterView.swift | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift b/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift index e1d8841d..2f6ef423 100644 --- a/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift +++ b/Packages/AppAccount/Sources/AppAccount/AppAccountsSelectorView.swift @@ -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 } } diff --git a/Packages/Notifications/Sources/Notifications/NotificationsPolicyView.swift b/Packages/Notifications/Sources/Notifications/NotificationsPolicyView.swift index 730c2cbb..fc637edb 100644 --- a/Packages/Notifications/Sources/Notifications/NotificationsPolicyView.swift +++ b/Packages/Notifications/Sources/Notifications/NotificationsPolicyView.swift @@ -47,7 +47,7 @@ struct NotificationsPolicyView: View { }) } #if !os(visionOS) - .listRowBackground(theme.primaryBackgroundColor) + .listRowBackground(theme.primaryBackgroundColor.opacity(0.3)) #endif } .formStyle(.grouped) diff --git a/Packages/Timeline/Sources/Timeline/View/TimelineContentFilterView.swift b/Packages/Timeline/Sources/Timeline/View/TimelineContentFilterView.swift index 15528a21..39caf1e4 100644 --- a/Packages/Timeline/Sources/Timeline/View/TimelineContentFilterView.swift +++ b/Packages/Timeline/Sources/Timeline/View/TimelineContentFilterView.swift @@ -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")