bastiaanv hai 7 meses
pai
achega
5420be1f4c
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      Trio/Sources/Modules/Home/View/Header/PumpView.swift

+ 9 - 1
Trio/Sources/Modules/Home/View/Header/PumpView.swift

@@ -112,7 +112,7 @@ struct PumpView: View {
         HStack {
         HStack {
             Image(systemName: hourglassIcon)
             Image(systemName: hourglassIcon)
                 .font(.callout)
                 .font(.callout)
-                .foregroundStyle(timerColor, Color.yellow)
+                .foregroundStyle(timerColor, timerColorSecondary)
                 .symbolRenderingMode(.palette)
                 .symbolRenderingMode(.palette)
 
 
             let remainingTimeString = isExpiration ?
             let remainingTimeString = isExpiration ?
@@ -227,6 +227,14 @@ struct PumpView: View {
             return Color.loopGreen
             return Color.loopGreen
         }
         }
     }
     }
+
+    private var timerColorSecondary: Color {
+        if activatedAtDate != nil {
+            return Color.gray
+        }
+
+        return Color.yellow
+    }
 }
 }
 
 
 // #Preview("message") {
 // #Preview("message") {