Move mesh::Style to triangle and reuse it in fill and stroke

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 05:50:53 +01:00
parent e0bb707f1e
commit 84d1b79fef
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
10 changed files with 72 additions and 98 deletions

View file

@ -2,8 +2,8 @@ use iced_native::image;
use iced_native::svg;
use iced_native::{Background, Color, Font, Rectangle, Size, Vector};
use crate::alignment;
use crate::triangle;
use crate::{alignment, layer::mesh};
use std::sync::Arc;
@ -90,7 +90,7 @@ pub enum Primitive {
size: Size,
/// The shader of the mesh
style: mesh::Style,
style: triangle::Style,
},
/// A cached primitive.
///