Deniz Cengiz 1 год назад
Родитель
Сommit
e469ee191a

+ 1 - 1
Trio/Sources/Modules/Stat/View/ViewElements/BolusStatsView.swift

@@ -415,7 +415,7 @@ private struct BolusSelectionPopover: View {
         .padding(20)
         .background(
             RoundedRectangle(cornerRadius: 10)
-                .fill(Color.blue.gradient)
+                .fill(Color.insulin)
         )
     }
 }

+ 1 - 1
Trio/Sources/Modules/Stat/View/ViewElements/GlucosePercentileChart.swift

@@ -244,7 +244,7 @@ struct AGPSelectionPopover: View {
         .padding(20)
         .background {
             RoundedRectangle(cornerRadius: 10)
-                .fill(Color.blue.gradient)
+                .fill(Color.blue)
         }
     }
 }

+ 1 - 1
Trio/Sources/Modules/Stat/View/ViewElements/LoopStatsView.swift

@@ -14,7 +14,7 @@ struct LoopStatsView: View {
                     y: .value("Category", data.category)
                 )
                 .cornerRadius(5)
-                .foregroundStyle(data.category == "Successful Loops" ? Color.blue.gradient : Color.green.gradient)
+                .foregroundStyle(data.category == "Successful Loops" ? Color.blue : Color.green)
                 .annotation(position: .overlay) {
                     HStack {
                         Text(annotationText(for: data))

+ 1 - 1
Trio/Sources/Modules/Stat/View/ViewElements/MealStatsView.swift

@@ -480,7 +480,7 @@ private struct MealSelectionPopover: View {
         .padding(20)
         .background(
             RoundedRectangle(cornerRadius: 10)
-                .fill(Color.orange.gradient)
+                .fill(Color.orange)
         )
     }
 }

+ 2 - 2
Trio/Sources/Modules/Stat/View/ViewElements/SectorChart.swift

@@ -33,7 +33,7 @@ struct SectorChart: View {
                         angularInset: 1.5
                     )
                     .cornerRadius(3)
-                    .foregroundStyle(data.color.gradient)
+                    .foregroundStyle(data.color)
                     .annotation(position: .overlay, alignment: .center, spacing: 0) {
                         if data.percentage > 0 {
                             Text("\(Int(data.percentage))%")
@@ -234,7 +234,7 @@ private struct RangeDetailPopover: View {
         .padding(20)
         .background {
             RoundedRectangle(cornerRadius: 10)
-                .fill(data.color.gradient)
+                .fill(data.color)
         }
     }
 

+ 1 - 1
Trio/Sources/Modules/Stat/View/ViewElements/TDDChart.swift

@@ -325,7 +325,7 @@ private struct TDDSelectionPopover: View {
         .padding(20)
         .background {
             RoundedRectangle(cornerRadius: 10)
-                .fill(Color.insulin.gradient)
+                .fill(Color.insulin)
         }
     }
 }