summaryrefslogtreecommitdiffstats
path: root/wgpu/src/renderer.rs
diff options
context:
space:
mode:
authorLibravatar memoryruins <memoryruinsmusic@gmail.com>2019-11-07 01:03:29 -0500
committerLibravatar memoryruins <memoryruinsmusic@gmail.com>2019-11-07 01:03:29 -0500
commite7bd24c13eb0c5c2b8ecf3f09f9e2de315bf8a41 (patch)
treecd15929a84965238b3aecf5d37214182079eb868 /wgpu/src/renderer.rs
parent58bd0824bf458b6a5b21ade1efe998b1439469cd (diff)
downloadiced-e7bd24c13eb0c5c2b8ecf3f09f9e2de315bf8a41.tar.gz
iced-e7bd24c13eb0c5c2b8ecf3f09f9e2de315bf8a41.tar.bz2
iced-e7bd24c13eb0c5c2b8ecf3f09f9e2de315bf8a41.zip
use Color's `From` impl in more places
Diffstat (limited to 'wgpu/src/renderer.rs')
-rw-r--r--wgpu/src/renderer.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/wgpu/src/renderer.rs b/wgpu/src/renderer.rs
index c8e1e10d..799cb30c 100644
--- a/wgpu/src/renderer.rs
+++ b/wgpu/src/renderer.rs
@@ -444,12 +444,7 @@ fn explain_layout(
// TODO: Draw borders instead
primitives.push(Primitive::Quad {
bounds: layout.bounds(),
- background: Background::Color(Color {
- r: 0.0,
- g: 0.0,
- b: 0.0,
- a: 0.05,
- }),
+ background: Background::Color([0.0, 0.0, 0.0, 0.05].into()),
border_radius: 0,
});