Bläddra i källkod

LibWeb: Pass color to draw_text in marker painting routines

Dominique Liberda 2 år sedan
förälder
incheckning
1968cb0cc5
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp

+ 1 - 1
Userland/Libraries/LibWeb/Painting/MarkerPaintable.cpp

@@ -119,7 +119,7 @@ void MarkerPaintable::paint(PaintContext& context, PaintPhase phase) const
             break;
         // FIXME: This should use proper text layout logic!
         // This does not line up with the text in the <li> element which looks very sad :(
-        context.painter().draw_text(device_enclosing.to_type<int>(), layout_box().text(), layout_box().scaled_font(context), Gfx::TextAlignment::Center);
+        context.painter().draw_text(device_enclosing.to_type<int>(), layout_box().text(), layout_box().scaled_font(context), Gfx::TextAlignment::Center, color);
         break;
     case CSS::ListStyleType::None:
         return;