1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 21:55:08 +00:00

Some color cleanup.

This commit is contained in:
Andreas Kling 2018-10-12 23:02:23 +02:00
parent aceedaf957
commit e16d145cb4
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());
}
}