diff options
Diffstat (limited to '')
| -rw-r--r-- | crates/material_theme/src/progress_bar.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/crates/material_theme/src/progress_bar.rs b/crates/material_theme/src/progress_bar.rs deleted file mode 100644 index 9b4e844..0000000 --- a/crates/material_theme/src/progress_bar.rs +++ /dev/null @@ -1,26 +0,0 @@ -use iced_widget::core::{Background, border}; -use iced_widget::progress_bar::{Catalog, Style, StyleFn}; - -use super::Theme; - -impl Catalog for Theme { - type Class<'a> = StyleFn<'a, Self>; - - fn default<'a>() -> Self::Class<'a> { - Box::new(default) - } - - fn style(&self, class: &Self::Class<'_>) -> Style { - class(self) - } -} - -pub fn default(theme: &Theme) -> Style { - Style { - background: Background::Color( - theme.colors().secondary.secondary_container, - ), - bar: Background::Color(theme.colors().primary.color), - border: border::rounded(400), - } -} |
