From dd5ee039328204589740e6d75fbb9c1f159e13c9 Mon Sep 17 00:00:00 2001 From: Daniele Gobbetti Date: Sat, 8 Apr 2017 15:50:13 +0200 Subject: [PATCH] Set the right color for the Pie charts entry labels. Closes #647 by showing the text also on the light theme, instead of hiding it everywhere. --- .../activities/charts/AbstractWeekChartFragment.java | 1 + .../gadgetbridge/activities/charts/SleepChartFragment.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractWeekChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractWeekChartFragment.java index dea94826a..0dfef9b82 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractWeekChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/AbstractWeekChartFragment.java @@ -191,6 +191,7 @@ public abstract class AbstractWeekChartFragment extends AbstractChartFragment { private void setupTodayPieChart() { mTodayPieChart.setBackgroundColor(BACKGROUND_COLOR); mTodayPieChart.getDescription().setTextColor(DESCRIPTION_COLOR); + mTodayPieChart.setEntryLabelColor(DESCRIPTION_COLOR); mTodayPieChart.getDescription().setText(getPieDescription(mTargetValue)); // mTodayPieChart.setNoDataTextDescription(""); mTodayPieChart.setNoDataText(""); diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java index d5dd746b2..326f193a8 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts/SleepChartFragment.java @@ -166,6 +166,7 @@ public class SleepChartFragment extends AbstractChartFragment { private void setupSleepAmountChart() { mSleepAmountChart.setBackgroundColor(BACKGROUND_COLOR); mSleepAmountChart.getDescription().setTextColor(DESCRIPTION_COLOR); + mSleepAmountChart.setEntryLabelColor(DESCRIPTION_COLOR); mSleepAmountChart.getDescription().setText(""); // mSleepAmountChart.getDescription().setNoDataTextDescription(""); mSleepAmountChart.setNoDataText("");