diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2023-01-19 14:45:06 -0330 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2023-01-19 14:45:06 -0330 |
| commit | f6e96daa12f70f40601eb4d04dc8c8a492008af8 (patch) | |
| tree | f4719b56a3f82a57b3e7f7154f6e7ea824c1cdb8 /src | |
| parent | b16b909074691c5d528774827b43c66cefc5f865 (diff) | |
| download | volute-f6e96daa12f70f40601eb4d04dc8c8a492008af8.zip | |
displacement label
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs index 2872fcf..7af7bac 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ use iced::{ - widget::{column, text_input}, + widget::{column, row, text, text_input}, Element, Sandbox, Settings, }; @@ -60,11 +60,10 @@ impl Sandbox for App { } fn view(&self) -> Element<Self::Message> { - column![text_input( - "placeholder", - &self.ui.displacement, - Message::DisplacementChanged, - ),] + column![row![ + text("Displacement:"), + text_input("2.0", &self.ui.displacement, Message::DisplacementChanged), + ]] .into() } } |