From 00c6cf80cb9c4587700078a062a6b32873b6f8ff Mon Sep 17 00:00:00 2001 From: pml68 Date: Thu, 26 Jun 2025 12:16:52 +0200 Subject: feat: extract `material_theme` into separate repo (`pml68/iced_material`) --- crates/material_theme/src/progress_bar.rs | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 crates/material_theme/src/progress_bar.rs (limited to 'crates/material_theme/src/progress_bar.rs') 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), - } -} -- cgit v1.2.3