Skip to content

Conversation

@tvolk131
Copy link
Contributor

@tvolk131 tvolk131 commented Sep 4, 2025

Currently, the usage of iced shadows are all partially-transparent black, but the background is set to be dark, so the shadow is practically invisible. Let's just set it to be transparent.

Copilot AI review requested due to automatic review settings September 4, 2025 04:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a visual issue where shadow effects were invisible against dark backgrounds by making them transparent instead of partially-transparent black.

  • Replaces semi-transparent black shadow colors with Color::TRANSPARENT
  • Resets shadow offsets from custom values to Vector::ZERO
  • Sets blur radius to 0.0 to completely disable shadow effects

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
harbor-ui/src/components/toast.rs Updates shadow styling in the styled function to use transparent color
harbor-ui/src/components/confirm_modal.rs Updates shadow styling in both confirm_modal and basic_modal functions to use transparent color

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 477 to 481
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,
},
Copy link

Copilot AI Sep 4, 2025

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.

Copilot uses AI. Check for mistakes.
Comment on lines 56 to 60
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,
},
Copy link

Copilot AI Sep 4, 2025

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.

Copilot uses AI. Check for mistakes.
Comment on lines 142 to 146
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,
},
Copy link

Copilot AI Sep 4, 2025

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.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant