diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2019-10-06 23:14:29 +1100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-06 14:33:00 +0200 |
commit | 088237a25fe266af58d03161933008211a364bdb (patch) | |
tree | fee9b02aad13fd2d80d885bbb00d36d6512c7fc9 /Libraries | |
parent | 5f6903a714accf1072b60dfff1f8c63ca8aaa344 (diff) | |
download | serenity-088237a25fe266af58d03161933008211a364bdb.zip |
LibHTML: Draw image alt text as black rather than white
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutImage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutImage.cpp b/Libraries/LibHTML/Layout/LayoutImage.cpp index f28401cf39..92d05cb5ce 100644 --- a/Libraries/LibHTML/Layout/LayoutImage.cpp +++ b/Libraries/LibHTML/Layout/LayoutImage.cpp @@ -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()); } |