mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 18:06:10 +02:00
🔧 Fix linting warnings and errors (#6431)
This commit is contained in:
parent
36e1ad287c
commit
bd514c0594
2 changed files with 10 additions and 13 deletions
|
@ -827,10 +827,9 @@ impl Shape {
|
|||
paint.set_blend_mode(skia::BlendMode::SrcATop);
|
||||
paint.set_anti_alias(true);
|
||||
paint.set_stroke_width(stroke.width * 2.0);
|
||||
paint.set_color(match &stroke.fill {
|
||||
Fill::Solid(color) => *color,
|
||||
_ => Color::BLACK,
|
||||
});
|
||||
if let Fill::Solid(SolidColor(color)) = stroke.fill {
|
||||
paint.set_color(color);
|
||||
}
|
||||
paints.push(paint);
|
||||
}
|
||||
StrokeKind::CenterStroke => {
|
||||
|
@ -838,10 +837,9 @@ impl Shape {
|
|||
paint.set_style(skia::PaintStyle::Stroke);
|
||||
paint.set_anti_alias(true);
|
||||
paint.set_stroke_width(stroke.width);
|
||||
paint.set_color(match &stroke.fill {
|
||||
Fill::Solid(color) => *color,
|
||||
_ => Color::BLACK,
|
||||
});
|
||||
if let Fill::Solid(SolidColor(color)) = stroke.fill {
|
||||
paint.set_color(color);
|
||||
}
|
||||
paints.push(paint);
|
||||
}
|
||||
StrokeKind::OuterStroke => {
|
||||
|
@ -850,10 +848,9 @@ impl Shape {
|
|||
paint.set_blend_mode(skia::BlendMode::DstOver);
|
||||
paint.set_anti_alias(true);
|
||||
paint.set_stroke_width(stroke.width * 2.0);
|
||||
paint.set_color(match &stroke.fill {
|
||||
Fill::Solid(color) => *color,
|
||||
_ => Color::BLACK,
|
||||
});
|
||||
if let Fill::Solid(SolidColor(color)) = stroke.fill {
|
||||
paint.set_color(color);
|
||||
}
|
||||
paints.push(paint);
|
||||
|
||||
let mut paint = skia::Paint::default();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue