mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibWeb: Pass color to draw_text in marker painting routines
This commit is contained in:
parent
7b825fb44b
commit
1968cb0cc5
Notes:
sideshowbarker
2024-07-17 11:29:41 +09:00
Author: https://github.com/sdomi Commit: https://github.com/SerenityOS/serenity/commit/1968cb0cc5 Pull-request: https://github.com/SerenityOS/serenity/pull/20169
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue