mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Various style fixes
The top axis had the default color and was not visible with dark theme. Enabled granularity of 1 to avoid fractions of steps being shown on the axis.
This commit is contained in:
parent
fe07adb041
commit
41feb008a7
@ -121,11 +121,16 @@ public class SpeedZonesFragment extends AbstractChartFragment {
|
||||
mStatsChart.setTouchEnabled(false);
|
||||
mStatsChart.getDescription().setText("");
|
||||
|
||||
XAxis x = mStatsChart.getXAxis();
|
||||
x.setTextColor(CHART_TEXT_COLOR);
|
||||
XAxis right = mStatsChart.getXAxis(); //believe it or not, the X axis is vertical for HorizontalBarChart
|
||||
right.setTextColor(CHART_TEXT_COLOR);
|
||||
|
||||
YAxis yr = mStatsChart.getAxisRight();
|
||||
yr.setTextColor(CHART_TEXT_COLOR);
|
||||
YAxis bottom = mStatsChart.getAxisRight();
|
||||
bottom.setTextColor(CHART_TEXT_COLOR);
|
||||
bottom.setGranularity(1f);
|
||||
|
||||
YAxis top = mStatsChart.getAxisLeft();
|
||||
top.setTextColor(CHART_TEXT_COLOR);
|
||||
top.setGranularity(1f);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user