|
|
@ -85,6 +85,8 @@ public class HistoryChart extends ScrollableChart
|
|
|
|
|
|
|
|
|
|
|
|
private int reverseTextColor;
|
|
|
|
private int reverseTextColor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private int backgroundColor;
|
|
|
|
|
|
|
|
|
|
|
|
private boolean isEditable;
|
|
|
|
private boolean isEditable;
|
|
|
|
|
|
|
|
|
|
|
|
private String previousMonth;
|
|
|
|
private String previousMonth;
|
|
|
@ -383,7 +385,7 @@ public class HistoryChart extends ScrollableChart
|
|
|
|
pSquareBg.setColor(colors[0]);
|
|
|
|
pSquareBg.setColor(colors[0]);
|
|
|
|
pSquareFg.setColor(textColors[1]);
|
|
|
|
pSquareFg.setColor(textColors[1]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if(checkmark < target)
|
|
|
|
else if ((isNumerical && checkmark < target) || checkmark != CHECKED_EXPLICITLY)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pSquareBg.setColor(colors[1]);
|
|
|
|
pSquareBg.setColor(colors[1]);
|
|
|
|
pSquareFg.setColor(textColors[2]);
|
|
|
|
pSquareFg.setColor(textColors[2]);
|
|
|
@ -400,7 +402,7 @@ public class HistoryChart extends ScrollableChart
|
|
|
|
|
|
|
|
|
|
|
|
if (!isNumerical && checkmark == SKIPPED)
|
|
|
|
if (!isNumerical && checkmark == SKIPPED)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
pSquareBg.setColor(textColors[2]);
|
|
|
|
pSquareBg.setColor(backgroundColor);
|
|
|
|
pSquareBg.setStrokeWidth(columnWidth * 0.025f);
|
|
|
|
pSquareBg.setStrokeWidth(columnWidth * 0.025f);
|
|
|
|
|
|
|
|
|
|
|
|
canvas.save();
|
|
|
|
canvas.save();
|
|
|
@ -457,6 +459,8 @@ public class HistoryChart extends ScrollableChart
|
|
|
|
int green = Color.green(primaryColor);
|
|
|
|
int green = Color.green(primaryColor);
|
|
|
|
int blue = Color.blue(primaryColor);
|
|
|
|
int blue = Color.blue(primaryColor);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
backgroundColor = res.getColor(R.attr.cardBgColor);
|
|
|
|
|
|
|
|
|
|
|
|
if (isBackgroundTransparent)
|
|
|
|
if (isBackgroundTransparent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
colors = new int[3];
|
|
|
|
colors = new int[3];
|
|
|
|