summaryrefslogtreecommitdiffstats
path: root/examples/styling
diff options
context:
space:
mode:
Diffstat (limited to 'examples/styling')
-rw-r--r--examples/styling/src/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs
index 3692ad1e..73f965d9 100644
--- a/examples/styling/src/main.rs
+++ b/examples/styling/src/main.rs
@@ -64,7 +64,7 @@ impl Sandbox for Styling {
Some(self.theme),
Message::ThemeChanged,
)
- .style(self.theme.into()),
+ .style(self.theme),
)
},
);
@@ -185,11 +185,11 @@ mod style {
}
}
- impl From<Theme> for &'static dyn radio::StyleSheet {
+ impl<'a> From<Theme> for Box<dyn radio::StyleSheet + 'a> {
fn from(theme: Theme) -> Self {
match theme {
Theme::Light => Default::default(),
- Theme::Dark => &dark::Radio,
+ Theme::Dark => dark::Radio.into(),
}
}
}