Add user-facing appearance setting (System/Light/Dark) wired via preferredColorScheme at the app root. Replace hardcoded .black tints and foreground styles with .primary so toolbar buttons and text remain visible in dark mode. Remove profile picture from settings and SwiftSoup from acknowledgements. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
23 lines
514 B
Swift
23 lines
514 B
Swift
//
|
|
// AppearanceMode.swift
|
|
// Nextcloud Cookbook iOS Client
|
|
//
|
|
|
|
import Foundation
|
|
|
|
enum AppearanceMode: String, CaseIterable {
|
|
case system = "system"
|
|
case light = "light"
|
|
case dark = "dark"
|
|
|
|
func descriptor() -> String {
|
|
switch self {
|
|
case .system: return String(localized: "System")
|
|
case .light: return String(localized: "Light")
|
|
case .dark: return String(localized: "Dark")
|
|
}
|
|
}
|
|
|
|
static let allValues: [AppearanceMode] = AppearanceMode.allCases
|
|
}
|