Skip to content

Commit

Permalink
Add hint text for description field
Browse files Browse the repository at this point in the history
  • Loading branch information
Barugon committed Mar 17, 2023
1 parent ef097ba commit 0a999f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plant_dlg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl PlantDlg {
});

// Description.
let widget = TextEdit::singleline(&mut self.description);
let widget = TextEdit::singleline(&mut self.description).hint_text("additional info");
ui.spacing_mut().item_spacing.x = item_spacing.x;
ui.add_sized(ui.available_size(), widget);
});
Expand Down

0 comments on commit 0a999f0

Please sign in to comment.