bastiaanv 7 месяцев назад
Родитель
Сommit
5420be1f4c
1 измененных файлов с 9 добавлено и 1 удалено
  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 {
             Image(systemName: hourglassIcon)
                 .font(.callout)
-                .foregroundStyle(timerColor, Color.yellow)
+                .foregroundStyle(timerColor, timerColorSecondary)
                 .symbolRenderingMode(.palette)
 
             let remainingTimeString = isExpiration ?
@@ -227,6 +227,14 @@ struct PumpView: View {
             return Color.loopGreen
         }
     }
+
+    private var timerColorSecondary: Color {
+        if activatedAtDate != nil {
+            return Color.gray
+        }
+
+        return Color.yellow
+    }
 }
 
 // #Preview("message") {