Move mesh::Style to triangle and reuse it in fill and stroke
This commit is contained in:
parent
e0bb707f1e
commit
84d1b79fef
10 changed files with 72 additions and 98 deletions
|
|
@ -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.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue