mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-09-08 15:35:24 +02:00
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.
This commit is contained in:
parent
2e98b1396f
commit
dd5ee03932
@ -191,6 +191,7 @@ public abstract class AbstractWeekChartFragment extends AbstractChartFragment {
|
|||||||
private void setupTodayPieChart() {
|
private void setupTodayPieChart() {
|
||||||
mTodayPieChart.setBackgroundColor(BACKGROUND_COLOR);
|
mTodayPieChart.setBackgroundColor(BACKGROUND_COLOR);
|
||||||
mTodayPieChart.getDescription().setTextColor(DESCRIPTION_COLOR);
|
mTodayPieChart.getDescription().setTextColor(DESCRIPTION_COLOR);
|
||||||
|
mTodayPieChart.setEntryLabelColor(DESCRIPTION_COLOR);
|
||||||
mTodayPieChart.getDescription().setText(getPieDescription(mTargetValue));
|
mTodayPieChart.getDescription().setText(getPieDescription(mTargetValue));
|
||||||
// mTodayPieChart.setNoDataTextDescription("");
|
// mTodayPieChart.setNoDataTextDescription("");
|
||||||
mTodayPieChart.setNoDataText("");
|
mTodayPieChart.setNoDataText("");
|
||||||
|
@ -166,6 +166,7 @@ public class SleepChartFragment extends AbstractChartFragment {
|
|||||||
private void setupSleepAmountChart() {
|
private void setupSleepAmountChart() {
|
||||||
mSleepAmountChart.setBackgroundColor(BACKGROUND_COLOR);
|
mSleepAmountChart.setBackgroundColor(BACKGROUND_COLOR);
|
||||||
mSleepAmountChart.getDescription().setTextColor(DESCRIPTION_COLOR);
|
mSleepAmountChart.getDescription().setTextColor(DESCRIPTION_COLOR);
|
||||||
|
mSleepAmountChart.setEntryLabelColor(DESCRIPTION_COLOR);
|
||||||
mSleepAmountChart.getDescription().setText("");
|
mSleepAmountChart.getDescription().setText("");
|
||||||
// mSleepAmountChart.getDescription().setNoDataTextDescription("");
|
// mSleepAmountChart.getDescription().setNoDataTextDescription("");
|
||||||
mSleepAmountChart.setNoDataText("");
|
mSleepAmountChart.setNoDataText("");
|
||||||
|
Loading…
Reference in New Issue
Block a user