Skip to content

Conversation

@lazytanuki
Copy link

@lazytanuki lazytanuki commented Feb 2, 2025

Hi!

This is the continuation of #2483 for the 'Toggler' widget animation based on the recently merged #2757.

To respect the animations feature flag, we still use the animation code but the animation is just instantaneous, which IMO reduces the code complexity as opposed to having several features gates.

The toggler movement follows an "ease out" animation, and the background color smoothly transitions from one state to the other as well.

I've also included an example crate which is supposed to showcase all animated widgets as they land. ('cargo run -rp animations')

Thanks!

Kooha-2025-02-02-20-08-42.webm

@TheESN
Copy link

TheESN commented Feb 20, 2025

Is there anything new about merging this pr?

@lazytanuki lazytanuki force-pushed the toggle_anim branch 3 times, most recently from bee65bf to 9f68641 Compare February 22, 2025 16:26
@hecrj hecrj added this to the 1.0 milestone Nov 20, 2025
@hecrj
Copy link
Member

hecrj commented Nov 20, 2025

This is waiting for me to explore an approach that would introduce an associated type to Catalog (and maybe a trait) to allow fine-tuning of animations in custom themes.

I'm aware the wait can be a bit frustrating, but hopefully it'll be worth it in the end!

I appreciate all the effort here.

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.

3 participants