From 9dd20ead085ff3b9b4bd441b5e4938cf8e813f35 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 15 Feb 2024 02:01:56 +0100 Subject: Rename `password` method in `TextInput` to `secure` --- examples/modal/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/modal') diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index 6fe951ee..1dac0075 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -157,7 +157,7 @@ impl Application for App { text_input("", &self.password) .on_input(Message::Password) .on_submit(Message::Submit) - .password() + .secure(true) .padding(5), ] .spacing(5), -- cgit From e8049af23dbf4988ff24b75b90104295f61098a2 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 15 Feb 2024 02:08:22 +0100 Subject: Make `horizontal_space` and `vertical_space` fill by default --- examples/modal/src/main.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'examples/modal') diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index 1dac0075..938ce32c 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -111,13 +111,9 @@ impl Application for App { fn view(&self) -> Element { let content = container( column![ - row![ - text("Top Left"), - horizontal_space(Length::Fill), - text("Top Right") - ] - .align_items(Alignment::Start) - .height(Length::Fill), + row![text("Top Left"), horizontal_space(), text("Top Right")] + .align_items(Alignment::Start) + .height(Length::Fill), container( button(text("Show Modal")).on_press(Message::ShowModal) ) @@ -127,7 +123,7 @@ impl Application for App { .height(Length::Fill), row![ text("Bottom Left"), - horizontal_space(Length::Fill), + horizontal_space(), text("Bottom Right") ] .align_items(Alignment::End) -- cgit