From 4482dec8023b626dc63c7dd1f6e595b1da927c6a Mon Sep 17 00:00:00 2001 From: Guillaume Jacquart Date: Mon, 27 Feb 2023 19:00:30 +0100 Subject: 5422: fix graduations text color in darkmode on dashboard graph. --- app/src/main/java/foundation/e/privacycentralapp/common/GraphHolder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/foundation/e/privacycentralapp') diff --git a/app/src/main/java/foundation/e/privacycentralapp/common/GraphHolder.kt b/app/src/main/java/foundation/e/privacycentralapp/common/GraphHolder.kt index 5622806..51064d2 100644 --- a/app/src/main/java/foundation/e/privacycentralapp/common/GraphHolder.kt +++ b/app/src/main/java/foundation/e/privacycentralapp/common/GraphHolder.kt @@ -173,7 +173,7 @@ class GraphHolder(val barChart: BarChart, val context: Context, val isMarkerAbov setDrawLabels(true) setCenterAxisLabels(false) setLabelCount(25, true) - + textColor = context.getColor(R.color.primary_text) valueFormatter = object : ValueFormatter() { override fun getAxisLabel(value: Float, axis: AxisBase?): String { return graduations?.getOrNull(value.toInt() + 1) ?: "" -- cgit v1.2.1