diff options
author | 2019-12-04 22:02:07 +0100 | |
---|---|---|
committer | 2019-12-04 22:02:07 +0100 | |
commit | 33ad332ce99fff5de8e50a5b5c98f3ce181c311a (patch) | |
tree | 256269a85712c96d6e43b02c9343a8265599b081 /wgpu | |
parent | ed045b45ba9490b6020618fb13c7dbc3ea5032ab (diff) | |
download | iced-33ad332ce99fff5de8e50a5b5c98f3ce181c311a.tar.gz iced-33ad332ce99fff5de8e50a5b5c98f3ce181c311a.tar.bz2 iced-33ad332ce99fff5de8e50a5b5c98f3ce181c311a.zip |
Implemented `From<Color` for `Background`
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/renderer/widget/slider.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wgpu/src/renderer/widget/slider.rs b/wgpu/src/renderer/widget/slider.rs index f561be0a..c73a4e56 100644 --- a/wgpu/src/renderer/widget/slider.rs +++ b/wgpu/src/renderer/widget/slider.rs @@ -29,7 +29,7 @@ impl slider::Renderer for Renderer { width: bounds.width, height: 2.0, }, - background: Background::Color([0.6, 0.6, 0.6].into()), + background: Color::from_rgb(0.6, 0.6, 0.6).into(), border_radius: 0, }, Primitive::Quad { @@ -57,7 +57,7 @@ impl slider::Renderer for Renderer { width: HANDLE_WIDTH + 2.0, height: HANDLE_HEIGHT + 2.0, }, - background: Background::Color([0.6, 0.6, 0.6].into()), + background: Color::from_rgb(0.6, 0.6, 0.6).into(), border_radius: 5, }, Primitive::Quad { |