summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorConrad Pankoff <deoxxa@fknsrs.biz>2019-10-06 23:14:29 +1100
committerAndreas Kling <awesomekling@gmail.com>2019-10-06 14:33:00 +0200
commit088237a25fe266af58d03161933008211a364bdb (patch)
treefee9b02aad13fd2d80d885bbb00d36d6512c7fc9 /Libraries
parent5f6903a714accf1072b60dfff1f8c63ca8aaa344 (diff)
downloadserenity-088237a25fe266af58d03161933008211a364bdb.zip
LibHTML: Draw image alt text as black rather than white
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibHTML/Layout/LayoutImage.cpp2
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());
}