mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-30 14:02:56 +01:00
Make some average lines more visible
This commit is contained in:
parent
51fdf02cf5
commit
f6a8d05fd6
@ -273,7 +273,8 @@ public class SleepChartFragment extends AbstractActivityChartFragment<SleepChart
|
||||
}
|
||||
LimitLine hrAverage_line = new LimitLine(mcd.getHeartRateAverage());
|
||||
hrAverage_line.setLineColor(Color.RED);
|
||||
hrAverage_line.setLineWidth(0.1f);
|
||||
hrAverage_line.setLineWidth(1.5f);
|
||||
hrAverage_line.enableDashedLine(15f, 10f, 0f);
|
||||
mActivityChart.getAxisRight().removeAllLimitLines();
|
||||
mActivityChart.getAxisRight().addLimitLine(hrAverage_line);
|
||||
}
|
||||
|
@ -129,7 +129,8 @@ public class Spo2ChartFragment extends AbstractChartFragment<Spo2ChartFragment.S
|
||||
if (spo2Data.getAverage() > 0 && SHOW_CHARTS_AVERAGE) {
|
||||
final LimitLine averageLine = new LimitLine(spo2Data.getAverage());
|
||||
averageLine.setLineColor(Color.RED);
|
||||
averageLine.setLineWidth(0.1f);
|
||||
averageLine.setLineWidth(1.5f);
|
||||
averageLine.enableDashedLine(15f, 10f, 0f);
|
||||
mSpo2Chart.getAxisLeft().addLimitLine(averageLine);
|
||||
}
|
||||
|
||||
|
@ -190,8 +190,9 @@ public class StressChartFragment extends AbstractChartFragment<StressChartFragme
|
||||
|
||||
if (stressData.getAverage() > 0) {
|
||||
final LimitLine averageLine = new LimitLine(stressData.getAverage());
|
||||
averageLine.setLineColor(Color.RED);
|
||||
averageLine.setLineWidth(0.1f);
|
||||
averageLine.setLineColor(Color.GRAY);
|
||||
averageLine.setLineWidth(1.5f);
|
||||
averageLine.enableDashedLine(15f, 10f, 0f);
|
||||
mStressChart.getAxisRight().addLimitLine(averageLine);
|
||||
}
|
||||
}
|
||||
@ -291,7 +292,7 @@ public class StressChartFragment extends AbstractChartFragment<StressChartFragme
|
||||
if (!CHARTS_SLEEP_RANGE_24H && SHOW_CHARTS_AVERAGE) {
|
||||
final LegendEntry averageEntry = new LegendEntry();
|
||||
averageEntry.label = STRESS_AVERAGE_LABEL;
|
||||
averageEntry.formColor = Color.RED;
|
||||
averageEntry.formColor = Color.GRAY;
|
||||
legendEntries.add(averageEntry);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user