summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-02-28 10:44:35 +0000
committerGuillaume Jacquart <guillaume.jacquart@hoodbrains.com>2023-02-28 10:44:35 +0000
commit276f0e66e776875dac27a0d9bf9ddaa1d893ac94 (patch)
tree7301e98b58e73a69d56a0f0c0be28bd6d76b7f7a /app/src/main/java
parentdc7e217d4c1cba25655f9fc96cd3d245566dec6e (diff)
parent4482dec8023b626dc63c7dd1f6e595b1da927c6a (diff)
Merge branch '5422-graph_graduations_dark_mode' into 'main'
5422: fix graduations text color in darkmode on dashboard graph. See merge request e/os/advanced-privacy!116
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/foundation/e/privacycentralapp/common/GraphHolder.kt2
1 files changed, 1 insertions, 1 deletions
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) ?: ""