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

enhancement: Support `alpha` channel in `AnimColor` #770

Closed Aiving closed 1 month ago

Aiving commented 1 month ago

The current implementation of AnimColor returns (and animates) only RGB when calling as_string, even if in origin or destination properties the alpha channel value is not 255.

https://github.com/marc2332/freya/blob/1955629e6c355ff74415037e44869026da8aec89/crates/hooks/src/use_animation.rs#L180-L187

marc2332 commented 1 month ago

Very good point. I'll improve this asap!

marc2332 commented 1 month ago

Just opened https://github.com/marc2332/freya/pull/771