From 22ff53ddad13f81d314b205d515847d59b541a1f Mon Sep 17 00:00:00 2001 From: Tommy Volk Date: Wed, 3 Sep 2025 22:30:11 -0500 Subject: [PATCH] fix: make shadows transparent --- harbor-ui/src/components/confirm_modal.rs | 12 ++++++------ harbor-ui/src/components/toast.rs | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/harbor-ui/src/components/confirm_modal.rs b/harbor-ui/src/components/confirm_modal.rs index 634652b8..4ed9e309 100644 --- a/harbor-ui/src/components/confirm_modal.rs +++ b/harbor-ui/src/components/confirm_modal.rs @@ -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, }, }); diff --git a/harbor-ui/src/components/toast.rs b/harbor-ui/src/components/toast.rs index e19ffc44..b9081c2e 100644 --- a/harbor-ui/src/components/toast.rs +++ b/harbor-ui/src/components/toast.rs @@ -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, }, } }