Przeglądaj źródła

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

Jon Mårtensson 4 lat temu
rodzic
commit
c6852fc654

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