Преглед изворни кода

Make pod lifetime string slightly smaller when 'Replace pod'

Deniz Cengiz пре 1 година
родитељ
комит
2b36ce0e71
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift

+ 3 - 1
FreeAPS/Sources/Modules/Home/View/Header/PumpView.swift

@@ -83,7 +83,9 @@ struct PumpView: View {
                             .foregroundColor(timerColor)
 
                         Text(remainingTimeString(time: date.timeIntervalSince(timerDate)))
-                            .font(.callout).fontWeight(.bold).fontDesign(.rounded)
+                            .font(!(date.timeIntervalSince(timerDate) > 0) ? .subheadline : .callout)
+                            .fontWeight(.bold)
+                            .fontDesign(.rounded)
                     }
                 }
             }