summaryrefslogtreecommitdiffstats
path: root/graphics/src/layer.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-12-06 05:15:16 +0100
committerLibravatar GitHub <noreply@github.com>2022-12-06 05:15:16 +0100
commitf38e7fcac2e3505d11577ade1757a77ca2a544ea (patch)
tree84b3dc6c88aa555cf931482adcf4e7be35614b72 /graphics/src/layer.rs
parent28f0beee52f258af6bbaf8a0d9867863d7513c9b (diff)
parentf99d24e0850b63194b7976ec66d547ea2ff6bfc8 (diff)
downloadiced-f38e7fcac2e3505d11577ade1757a77ca2a544ea.tar.gz
iced-f38e7fcac2e3505d11577ade1757a77ca2a544ea.tar.bz2
iced-f38e7fcac2e3505d11577ade1757a77ca2a544ea.zip
Merge pull request #1578 from iced-rs/svg-styling
Svg styling
Diffstat (limited to 'graphics/src/layer.rs')
-rw-r--r--graphics/src/layer.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/graphics/src/layer.rs b/graphics/src/layer.rs
index fd670f48..1d453caa 100644
--- a/graphics/src/layer.rs
+++ b/graphics/src/layer.rs
@@ -251,11 +251,16 @@ impl<'a> Layer<'a> {
bounds: *bounds + translation,
});
}
- Primitive::Svg { handle, bounds } => {
+ Primitive::Svg {
+ handle,
+ color,
+ bounds,
+ } => {
let layer = &mut layers[current_layer];
layer.images.push(Image::Vector {
handle: handle.clone(),
+ color: *color,
bounds: *bounds + translation,
});
}