Просмотр исходного кода

Basalheight

(cherry picked from commit 7a36d2eddb06bb7e15f10cce4586bf5856959884)
Jon Mårtensson 5 лет назад
Родитель
Сommit
8a4e47b646

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -20,7 +20,7 @@ struct MainChartView: View {
     private enum Config {
         static let endID = "End"
         static let screenHours = 5
-        static let basalHeight: CGFloat = 70
+        static let basalHeight: CGFloat = 100
         static let topYPadding: CGFloat = 20
         static let bottomYPadding: CGFloat = 50
         static let minAdditionalWidth: CGFloat = 150
@@ -28,7 +28,7 @@ struct MainChartView: View {
         static let minGlucose = 70
         static let yLinesCount = 5
         static let bolusSize: CGFloat = 8
-        static let bolusScale: CGFloat = 2.5
+        static let bolusScale: CGFloat = 3
         static let carbsSize: CGFloat = 10
         static let carbsScale: CGFloat = 0.3
     }

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Header/CurrentGlucoseView.swift

@@ -54,8 +54,8 @@ struct CurrentGlucoseView: View {
                         .map { deltaFormatter.string(from: Double(units == .mmolL ? $0.asMmolL : Decimal($0)) as NSNumber)!
                         } ??
                         "--"
-
-                ).font(.system(size: 12, weight: .bold))
+                    
+                ).font(.caption2).foregroundColor(.secondary)
             }
         }
     }