mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
LibHTML: Draw image alt text as black rather than white
This commit is contained in:
parent
5f6903a714
commit
088237a25f
Notes:
sideshowbarker
2024-07-19 11:47:19 +09:00
Author: https://github.com/deoxxa Commit: https://github.com/SerenityOS/serenity/commit/088237a25fe Pull-request: https://github.com/SerenityOS/serenity/pull/634
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
Reference in a new issue