From 088237a25fe266af58d03161933008211a364bdb Mon Sep 17 00:00:00 2001 From: Conrad Pankoff Date: Sun, 6 Oct 2019 23:14:29 +1100 Subject: LibHTML: Draw image alt text as black rather than white --- Libraries/LibHTML/Layout/LayoutImage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Libraries') 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()); } -- cgit v1.2.3