diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/screenshot/src/main.rs | 6 | ||||
-rw-r--r-- | examples/scrollable/src/main.rs | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/screenshot/src/main.rs b/examples/screenshot/src/main.rs index 7fc87446..2d980dd9 100644 --- a/examples/screenshot/src/main.rs +++ b/examples/screenshot/src/main.rs @@ -170,7 +170,7 @@ impl Example { column![ column![ button(centered_text("Screenshot!")) - .padding([10, 20, 10, 20]) + .padding([10, 20]) .width(Fill) .on_press(Message::Screenshot), if !self.png_saving { @@ -182,7 +182,7 @@ impl Example { .style(button::secondary) } .style(button::secondary) - .padding([10, 20, 10, 20]) + .padding([10, 20]) .width(Fill) ] .spacing(10), @@ -191,7 +191,7 @@ impl Example { button(centered_text("Crop")) .on_press(Message::Crop) .style(button::danger) - .padding([10, 20, 10, 20]) + .padding([10, 20]) .width(Fill), ] .spacing(10) diff --git a/examples/scrollable/src/main.rs b/examples/scrollable/src/main.rs index a1c23976..de4f2f9a 100644 --- a/examples/scrollable/src/main.rs +++ b/examples/scrollable/src/main.rs @@ -213,7 +213,7 @@ impl ScrollableDemo { scroll_to_beginning_button(), ] .align_x(Center) - .padding([40, 0, 40, 0]) + .padding([40, 0]) .spacing(40), ) .direction(scrollable::Direction::Vertical( @@ -239,7 +239,7 @@ impl ScrollableDemo { ] .height(450) .align_y(Center) - .padding([0, 40, 0, 40]) + .padding([0, 40]) .spacing(40), ) .direction(scrollable::Direction::Horizontal( @@ -281,7 +281,7 @@ impl ScrollableDemo { scroll_to_beginning_button(), ] .align_y(Center) - .padding([0, 40, 0, 40]) + .padding([0, 40]) .spacing(40), ) .direction({ |