summaryrefslogtreecommitdiff
path: root/crates/material_theme/src/slider.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-28 10:56:49 +0200
committerpml68 <contact@pml68.dev>2025-04-28 10:56:49 +0200
commitdac7e82e0bff128097653fe05829b2d576fcdb2f (patch)
tree6f36736e79eecd6904933c6876af1df58e6b605b /crates/material_theme/src/slider.rs
parentfeat(material_theme): implement `image::Catalog` (under feature flag) (diff)
downloadiced-builder-dac7e82e0bff128097653fe05829b2d576fcdb2f.tar.gz
refactor(material_theme)!: make `Theme` an enum with `Custom` variant
Diffstat (limited to 'crates/material_theme/src/slider.rs')
-rw-r--r--crates/material_theme/src/slider.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/material_theme/src/slider.rs b/crates/material_theme/src/slider.rs
index 8665459..ae9ee4b 100644
--- a/crates/material_theme/src/slider.rs
+++ b/crates/material_theme/src/slider.rs
@@ -41,9 +41,9 @@ pub fn styled(left: Color, right: Color, handle_radius: f32) -> Style {
}
pub fn default(theme: &Theme, status: Status) -> Style {
- let surface = theme.colorscheme.surface;
- let primary = theme.colorscheme.primary;
- let secondary = theme.colorscheme.secondary;
+ let surface = theme.colors().surface;
+ let primary = theme.colors().primary;
+ let secondary = theme.colors().secondary;
match status {
Status::Active => {