Flatten Train View Load Colors

.. the alpha channel was too agressive for light backgrounds and
   was washed out and unpleasant on the eye.

.. reduced the alpha blend to make it flatter and cleaner.
This commit is contained in:
Mark Liversedge
2021-05-23 10:07:28 +01:00
parent 6486e89145
commit 815496a8d1

View File

@@ -351,9 +351,9 @@ WWLine::paint(QPainter *painter)
painter->setPen(Qt::NoPen);
QColor brush_color1 = QColor(GColor(CTPOWER));
brush_color1.setAlpha(200);
brush_color1.setAlpha(240);
QColor brush_color2 = QColor(GColor(CTPOWER));
brush_color2.setAlpha(64);
brush_color2.setAlpha(200);
QLinearGradient linearGradient(0, 0, 0, workoutWidget()->transform(0,0).y());
linearGradient.setColorAt(0.0, brush_color1);