diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-24 22:16:52 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-24 22:17:11 +0100 |
commit | 7ca759501228350477a26e579f3ad8dc6efccd78 (patch) | |
tree | 1a69a069e6f82098b9d7973fcf59d77a3209ff8c | |
parent | aae54bdbde5fb8c0100eaaaeaa00194f3a0fcdd6 (diff) | |
download | serenity-7ca759501228350477a26e579f3ad8dc6efccd78.zip |
LibDraw: Teach progress bar painting about palettes
-rw-r--r-- | Libraries/LibDraw/StylePainter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Libraries/LibDraw/StylePainter.cpp b/Libraries/LibDraw/StylePainter.cpp index e8b40fd6f8..f176d3dfcb 100644 --- a/Libraries/LibDraw/StylePainter.cpp +++ b/Libraries/LibDraw/StylePainter.cpp @@ -232,13 +232,13 @@ void StylePainter::paint_progress_bar(Painter& painter, const Rect& rect, const { // First we fill the entire widget with the gradient. This incurs a bit of // overdraw but ensures a consistent look throughout the progression. - Color start_color(110, 34, 9); - Color end_color(244, 202, 158); + Color start_color = palette.active_window_border1(); + Color end_color = palette.active_window_border2(); 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, Color::White); + painter.draw_text(rect, text, TextAlignment::Center, palette.base_text()); } float range_size = max - min; @@ -254,5 +254,5 @@ void StylePainter::paint_progress_bar(Painter& painter, const Rect& rect, const painter.add_clip_rect(hole_rect); if (!text.is_null()) - painter.draw_text(rect.translated(0, 0), text, TextAlignment::Center, Color::Black); + painter.draw_text(rect.translated(0, 0), text, TextAlignment::Center, palette.base_text()); } |