|
|
@@ -337,7 +337,7 @@ extension Home {
|
|
|
let bg = eventualBG as Decimal
|
|
|
HStack {
|
|
|
Image(systemName: "arrow.right.circle")
|
|
|
- .font(.system(size: 16, weight: .bold))
|
|
|
+ .font(.callout).fontWeight(.bold)
|
|
|
Text(
|
|
|
Formatter.decimalFormatterWithTwoFractionDigits.string(
|
|
|
from: (
|
|
|
@@ -345,15 +345,14 @@ extension Home {
|
|
|
.asMmolL : bg
|
|
|
) as NSNumber
|
|
|
)!
|
|
|
- )
|
|
|
- .font(.system(size: 16))
|
|
|
+ ).font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
}
|
|
|
} else {
|
|
|
HStack {
|
|
|
Image(systemName: "arrow.right.circle")
|
|
|
- .font(.system(size: 16, weight: .bold))
|
|
|
+ .font(.callout).fontWeight(.bold)
|
|
|
Text("--")
|
|
|
- .font(.system(size: 16))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -363,7 +362,7 @@ extension Home {
|
|
|
HStack {
|
|
|
HStack {
|
|
|
Image(systemName: "syringe.fill")
|
|
|
- .font(.system(size: 16))
|
|
|
+ .font(.callout)
|
|
|
.foregroundColor(Color.insulin)
|
|
|
Text(
|
|
|
(
|
|
|
@@ -372,14 +371,14 @@ extension Home {
|
|
|
) +
|
|
|
NSLocalizedString(" U", comment: "Insulin unit")
|
|
|
)
|
|
|
- .font(.system(size: 16, weight: .bold, design: .rounded))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
}
|
|
|
|
|
|
Spacer()
|
|
|
|
|
|
HStack {
|
|
|
Image(systemName: "fork.knife")
|
|
|
- .font(.system(size: 16))
|
|
|
+ .font(.callout)
|
|
|
.foregroundColor(.loopYellow)
|
|
|
Text(
|
|
|
(
|
|
|
@@ -389,7 +388,7 @@ extension Home {
|
|
|
) +
|
|
|
NSLocalizedString(" g", comment: "gram of carbs")
|
|
|
)
|
|
|
- .font(.system(size: 16, weight: .bold, design: .rounded))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
}
|
|
|
|
|
|
Spacer()
|
|
|
@@ -397,19 +396,20 @@ extension Home {
|
|
|
HStack {
|
|
|
if state.pumpSuspended {
|
|
|
Text("Pump suspended")
|
|
|
- .font(.system(size: 12, weight: .bold, design: .rounded)).foregroundColor(.loopGray)
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
+ .foregroundColor(.loopGray)
|
|
|
} else if let tempBasalString = tempBasalString {
|
|
|
Image(systemName: "drop.circle")
|
|
|
- .font(.system(size: 16))
|
|
|
+ .font(.callout)
|
|
|
.foregroundColor(.insulinTintColor)
|
|
|
Text(tempBasalString)
|
|
|
- .font(.system(size: 16, weight: .bold, design: .rounded))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
} else {
|
|
|
Image(systemName: "drop.circle")
|
|
|
- .font(.system(size: 16))
|
|
|
+ .font(.callout)
|
|
|
.foregroundColor(.insulinTintColor)
|
|
|
Text("No Data")
|
|
|
- .font(.system(size: 16, weight: .bold, design: .rounded))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
}
|
|
|
}
|
|
|
if state.totalInsulinDisplayType == .totalDailyDose {
|
|
|
@@ -423,7 +423,7 @@ extension Home {
|
|
|
) +
|
|
|
NSLocalizedString(" U", comment: "Insulin unit")
|
|
|
)
|
|
|
- .font(.system(size: 16, weight: .bold, design: .rounded))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
} else {
|
|
|
Spacer()
|
|
|
HStack {
|
|
|
@@ -431,7 +431,7 @@ extension Home {
|
|
|
"TINS: \(state.roundedTotalBolus)" +
|
|
|
NSLocalizedString(" U", comment: "Unit in number of units delivered (keep the space character!)")
|
|
|
)
|
|
|
- .font(.system(size: 16, weight: .bold, design: .rounded))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
.onChange(of: state.hours) {
|
|
|
state.roundedTotalBolus = state.calculateTINS()
|
|
|
}
|
|
|
@@ -448,7 +448,7 @@ extension Home {
|
|
|
@ViewBuilder func adjustmentsOverrideView(_ overrideString: String) -> some View {
|
|
|
Group {
|
|
|
Image(systemName: "clock.arrow.2.circlepath")
|
|
|
- .font(.system(size: 20))
|
|
|
+ .font(.title2)
|
|
|
.foregroundStyle(Color.primary, Color.purple)
|
|
|
VStack(alignment: .leading) {
|
|
|
Text(latestOverride.first?.name ?? "Custom Override")
|
|
|
@@ -467,7 +467,7 @@ extension Home {
|
|
|
@ViewBuilder func adjustmentsTempTargetView(_ tempTargetString: String) -> some View {
|
|
|
Group {
|
|
|
Image(systemName: "target")
|
|
|
- .font(.system(size: 20))
|
|
|
+ .font(.title2)
|
|
|
.foregroundStyle(Color.loopGreen)
|
|
|
VStack(alignment: .leading) {
|
|
|
Text(latestTempTarget.first?.name ?? "Temp Target")
|
|
|
@@ -483,7 +483,7 @@ extension Home {
|
|
|
|
|
|
@ViewBuilder func adjustmentsCancelView(_ cancelAction: @escaping () -> Void) -> some View {
|
|
|
Image(systemName: "xmark.app")
|
|
|
- .font(.system(size: 24))
|
|
|
+ .font(.title)
|
|
|
.onTapGesture {
|
|
|
cancelAction()
|
|
|
}
|
|
|
@@ -491,7 +491,7 @@ extension Home {
|
|
|
|
|
|
@ViewBuilder func adjustmentsCancelTempTargetView() -> some View {
|
|
|
Image(systemName: "xmark.app")
|
|
|
- .font(.system(size: 24))
|
|
|
+ .font(.title)
|
|
|
.confirmationDialog(
|
|
|
"Stop the Temp Target \"\(latestTempTarget.first?.name ?? "")\"?",
|
|
|
isPresented: $isConfirmStopTempTargetShown,
|
|
|
@@ -515,7 +515,7 @@ extension Home {
|
|
|
|
|
|
@ViewBuilder func adjustmentsCancelOverrideView() -> some View {
|
|
|
Image(systemName: "xmark.app")
|
|
|
- .font(.system(size: 24))
|
|
|
+ .font(.title)
|
|
|
.confirmationDialog(
|
|
|
"Stop the Override \"\(latestOverride.first?.name ?? "")\"?",
|
|
|
isPresented: $isConfirmStopOverridePresented,
|
|
|
@@ -552,7 +552,7 @@ extension Home {
|
|
|
|
|
|
/// to ensure the same position....
|
|
|
Image(systemName: "xmark.app")
|
|
|
- .font(.system(size: 25))
|
|
|
+ .font(.title)
|
|
|
// clear color for the icon
|
|
|
.foregroundStyle(Color.clear)
|
|
|
}.onTapGesture {
|