feat(ui): apply animated background to all screens via themedBackground modifier

Extract AnimatedSportsBackground components to shared file and update
ThemedBackground modifier to conditionally show animations when enabled
in settings. All views using .themedBackground() now get animated background.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-01-21 18:06:58 -06:00
parent 3a135743f8
commit e1d84ac769
3 changed files with 225 additions and 211 deletions

View File

@@ -183,7 +183,15 @@ struct ThemedBackground: ViewModifier {
func body(content: Content) -> some View {
content
.background(Theme.backgroundGradient(colorScheme))
.background {
if DesignStyleManager.shared.animationsEnabled {
AnimatedSportsBackground()
.ignoresSafeArea()
} else {
Theme.backgroundGradient(colorScheme)
.ignoresSafeArea()
}
}
}
}