mirror of
https://github.com/penpot/penpot.git
synced 2025-07-28 22:19:36 +02:00
✨ Serialize solid fills as bytes (wasm)
This commit is contained in:
parent
81f18ad7f4
commit
093fa18839
7 changed files with 73 additions and 24 deletions
|
@ -38,7 +38,7 @@ pub extern "C" fn add_shape_stroke_solid_fill(raw_color: u32) {
|
|||
with_current_shape!(state, |shape: &mut Shape| {
|
||||
let color = skia::Color::new(raw_color);
|
||||
shape
|
||||
.set_stroke_fill(shapes::Fill::Solid(color))
|
||||
.set_stroke_fill(shapes::Fill::Solid(shapes::SolidColor(color)))
|
||||
.expect("could not add stroke solid fill");
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue