summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-28 17:36:36 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-10-28 18:04:27 +0700
commite42e1e2f57ddb455ceff0017e215ddacca978d37 (patch)
tree5052541cfab8ba64c9c1aa8d0d09a2b4b3540126 /graphics
parentbc32199e39ee3d42b0d71d9082d56b368e401534 (diff)
downloadiced-e42e1e2f57ddb455ceff0017e215ddacca978d37.tar.gz
iced-e42e1e2f57ddb455ceff0017e215ddacca978d37.tar.bz2
iced-e42e1e2f57ddb455ceff0017e215ddacca978d37.zip
Implement `Widget::draw` for `ProgressBar`
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/widget/progress_bar.rs20
1 files changed, 1 insertions, 19 deletions
diff --git a/graphics/src/widget/progress_bar.rs b/graphics/src/widget/progress_bar.rs
index 3d21b7b9..df4f5ec6 100644
--- a/graphics/src/widget/progress_bar.rs
+++ b/graphics/src/widget/progress_bar.rs
@@ -2,22 +2,4 @@
//!
//! A [`ProgressBar`] has a range of possible values and a current value,
//! as well as a length, height and style.
-use crate::{Backend, Renderer};
-use iced_native::progress_bar;
-
-pub use iced_style::progress_bar::{Style, StyleSheet};
-
-/// A bar that displays progress.
-///
-/// This is an alias of an `iced_native` progress bar with an
-/// `iced_wgpu::Renderer`.
-pub type ProgressBar<Backend> = iced_native::ProgressBar<Renderer<Backend>>;
-
-impl<B> progress_bar::Renderer for Renderer<B>
-where
- B: Backend,
-{
- type Style = Box<dyn StyleSheet>;
-
- const DEFAULT_HEIGHT: u16 = 30;
-}
+pub use iced_native::progress_bar::*;