- Notifications
You must be signed in to change notification settings - Fork 27
fix: make shadows transparent #268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -54,9 +54,9 @@ pub fn confirm_modal<'a>( | |
| text_color: Some(theme.palette().text), | ||
| border: light_container_style(theme).border, | ||
| shadow: Shadow { | ||
| color: Color::from_rgba8(0, 0, 0, 0.5), | ||
| offset: Vector::new(4.0, 4.0), | ||
| blur_radius: 8.0, | ||
| color: Color::TRANSPARENT, | ||
| offset: Vector::ZERO, | ||
| blur_radius: 0.0, | ||
| }, | ||
| }); | ||
| | ||
| | @@ -140,9 +140,9 @@ pub fn basic_modal<'a>( | |
| text_color: Some(theme.palette().text), | ||
| border: light_container_style(theme).border, | ||
| shadow: Shadow { | ||
| color: Color::from_rgba8(0, 0, 0, 0.5), | ||
| offset: Vector::new(4.0, 4.0), | ||
| blur_radius: 8.0, | ||
| color: Color::TRANSPARENT, | ||
| offset: Vector::ZERO, | ||
| blur_radius: 0.0, | ||
| }, | ||
| Comment on lines 142 to 146 | ||
| }); | ||
| | ||
| | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -475,9 +475,9 @@ fn styled(background: Color, border: Color) -> container::Style { | |
| radius: (4.).into(), | ||
| }, | ||
| shadow: Shadow { | ||
| color: Color::from_rgba8(0, 0, 0, 0.25), | ||
| offset: Vector::new(-2., -2.), | ||
| blur_radius: 4., | ||
| color: Color::TRANSPARENT, | ||
| offset: Vector::ZERO, | ||
| blur_radius: 0.0, | ||
| }, | ||
| Comment on lines 477 to 481 | ||
| } | ||
| } | ||
| | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Instead of setting all shadow properties to zero/transparent, consider removing the shadow property entirely or using a default/disabled shadow configuration to make the intent clearer.