From dac7e82e0bff128097653fe05829b2d576fcdb2f Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 28 Apr 2025 10:56:49 +0200 Subject: refactor(material_theme)!: make `Theme` an enum with `Custom` variant --- crates/material_theme/src/slider.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/material_theme/src/slider.rs') 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 => { -- cgit v1.2.3