Draw a dark gray border around color indicators in the time line.

This makes white, yellow and other colors more visible. In particular,
white entries do not look like absent against a white window background.

Due to the border, the circle must now be smaller by one pixel.
This commit is contained in:
Johannes Sixt
2017-03-04 00:06:01 +01:00
parent f7aa4890ee
commit d393cf83b3
+2 -2
View File
@@ -185,9 +185,9 @@ void lcTimelineWidget::Update(bool Clear, bool UpdateItems)
Image.fill(0);
float* Color = gColorList[ColorIndex].Value;
QPainter Painter(&Image);
Painter.setPen(Qt::NoPen);
Painter.setPen(Qt::darkGray);
Painter.setBrush(QColor::fromRgbF(Color[0], Color[1], Color[2]));
Painter.drawEllipse(QPoint(Size / 2, Size / 2), Size / 2, Size / 2);
Painter.drawEllipse(0, 0, Size - 1, Size - 1);
mIcons[ColorIndex] = QIcon(QPixmap::fromImage(Image));
}