Some color cleanup.

This commit is contained in:
Andreas Kling 2018-10-12 23:02:23 +02:00
commit e16d145cb4
Notes: sideshowbarker 2024-07-19 18:49:38 +09:00
9 changed files with 27 additions and 22 deletions

View file

@ -88,10 +88,10 @@ void CheckBox::onPaint(PaintEvent&)
bitmapPosition.setY(height() / 2 - bitmap->height() / 2 - 1);
painter.fillRect(rect(), backgroundColor());
painter.drawBitmap(bitmapPosition, *bitmap, Color(0, 0, 0));
painter.drawBitmap(bitmapPosition, *bitmap, foregroundColor());
if (!caption().isEmpty()) {
painter.drawText(textRect, caption(), Painter::TextAlignment::TopLeft, Color(0, 0, 0));
painter.drawText(textRect, caption(), Painter::TextAlignment::TopLeft, foregroundColor());
}
}