-
-
Notifications
You must be signed in to change notification settings - Fork 119
chore: add lottie generation script #776
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: main
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 improves the developer workflow by adding automation for Lottie animation generation and reorganizes asset files for better maintainability. The changes move Lottie-related files from the main project directory to a dedicated assets folder and introduce a PowerShell script to regenerate animated visual code automatically.
Changes:
- Adds automation script
generate-lottie.ps1to generate C# code from Lottie JSON files - Updates developer tooling by upgrading
xamlstyler.consoleto version 3.2501.8 and addingLottieGenversion 8.2.250604 - Reorganizes files by moving the Lottie JSON source from
Controls/Animations/toassets/animations/and the generated C# file toAssets/Animations/
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/generate-lottie.ps1 | New PowerShell automation script that processes JSON files from assets/animations and generates C# animated visual classes |
| assets/animations/AnimatedPlayingVisualSource.json | Lottie animation source file moved from Controls to repository assets folder |
| .config/dotnet-tools.json | Updates xamlstyler.console to 3.2501.8 and adds LottieGen 8.2.250604 as a dotnet tool |
| Screenbox/Screenbox.csproj | Updates project to reference the generated file in its new location (Assets/Animations) |
| Screenbox/Controls/MediaListViewItem.xaml | Updates namespace reference from Screenbox.Controls.Animations to Screenbox.Animations |
| Screenbox/Assets/Animations/AnimatedPlayingVisualSource.cs | Regenerated C# code with updated namespace, newer LottieGen version, and minor formatting changes |
AnimatedPlayingVisualSource.jsonLottie file from the main project to the repository's assets folderAnimatedPlayingVisualSource.csfile from "Controls" to the "Assets" folderxamlstyler.consoletool and addsLottieGentodotnet-tools.jsongenerate-lottie.ps1to generate C# animated visuals from JSON files automatically