Remove FillType::None for the fill node (#1572)

* Remove FillType::None for the fill node

* Fix demo art
This commit is contained in:
0HyperCube 2024-01-13 23:52:10 +00:00 committed by GitHub
parent e0adf1040f
commit 47b3355950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 8 deletions

View file

@ -209,7 +209,6 @@ impl Fill {
#[repr(C)]
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize, DynAny, Hash, specta::Type)]
pub enum FillType {
None,
Solid,
Gradient,
}

View file

@ -31,7 +31,7 @@ fn set_vector_data_fill(
positions: Vec<(f64, Option<Color>)>,
) -> VectorData {
vector_data.style.set_fill(match fill_type {
FillType::None | FillType::Solid => solid_color.map_or(Fill::None, Fill::Solid),
FillType::Solid => solid_color.map_or(Fill::None, Fill::Solid),
FillType::Gradient => Fill::Gradient(Gradient {
start,
end,