iced-yoda/style/src/progress_bar.rs

18 lines
432 B
Rust
Raw Normal View History

2020-01-07 01:53:26 +01:00
//! Provide progress feedback to your users.
use iced_core::Background;
2020-01-07 01:53:26 +01:00
/// The appearance of a progress bar.
#[derive(Debug, Clone, Copy)]
pub struct Appearance {
2020-01-07 01:53:26 +01:00
pub background: Background,
pub bar: Background,
pub border_radius: f32,
2020-01-07 01:53:26 +01:00
}
/// A set of rules that dictate the style of a progress bar.
pub trait StyleSheet {
type Style: Default + Copy;
2020-01-07 01:53:26 +01:00
fn appearance(&self, style: Self::Style) -> Appearance;
2020-01-07 01:53:26 +01:00
}