Bladeren bron

Revert color scheme change for sheet and contents

Deniz Cengiz 1 jaar geleden
bovenliggende
commit
d67c3dadb5
1 gewijzigde bestanden met toevoegingen van 3 en 5 verwijderingen
  1. 3 5
      FreeAPS/Sources/Modules/Home/View/Chart/ChartLegendView.swift

+ 3 - 5
FreeAPS/Sources/Modules/Home/View/Chart/ChartLegendView.swift

@@ -32,7 +32,7 @@ struct ChartLegendView: View {
                         } else {
                             legendConeOfUncertaintyView
                         }
-                    }.listRowBackground(Color.chart)
+                    }
 
                     VStack(alignment: .leading) {
                         Text("Other Elements & Shapes").bold().padding(.bottom, 5).textCase(.uppercase)
@@ -114,7 +114,7 @@ struct ChartLegendView: View {
                             color: Color.orange.opacity(0.8),
                             iconString: "line.diagonal"
                         )
-                    }.listRowBackground(Color.chart)
+                    }
                 }
                 .navigationBarTitle("Chart Legend", displayMode: .inline)
                 .padding(.trailing, 10)
@@ -132,8 +132,6 @@ struct ChartLegendView: View {
             .padding([.horizontal, .bottom])
             .listSectionSpacing(10)
             .ignoresSafeArea(edges: .top)
-            .scrollContentBackground(.hidden)
-            .background(appState.trioBackgroundColor(for: colorScheme))
             .presentationDetents(
                 [.fraction(0.9), .large],
                 selection: $legendSheetDetent
@@ -189,6 +187,6 @@ struct ChartLegendView: View {
                 )
             },
             color: Color.blue.opacity(0.5)
-        ).listRowBackground(Color.chart)
+        )
     }
 }