mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 20:57:35 +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();
|
auto alt = node().alt();
|
||||||
if (alt.is_empty())
|
if (alt.is_empty())
|
||||||
alt = node().src();
|
alt = node().src();
|
||||||
context.painter().draw_text(rect(), alt, TextAlignment::Center, Color::White);
|
context.painter().draw_text(rect(), alt, TextAlignment::Center, Color::Black);
|
||||||
} else {
|
} else {
|
||||||
context.painter().draw_scaled_bitmap(rect(), *node().bitmap(), node().bitmap()->rect());
|
context.painter().draw_scaled_bitmap(rect(), *node().bitmap(), node().bitmap()->rect());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue