aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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()
}
}