//
//  Color+Extensions.swift
//  LotteryTracker
//
//  Created by aaa on 2026/1/22.
//

import SwiftUI

extension Color {
    // 应用主题色
    static let theme = ColorTheme()
    
    // 彩票类型颜色
    static func forLotteryType(_ type: LotteryType) -> Color {
        switch type {
        case .doubleColorBall: return .red
        case .superLotto: return .blue
        case .happy8: return .green
        case .sevenStar: return .purple
        case .other: return .gray
        }
    }
}

struct ColorTheme {
    let primary = Color.blue
    let secondary = Color.gray
    let success = Color.green
    let warning = Color.orange
    let danger = Color.red
    let background = Color(.systemBackground)
    let cardBackground = Color(.secondarySystemBackground)
}
