summaryrefslogtreecommitdiffstats
path: root/examples/tour/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:45:55 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:46:14 +0200
commit9852b4b36442ef036f0b308f798e892ddaa06c2d (patch)
tree032cd261637c79a4b04f11d59874a171a2e371be /examples/tour/src/main.rs
parent0e2fc99eb864800d2d1522c015054d84cad078f4 (diff)
downloadiced-9852b4b36442ef036f0b308f798e892ddaa06c2d.tar.gz
iced-9852b4b36442ef036f0b308f798e892ddaa06c2d.tar.bz2
iced-9852b4b36442ef036f0b308f798e892ddaa06c2d.zip
Move `Icon` layout logic to `layout` in `text_input`
Also add `Icon::spacing` field.
Diffstat (limited to '')
-rw-r--r--examples/tour/src/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index 6a1380d7..8a1b8d5a 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -138,7 +138,7 @@ impl Steps {
Step::Debugger,
Step::End,
],
- current: 0,
+ current: 8,
}
}
@@ -582,8 +582,9 @@ impl<'a> Step {
if is_showing_icon {
text_input = text_input.icon(text_input::Icon {
font: ICON_FONT,
- code_point: '\u{e900}',
+ code_point: '\u{E900}',
size: Some(35.0),
+ spacing: 10.0,
position: text_input::IconPosition::Right,
});
}