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

increase height of main chart and change high color of highGlucose RuleMark

polscm32 2 лет назад
Родитель
Сommit
56b8010b04
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView2.swift

+ 3 - 3
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView2.swift

@@ -107,9 +107,9 @@ extension MainChartView2 {
         VStack {
             Chart {
                 if thresholdLines {
-                    RuleMark(y: .value("High", highGlucose)).foregroundStyle(Color.red)
+                    RuleMark(y: .value("High", highGlucose)).foregroundStyle(Color.loopYellow)
                         .lineStyle(.init(lineWidth: 1, dash: [2]))
-                    RuleMark(y: .value("Low", lowGlucose)).foregroundStyle(Color.red)
+                    RuleMark(y: .value("Low", lowGlucose)).foregroundStyle(Color.loopRed)
                         .lineStyle(.init(lineWidth: 1, dash: [2]))
                 }
                 RuleMark(
@@ -207,7 +207,7 @@ extension MainChartView2 {
             }.id("MainChart")
                 .frame(
                     width: max(0, screenSize.width - 20, fullWidth(viewWidth: screenSize.width)),
-                    height: min(screenSize.height, 150)
+                    height: min(screenSize.height, 200)
                 )
                 .chartYScale(domain: 0 ... 450)
                 .chartXAxis {