mirror of
https://github.com/RGBCube/serenity
synced 2025-05-23 21:55:08 +00:00
Some color cleanup.
This commit is contained in:
parent
aceedaf957
commit
e16d145cb4
9 changed files with 27 additions and 22 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue