Skip to content

Commit

Permalink
LibDraw: Fix text rendering in progress bars
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Dec 29, 2019
1 parent e0ec4f8 commit f8f2b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/LibDraw/StylePainter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f8f2b8b

Please sign in to comment.