summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-29 15:53:28 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-29 15:53:28 +0100
commitf8f2b8b520d7fdcd145bbbb3c6e8c4c7b28687c8 (patch)
treef4d498a44532b1e2d9e3155b307d2aae1e06a0bf
parente0ec4f89b26dea68caf763683b6c026d6a2dce4d (diff)
downloadserenity-f8f2b8b520d7fdcd145bbbb3c6e8c4c7b28687c8.zip
LibDraw: Fix text rendering in progress bars
-rw-r--r--Libraries/LibDraw/StylePainter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibDraw/StylePainter.cpp b/Libraries/LibDraw/StylePainter.cpp
index 4773f0abab..c244555a63 100644
--- a/Libraries/LibDraw/StylePainter.cpp
+++ b/Libraries/LibDraw/StylePainter.cpp
@@ -237,8 +237,8 @@ void StylePainter::paint_progress_bar(Painter& painter, const Rect& rect, const
painter.fill_rect_with_gradient(rect, start_color, end_color);
if (!text.is_null()) {
- painter.draw_text(rect.translated(1, 1), text, TextAlignment::Center, Color::Black);
- painter.draw_text(rect, text, TextAlignment::Center, palette.base_text());
+ painter.draw_text(rect.translated(1, 1), text, TextAlignment::Center, palette.base_text());
+ painter.draw_text(rect, text, TextAlignment::Center, palette.base_text().inverted());
}
float range_size = max - min;