Jelajahi Sumber

Color IOB blue (.insulin) and COB yellow (.loopYellow)

Jon Mårtensson 4 tahun lalu
induk
melakukan
c6852fc654
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -39,7 +39,7 @@ extension Home {
                             (numberFormatter.string(from: (state.suggestion?.iob ?? 0) as NSNumber) ?? "0") +
                             (numberFormatter.string(from: (state.suggestion?.iob ?? 0) as NSNumber) ?? "0") +
                                 NSLocalizedString(" U", comment: "Insulin unit")
                                 NSLocalizedString(" U", comment: "Insulin unit")
                         )
                         )
-                        .font(.system(size: 12, weight: .bold))
+                        .font(.system(size: 12, weight: .bold)).foregroundColor(.insulin)
                     }
                     }
                     HStack {
                     HStack {
 //                        Text("COB").font(.caption2).foregroundColor(.secondary)
 //                        Text("COB").font(.caption2).foregroundColor(.secondary)
@@ -47,7 +47,7 @@ extension Home {
                             (numberFormatter.string(from: (state.suggestion?.cob ?? 0) as NSNumber) ?? "0") +
                             (numberFormatter.string(from: (state.suggestion?.cob ?? 0) as NSNumber) ?? "0") +
                                 NSLocalizedString(" g", comment: "gram of carbs")
                                 NSLocalizedString(" g", comment: "gram of carbs")
                         )
                         )
-                        .font(.system(size: 12, weight: .bold))
+                        .font(.system(size: 12, weight: .bold)).foregroundColor(.loopYellow)
                     }
                     }
                 }
                 }
                 Spacer()
                 Spacer()