Browse Source

Make pod lifetime string slightly smaller when 'Replace pod'

Deniz Cengiz 1 năm trước cách đây
mục cha
commit
2b36ce0e71

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

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