diff options
| author | 2023-02-17 16:53:02 +0100 | |
|---|---|---|
| committer | 2023-02-17 16:53:02 +0100 | |
| commit | 7dc1fb488ddbd12519571b51d75ae0c28875911d (patch) | |
| tree | 92590830b23bb714ec8024766fef7273b041bbf3 /examples/styling | |
| parent | f75e0202575ca6e3ebf7d817eecbf51e198506fd (diff) | |
| parent | fd1408693322f5bfdaee7f27bd098808658d7310 (diff) | |
| download | iced-7dc1fb488ddbd12519571b51d75ae0c28875911d.tar.gz iced-7dc1fb488ddbd12519571b51d75ae0c28875911d.tar.bz2 iced-7dc1fb488ddbd12519571b51d75ae0c28875911d.zip | |
Merge pull request #1711 from iced-rs/feature/generic-pixel-units
Generic pixel units
Diffstat (limited to 'examples/styling')
| -rw-r--r-- | examples/styling/src/main.rs | 12 | 
1 files changed, 4 insertions, 8 deletions
| diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs index 49bedce7..448c9792 100644 --- a/examples/styling/src/main.rs +++ b/examples/styling/src/main.rs @@ -108,14 +108,10 @@ impl Sandbox for Styling {          let progress_bar = progress_bar(0.0..=100.0, self.slider_value);          let scrollable = scrollable( -            column![ -                "Scroll me!", -                vertical_space(Length::Units(800)), -                "You did it!" -            ] -            .width(Length::Fill), +            column!["Scroll me!", vertical_space(800), "You did it!"] +                .width(Length::Fill),          ) -        .height(Length::Units(100)); +        .height(100);          let checkbox = checkbox(              "Check me!", @@ -143,7 +139,7 @@ impl Sandbox for Styling {                  column![checkbox, toggler].spacing(20)              ]              .spacing(10) -            .height(Length::Units(100)) +            .height(100)              .align_items(Alignment::Center),          ]          .spacing(20) | 
