Specialize widget::text helper with custom IntoContent trait

This commit is contained in:
Héctor Ramón Jiménez 2024-04-01 21:36:08 +02:00
parent c30b4b0a1c
commit 1d83e59e8a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 78 additions and 10 deletions

View file

@ -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)