Fix color of dashes

This commit is contained in:
PavelRatushny 2017-06-06 15:30:57 +03:00
parent 500ef091cc
commit c02495770c
2 changed files with 2 additions and 2 deletions

View file

@ -239,7 +239,7 @@
<color name="gpx_chart_orange">#ff8800</color>
<color name="gpx_chart_red">#ff0000</color>
<color name="gpx_chart_green">#23b03b</color>
<color name="gpx_chart_white_grid">#ffffffff</color>
<color name="gpx_chart_black_grid">#000000</color>
<color name="gpx_chart_blue_grid">#c32561c2</color>
<color name="gpx_chart_orange_grid">#c3b35f00</color>
<color name="gpx_chart_red_grid">#c3b30000</color>

View file

@ -954,7 +954,7 @@ public class GpxUiHelper {
xAxis.setDrawAxisLine(false);
xAxis.setDrawGridLines(true);
xAxis.setGridLineWidth(1.5f);
xAxis.setGridColor(R.color.gpx_chart_white_grid);
xAxis.setGridColor(ActivityCompat.getColor(mChart.getContext(), R.color.gpx_chart_black_grid));
xAxis.enableGridDashedLine(25f, Float.MAX_VALUE, 0f);
xAxis.setPosition(BOTTOM);
xAxis.setTextColor(light ? mChart.getResources().getColor(R.color.secondary_text_light) : mChart.getResources().getColor(R.color.secondary_text_dark));