configurePaints method

void configurePaints()

Implementation

void configurePaints() {
  _gridPaint
    ..color = style.gridColor
    ..strokeWidth = style.gridStrokeWidth
    ..style = PaintingStyle.stroke;

  _gridMonthLinePaint
    ..color = style.gridMonthLineColor
    ..strokeWidth = style.gridMonthLineStrokeWidth
    ..style = PaintingStyle.stroke;

  _todayPaint
    ..color = style.todayBackgroundColor
    ..style = PaintingStyle.fill;

  _weekendPaint
    ..color = style.weekendBackgroundColor
    ..style = PaintingStyle.fill;

  _taskBackgroundPaint.style = PaintingStyle.fill; // Color set per task

  _taskBorderPaint
    ..color = style.taskBorderColor
    ..strokeWidth = style.taskBorderStrokeWidth
    ..style = PaintingStyle.stroke;

  // The progress paint color will be set per task, this is just a default
  _progressPaint
    ..color = style.progressColor // Now used as fallback only
    ..style = PaintingStyle.fill;

  _dragHighlightPaint
    ..color = style.dragHighlightColor
    ..strokeWidth = style.dragHighlightStrokeWidth
    ..style = PaintingStyle.stroke;

  _reorderHighlightPaint
    ..color = style.reorderHighlightColor
    ..style = PaintingStyle.fill;

  _handlePaint
    ..color = style.handleColor
    ..style = PaintingStyle.fill;

  _depLinePaint
    ..color = style.dependencyLineColor
    ..strokeWidth = style.dependencyLineStrokeWidth
    ..style = PaintingStyle.stroke;

  _depCirclePaint
    ..color = style.dependencyCircleColor
    ..style = PaintingStyle.fill;

  _depCircleBorderPaint
    ..color = style.dependencyCircleBorderColor
    ..strokeWidth = style.dependencyCircleBorderStrokeWidth
    ..style = PaintingStyle.stroke;

  _depArrowPaint
    ..color = style.dependencyArrowColor
    ..style = PaintingStyle.fill;

  _depConnectorHighlightPaint
    ..color = style.dependencyConnectorHighlightColor
    ..style = PaintingStyle.fill;

  _overdueWarningPaint
    ..color = style.overdueWarningColor
    ..style = PaintingStyle.fill;
}