summaryrefslogtreecommitdiffstats
path: root/glow/src
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 /glow/src
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 '')
-rw-r--r--glow/src/image.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/glow/src/image.rs b/glow/src/image.rs
index 955fd1ab..c32b2162 100644
--- a/glow/src/image.rs
+++ b/glow/src/image.rs
@@ -172,11 +172,16 @@ impl Pipeline {
layer::Image::Raster { handle: _, bounds } => (None, bounds),
#[cfg(feature = "svg")]
- layer::Image::Vector { handle, bounds } => {
+ layer::Image::Vector {
+ handle,
+ color,
+ bounds,
+ } => {
let size = [bounds.width, bounds.height];
(
vector_cache.upload(
handle,
+ *color,
size,
_scale_factor,
&mut gl,