mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-27 04:38:49 +00:00
Gradient styles show production's icons
This commit is contained in:
@@ -40,15 +40,14 @@ impl GradientStyle {
|
||||
}
|
||||
}
|
||||
|
||||
/// The style's icon: `gradient_linear`, `gradient_radial`, `gradient_angle`, `gradient_reflected`
|
||||
/// or `gradient_diamond`.
|
||||
/// The style's icon: `gradient`, `circle`, `rotate_cw`, `swap_horizontal` or `diamond`.
|
||||
pub fn icon(self) -> IconId {
|
||||
IconId::new(match self {
|
||||
GradientStyle::Linear => "gradient_linear",
|
||||
GradientStyle::Radial => "gradient_radial",
|
||||
GradientStyle::Angle => "gradient_angle",
|
||||
GradientStyle::Reflected => "gradient_reflected",
|
||||
GradientStyle::Diamond => "gradient_diamond",
|
||||
GradientStyle::Linear => "gradient",
|
||||
GradientStyle::Radial => "circle",
|
||||
GradientStyle::Angle => "rotate_cw",
|
||||
GradientStyle::Reflected => "swap_horizontal",
|
||||
GradientStyle::Diamond => "diamond",
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user