aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2023-01-19 14:45:06 -0330
committerSam Anthony <sam@samanthony.xyz>2023-01-19 14:45:06 -0330
commitf6e96daa12f70f40601eb4d04dc8c8a492008af8 (patch)
treef4719b56a3f82a57b3e7f7154f6e7ea824c1cdb8 /src/main.rs
parentb16b909074691c5d528774827b43c66cefc5f865 (diff)
downloadvolute-f6e96daa12f70f40601eb4d04dc8c8a492008af8.zip
displacement label
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
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()
}
}