LibHTML: Draw image alt text as black rather than white

This commit is contained in:
Conrad Pankoff 2019-10-06 23:14:29 +11:00 committed by Andreas Kling
parent 5f6903a714
commit 088237a25f
Notes: sideshowbarker 2024-07-19 11:47:19 +09:00

View file

@ -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());
}