Specialize widget::text helper with custom IntoContent trait
This commit is contained in:
parent
c30b4b0a1c
commit
1d83e59e8a
5 changed files with 78 additions and 10 deletions
|
|
@ -173,7 +173,7 @@ impl App {
|
|||
.style(button::danger);
|
||||
|
||||
row![
|
||||
text(&item.name).color(item.color),
|
||||
text(item.name.clone()).color(item.color),
|
||||
horizontal_space(),
|
||||
pick_list(Color::ALL, Some(item.color), move |color| {
|
||||
Message::ItemColorChanged(item.clone(), color)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue