marc2332 / freya

Cross-platform GUI library for 🦀 Rust powered by 🧬 Dioxus and 🎨 Skia.
https://freyaui.dev/
MIT License
1.33k stars 51 forks source link

fix: Prevent opacity from clipping the node bounds #764

Closed marc2332 closed 1 month ago

marc2332 commented 1 month ago

Closes https://github.com/marc2332/freya/issues/762

marc2332 commented 1 month ago

idea: Prepare shadows, adjust node bounds with the shadows bounds and then apply the opacity on the adjusted bounds

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 0% with 25 lines in your changes missing coverage. Please review.

Project coverage is 73.74%. Comparing base (1cfd863) to head (c1f57c9).

Files Patch % Lines
crates/renderer/src/app.rs 0.00% 16 Missing :warning:
crates/core/src/skia/skia_renderer.rs 0.00% 8 Missing :warning:
crates/testing/src/test_handler.rs 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #764 +/- ## ========================================== - Coverage 73.81% 73.74% -0.08% ========================================== Files 200 200 Lines 20955 20975 +20 ========================================== Hits 15468 15468 - Misses 5487 5507 +20 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.