add dotline color

This commit is contained in:
osodebailar 2022-04-16 12:51:25 +02:00
parent 8b709e2b2a
commit 76a8187fd3
4 changed files with 4 additions and 1 deletions

View file

@ -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)
})
})
}

View file

@ -230,6 +230,7 @@
<item name="ratioColor">@color/ratio</item>
<item name="activityColor">@color/activity</item>
<item name="basebasalColor">@color/basebasal</item>
<item name="dotLineColor">@color/white</item>
<!---Popupmenu TextColor -->
<item name="menuTextColor">@color/black</item>
<item name="menuTextColorInverse">@color/black</item>

View file

@ -207,6 +207,7 @@
<attr name="ratioColor" format="reference|color" />
<attr name="activityColor" format="reference|color" />
<attr name="basebasalColor" format="reference|color" />
<attr name="dotLineColor" format="reference|color" />
<!---Popupmenu TextColor -->
<attr name="menuTextColor" format="reference|color" />
<attr name="menuTextColorInverse" format="reference|color" />

View file

@ -233,6 +233,7 @@
<item name="ratioColor">@color/ratio</item>
<item name="activityColor">@color/activity</item>
<item name="basebasalColor">@color/basebasal</item>
<item name="dotLineColor">@color/black</item>
<!---Popupmenu TextColor -->
<item name="menuTextColor">@color/black</item>
<item name="menuTextColorInverse">@color/white</item>