Move Icon layout logic to layout in text_input
Also add `Icon::spacing` field.
This commit is contained in:
parent
0e2fc99eb8
commit
9852b4b364
2 changed files with 66 additions and 66 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue