Move Icon layout logic to layout in text_input

Also add `Icon::spacing` field.
This commit is contained in:
Héctor Ramón Jiménez 2023-04-11 05:45:55 +02:00
parent 0e2fc99eb8
commit 9852b4b364
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 66 additions and 66 deletions

View file

@ -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,
});
}