From 6551a0b2ab6c831dd1d3646ecf55180339275e22 Mon Sep 17 00:00:00 2001 From: Bingus Date: Thu, 11 May 2023 09:12:06 -0700 Subject: Added support for gradients as background variants + other optimizations. --- graphics/src/geometry/fill.rs | 3 ++- graphics/src/geometry/style.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'graphics/src/geometry') diff --git a/graphics/src/geometry/fill.rs b/graphics/src/geometry/fill.rs index 2e8c1669..6aa1f28b 100644 --- a/graphics/src/geometry/fill.rs +++ b/graphics/src/geometry/fill.rs @@ -1,7 +1,8 @@ //! Fill [crate::widget::canvas::Geometry] with a certain style. -use iced_core::{Color, Gradient}; +use iced_core::Color; pub use crate::geometry::Style; +use crate::Gradient; /// The style used to fill geometry. #[derive(Debug, Clone)] diff --git a/graphics/src/geometry/style.rs b/graphics/src/geometry/style.rs index be9ee376..ece6b32a 100644 --- a/graphics/src/geometry/style.rs +++ b/graphics/src/geometry/style.rs @@ -1,4 +1,5 @@ -use iced_core::{Color, Gradient}; +use crate::Gradient; +use iced_core::Color; /// The coloring style of some drawing. #[derive(Debug, Clone, PartialEq)] -- cgit