Procházet zdrojové kódy

cleanup unused code

lingering from LA cherry picks
Mike Plante před 2 roky
rodič
revize
426cd7c29c

+ 1 - 22
FreeAPS/Sources/Modules/NotificationsConfig/View/NotificationsConfigRootView.swift

@@ -34,27 +34,6 @@ extension NotificationsConfig {
             return formatter
         }
 
-        @Environment(\.colorScheme) var colorScheme
-
-        var color: LinearGradient {
-            colorScheme == .dark ? LinearGradient(
-                gradient: Gradient(colors: [
-                    Color("Background_1"),
-                    Color("Background_1"),
-                    Color("Background_2")
-                    // Color("Background_1")
-                ]),
-                startPoint: .top,
-                endPoint: .bottom
-            )
-                :
-                LinearGradient(
-                    gradient: Gradient(colors: [Color.gray.opacity(0.1)]),
-                    startPoint: .top,
-                    endPoint: .bottom
-                )
-        }
-
         @ViewBuilder private func liveActivitySection() -> some View {
             if #available(iOS 16.2, *) {
                 Section(
@@ -132,7 +111,7 @@ extension NotificationsConfig {
                 }
 
                 liveActivitySection()
-            }.scrollContentBackground(.hidden).background(color)
+            }.scrollContentBackground(.hidden)
                 .onAppear(perform: configureView)
                 .navigationBarTitle("Notifications")
                 .navigationBarTitleDisplayMode(.automatic)