mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Some color cleanup.
This commit is contained in:
parent
aceedaf957
commit
e16d145cb4
Notes:
sideshowbarker
2024-07-19 18:49:38 +09:00
Author: https://github.com/awesomekling
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