summaryrefslogtreecommitdiffstats
path: root/examples/styling/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 cca94c8f..7e9b01ab 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),
+ .style(self.theme.into()),
)
},
);
@@ -185,11 +185,11 @@ mod style {
}
}
- impl From<Theme> for Box<dyn radio::StyleSheet> {
+ impl From<Theme> for &'static dyn radio::StyleSheet {
fn from(theme: Theme) -> Self {
match theme {
Theme::Light => Default::default(),
- Theme::Dark => dark::Radio.into(),
+ Theme::Dark => &dark::Radio,
}
}
}