feat: in-app dark mode toggle (System / Light / Dark)
All checks were successful
Security Checks / dependency-audit (push) Successful in 14s
Security Checks / secret-scanning (push) Successful in 4s
Security Checks / dockerfile-lint (push) Successful in 4s

- AppearanceManager with UserDefaults persistence
- Three modes: System (follows iOS), Light, Dark
- Toggle in Home screen profile menu under "Appearance"
- Applied via .preferredColorScheme at app root
- Persists across app launches

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 20:22:35 -05:00
parent da44ee8b73
commit 028e308588
4 changed files with 63 additions and 0 deletions

View File

@@ -3,11 +3,14 @@ import SwiftUI
@main
struct PlatformApp: App {
@State private var authManager = AuthManager()
@State private var appearance = AppearanceManager()
var body: some Scene {
WindowGroup {
ContentView()
.environment(authManager)
.environment(appearance)
.preferredColorScheme(appearance.mode.colorScheme)
}
}
}