diff options
Diffstat (limited to 'examples/tour')
-rw-r--r-- | examples/tour/Cargo.toml | 2 | ||||
-rw-r--r-- | examples/tour/fonts/icons.ttf | bin | 1612 -> 0 bytes | |||
-rw-r--r-- | examples/tour/src/main.rs | 18 |
3 files changed, 6 insertions, 14 deletions
diff --git a/examples/tour/Cargo.toml b/examples/tour/Cargo.toml index 39e83671..48471f2d 100644 --- a/examples/tour/Cargo.toml +++ b/examples/tour/Cargo.toml @@ -7,4 +7,4 @@ publish = false [dependencies] iced = { path = "../..", features = ["image", "debug"] } -env_logger = "0.8" +env_logger = "0.10.0" diff --git a/examples/tour/fonts/icons.ttf b/examples/tour/fonts/icons.ttf Binary files differdeleted file mode 100644 index bfe8a24b..00000000 --- a/examples/tour/fonts/icons.ttf +++ /dev/null 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, }); |