zitare-native/Sources/Core/Theme/ZitareBrand.swift
Till JS 7ba8684074 fix(account): Anmelden-Button + ManaAuthGate-Wiring
AccountView hatte zwar einen Status-Text aber keinen Login-Button,
und der ManaAuthGate war überhaupt nicht im App-Tree eingebaut —
Guest-Mode-User konnten sich nirgends anmelden.

- ZitareNativeApp: ManaAuthGate(auth:) instantiiert + via environment
  durchgereicht
- RootView: .manaBrand(ZitareBrand.manaBrand) +
  .manaAuthGate(authGate) { ManaLoginView(…) } für globales
  Sign-In-Sheet
- AccountView: authActionCard mit "Mit mana-Konto anmelden" /
  "Abmelden" (keepGuestMode: true)
- ZitareBrand neu (paper-Theme-Brücke zu ManaBrandConfig)
- project.yml: platformFilter: iOS für Widget+Share-Extensions
  (macOS-Build war pre-existing kaputt mit "embedded iOS content")

iOS + macOS BUILD SUCCEEDED.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-19 15:28:08 +02:00

21 lines
808 B
Swift

import ManaAuthUI
/// Brücke zwischen `ZitareTheme` (paper-Variant) und der
/// `ManaBrandConfig` von `ManaAuthUI`. Im App-Body als Environment-Wert
/// gesetzt Login-Sheet bekommt damit das paper-Theme statt mana-Default.
enum ZitareBrand {
static let manaBrand = ManaBrandConfig(
appName: "Zitare",
tagline: "Öffentlicher Zitat-Korpus von mana e.V.",
logoSymbol: "quote.opening",
background: ZitareTheme.background,
foreground: ZitareTheme.foreground,
surface: ZitareTheme.surface,
mutedForeground: ZitareTheme.mutedForeground,
border: ZitareTheme.border,
primary: ZitareTheme.primary,
primaryForeground: ZitareTheme.primaryForeground,
error: ZitareTheme.error,
success: ZitareTheme.success
)
}