|
|
@@ -339,7 +339,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: (
|
|
|
@@ -347,15 +347,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)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -365,7 +364,7 @@ extension Home {
|
|
|
HStack {
|
|
|
HStack {
|
|
|
Image(systemName: "syringe.fill")
|
|
|
- .font(.system(size: 16))
|
|
|
+ .font(.callout)
|
|
|
.foregroundColor(Color.insulin)
|
|
|
Text(
|
|
|
(
|
|
|
@@ -374,14 +373,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(
|
|
|
(
|
|
|
@@ -391,7 +390,7 @@ extension Home {
|
|
|
) +
|
|
|
NSLocalizedString(" g", comment: "gram of carbs")
|
|
|
)
|
|
|
- .font(.system(size: 16, weight: .bold, design: .rounded))
|
|
|
+ .font(.callout).fontWeight(.bold).fontDesign(.rounded)
|
|
|
}
|
|
|
|
|
|
Spacer()
|
|
|
@@ -399,19 +398,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 {
|
|
|
@@ -425,7 +425,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 {
|
|
|
@@ -433,7 +433,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()
|
|
|
}
|
|
|
@@ -450,7 +450,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")
|
|
|
@@ -469,7 +469,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")
|
|
|
@@ -485,7 +485,7 @@ extension Home {
|
|
|
|
|
|
@ViewBuilder func adjustmentsCancelView(_ cancelAction: @escaping () -> Void) -> some View {
|
|
|
Image(systemName: "xmark.app")
|
|
|
- .font(.system(size: 24))
|
|
|
+ .font(.title)
|
|
|
.onTapGesture {
|
|
|
cancelAction()
|
|
|
}
|
|
|
@@ -493,7 +493,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,
|
|
|
@@ -517,7 +517,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,
|
|
|
@@ -554,7 +554,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 {
|