mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibHTML: Draw image alt text as black rather than white
This commit is contained in:
parent
5f6903a714
commit
088237a25f
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ void LayoutImage::render(RenderingContext& context)
|
|||
auto alt = node().alt();
|
||||
if (alt.is_empty())
|
||||
alt = node().src();
|
||||
context.painter().draw_text(rect(), alt, TextAlignment::Center, Color::White);
|
||||
context.painter().draw_text(rect(), alt, TextAlignment::Center, Color::Black);
|
||||
} else {
|
||||
context.painter().draw_scaled_bitmap(rect(), *node().bitmap(), node().bitmap()->rect());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue