Merge pull request #1624 from osodebailar/fix/add-missing-dotline-color

add dotline color
This commit is contained in:
Milos Kozak 2022-04-16 19:23:54 +02:00 committed by GitHub
commit 83bf290324
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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>