diff options
Diffstat (limited to 'examples/tour/src')
-rw-r--r-- | examples/tour/src/main.rs | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 16ee19c0..13bcd5ff 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -62,11 +62,8 @@ impl Sandbox for Tour { controls = controls.push(horizontal_space(Length::Fill)); if steps.can_continue() { - controls = controls.push( - button("Next") - .on_press(Message::NextPressed) - .style(theme::Button::Primary), - ); + controls = + controls.push(button("Next").on_press(Message::NextPressed)); } let content: Element<_> = column![ @@ -565,11 +562,6 @@ impl<'a> Step { is_secure: bool, is_showing_icon: bool, ) -> Column<'a, StepMessage> { - const ICON_FONT: Font = Font::External { - name: "Icons", - bytes: include_bytes!("../fonts/icons.ttf"), - }; - let mut text_input = text_input("Type something to continue...", value) .on_input(StepMessage::InputChanged) .padding(10) @@ -577,9 +569,9 @@ impl<'a> Step { if is_showing_icon { text_input = text_input.icon(text_input::Icon { - font: ICON_FONT, - code_point: '\u{E900}', - size: Some(35.0), + font: Font::default(), + code_point: '🚀', + size: Some(28.0), spacing: 10.0, side: text_input::Side::Right, }); |