diff options
author | 2023-05-11 16:45:08 +0200 | |
---|---|---|
committer | 2023-05-11 16:45:08 +0200 | |
commit | 669f7cc74b2e7918e86a8197916f503f2d3d9b93 (patch) | |
tree | acb365358235be6ce115b50db9404d890b6e77a6 /examples/tour | |
parent | bc62013b6cde52174bf4c4286939cf170bfa7760 (diff) | |
parent | 63d3fc6996b848e10e77e6924bfebdf6ba82852e (diff) | |
download | iced-669f7cc74b2e7918e86a8197916f503f2d3d9b93.tar.gz iced-669f7cc74b2e7918e86a8197916f503f2d3d9b93.tar.bz2 iced-669f7cc74b2e7918e86a8197916f503f2d3d9b93.zip |
Merge pull request #1830 from iced-rs/advanced-text
Advanced text
Diffstat (limited to 'examples/tour')
-rw-r--r-- | examples/tour/fonts/icons.ttf | bin | 1612 -> 0 bytes | |||
-rw-r--r-- | examples/tour/src/main.rs | 11 |
2 files changed, 3 insertions, 8 deletions
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..9c38ad0e 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -565,11 +565,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 +572,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, }); |