moodlit-native/Sources/Core/Theme/MoodlitBrand.swift
till dcd6281845 Theme-Galerie: alle Variants wählbar (ManaThemeUI), Default twilight + dunkel
MoodlitTheme variant-getrieben (ManaTheme.current, Default twilight);
MoodlitBrand computed; Root: hartkodiertes .preferredColorScheme(.dark)
ersetzt durch appearance (Default .dark, erhält den Ambiente-Look) +
.manaTheme; Galerie + Appearance-Picker im Settings ("Darstellung").
Build grün.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 02:06:03 +02:00

22 lines
838 B
Swift

import ManaAuthUI
/// Brücke zwischen ``MoodlitTheme`` und ``ManaBrandConfig`` von
/// `ManaAuthUI`. Wird im RootView einmal als Environment-Wert gesetzt
/// und färbt Login-/Reset-/Verify-Sheets im moodlit-Branding ein.
enum MoodlitBrand {
/// Computed (nicht `let`) folgt der aktuell gewählten Variant (Re-Render am Root).
static var manaBrand: ManaBrandConfig { ManaBrandConfig(
appName: "Moodlit",
tagline: "Ambient-Lighting des Vereins mana e.V.",
logoSymbol: "sparkles",
background: MoodlitTheme.background,
foreground: MoodlitTheme.foreground,
surface: MoodlitTheme.surface,
mutedForeground: MoodlitTheme.mutedForeground,
border: MoodlitTheme.border,
primary: MoodlitTheme.primary,
primaryForeground: MoodlitTheme.primaryForeground,
error: MoodlitTheme.error,
success: MoodlitTheme.success
) }
}