diff options
Diffstat (limited to '')
-rw-r--r-- | examples/styling/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index 7e9b01ab..5ce54e23 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -108,7 +108,7 @@ impl Sandbox for Styling { "Check me!", Message::CheckboxToggled, ) - .style(self.theme); + .style(self.theme.into()); let toggler = Toggler::new( self.toggler_value, @@ -239,11 +239,11 @@ mod style { } } - impl From<Theme> for Box<dyn checkbox::StyleSheet> { + impl From<Theme> for &'static dyn checkbox::StyleSheet { fn from(theme: Theme) -> Self { match theme { Theme::Light => Default::default(), - Theme::Dark => dark::Checkbox.into(), + Theme::Dark => &dark::Checkbox, } } } |