diff options
Diffstat (limited to 'examples/modal/src/main.rs')
| -rw-r--r-- | examples/modal/src/main.rs | 28 | 
1 files changed, 15 insertions, 13 deletions
| diff --git a/examples/modal/src/main.rs b/examples/modal/src/main.rs index f1f0e8ad..067ca24d 100644 --- a/examples/modal/src/main.rs +++ b/examples/modal/src/main.rs @@ -201,19 +201,21 @@ where  {      stack![          base.into(), -        mouse_area(center(opaque(content)).style(|_theme| { -            container::Style { -                background: Some( -                    Color { -                        a: 0.8, -                        ..Color::BLACK -                    } -                    .into(), -                ), -                ..container::Style::default() -            } -        })) -        .on_press(on_blur) +        opaque( +            mouse_area(center(opaque(content)).style(|_theme| { +                container::Style { +                    background: Some( +                        Color { +                            a: 0.8, +                            ..Color::BLACK +                        } +                        .into(), +                    ), +                    ..container::Style::default() +                } +            })) +            .on_press(on_blur) +        )      ]      .into()  } | 
