mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibWeb+LibGfx: Allow stroking with a paint style and opacity
This commit is contained in:
parent
eb4a58528e
commit
30c316a2bf
4 changed files with 16 additions and 4 deletions
|
@ -122,7 +122,8 @@ void SVGGeometryPaintable::paint(PaintContext& context, PaintPhase phase) const
|
|||
painter.stroke_path(
|
||||
path,
|
||||
*paint_style,
|
||||
stroke_thickness);
|
||||
stroke_thickness,
|
||||
stroke_opacity);
|
||||
} else if (auto stroke_color = geometry_element.stroke_color().value_or(svg_context.stroke_color()).with_opacity(stroke_opacity); stroke_color.alpha() > 0) {
|
||||
painter.stroke_path(
|
||||
path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue