-
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?
Conversation
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.
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.0to 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.
| 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, | ||
| }, |
Copilot
AI
Sep 4, 2025
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.
| 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, | ||
| }, |
Copilot
AI
Sep 4, 2025
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.
| 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, | ||
| }, |
Copilot
AI
Sep 4, 2025
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.
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.