瀏覽代碼

Use loopYellow for COB and make it work better with dark mode

Andreas Stokholm 2 年之前
父節點
當前提交
3595af9679

+ 1 - 1
FreeAPS/Resources/Assets.xcassets/Colors/LoopYellow.colorset/Contents.json

@@ -22,7 +22,7 @@
       "color" : {
         "color-space" : "srgb",
         "components" : {
-          "alpha" : "1.000",
+          "alpha" : "0.950",
           "blue" : "0.271",
           "green" : "0.757",
           "red" : "1.000"

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

@@ -266,7 +266,7 @@ extension MainChartView {
                             x: .value("Time", info.timestamp, unit: .second),
                             y: .value("Value", Decimal(y) * conversionFactor),
                             series: .value("cob", "cob")
-                        ).foregroundStyle(Color.orange).symbolSize(16)
+                        ).foregroundStyle(Color.loopYellow).symbolSize(16)
                     }
                     if info.type == .iob {
                         LineMark(
@@ -552,7 +552,7 @@ extension MainChartView {
             LegendItem(color: .loopGreen, label: "BG")
             LegendItem(color: .insulin, label: "IOB")
             LegendItem(color: .zt, label: "ZT")
-            LegendItem(color: Color.orange, label: "COB")
+            LegendItem(color: .loopYellow, label: "COB")
             LegendItem(color: .uam, label: "UAM")
 
             Spacer()