Skip to content
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

AnimationSettings: Introduce get_animation_duration #2106

Merged
merged 4 commits into from
Nov 7, 2024

Conversation

leolost2605
Copy link
Member

We very often use AnimationSettings.get_enable_animations ? some duration : 0;. This is now done by AnimationSettings.get_animation_duration. The method can also be expanded upon in the future e.g. by moving all hardcoded times to an enum and take that (e.g. expanding the AnimationDuration enum from constants and using that).

@leolost2605 leolost2605 requested a review from a team November 2, 2024 11:24
@leolost2605 leolost2605 requested a review from lenemter November 2, 2024 14:04
@lenemter lenemter merged commit b2bfe28 into main Nov 7, 2024
4 checks passed
@lenemter lenemter deleted the leolost/introduce-get-animation-duration branch November 7, 2024 13:22
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.

2 participants