From 76a8187fd38ca9fa90db41abd06d15b849efeac1 Mon Sep 17 00:00:00 2001 From: osodebailar Date: Sat, 16 Apr 2022 12:51:25 +0200 Subject: [PATCH] add dotline color --- .../androidaps/plugins/general/overview/graphData/GraphData.kt | 2 +- core/src/main/res/values-night/styles.xml | 1 + core/src/main/res/values/attrs.xml | 1 + core/src/main/res/values/styles.xml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphData/GraphData.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphData/GraphData.kt index b63425970b..a3475cfb41 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphData/GraphData.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphData/GraphData.kt @@ -201,7 +201,7 @@ class GraphData( paint.style = Paint.Style.STROKE paint.strokeWidth = 2f paint.pathEffect = DashPathEffect(floatArrayOf(10f, 20f), 0f) - paint.color = Color.WHITE + paint.color = rh.gac(graph.context, R.attr.dotLineColor) }) }) } diff --git a/core/src/main/res/values-night/styles.xml b/core/src/main/res/values-night/styles.xml index 9f226d0f97..e9d5bb1ec0 100644 --- a/core/src/main/res/values-night/styles.xml +++ b/core/src/main/res/values-night/styles.xml @@ -230,6 +230,7 @@ @color/ratio @color/activity @color/basebasal + @color/white @color/black @color/black diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml index 1cfeb764aa..a772a00101 100644 --- a/core/src/main/res/values/attrs.xml +++ b/core/src/main/res/values/attrs.xml @@ -207,6 +207,7 @@ + diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index abe9900d7d..81d127c4a3 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -233,6 +233,7 @@ @color/ratio @color/activity @color/basebasal + @color/black @color/black @color/white