1
Fork 0
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:
MacDue 2023-06-11 14:04:32 +01:00 committed by Andreas Kling
parent eb4a58528e
commit 30c316a2bf
4 changed files with 16 additions and 4 deletions

View file

@ -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,