You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
741 B
32 lines
741 B
//
|
|
// WtaTennisApp.swift
|
|
// WtaTennis
|
|
//
|
|
// Created by Johan LACHENAL on 14/05/2024.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
enum Theme {
|
|
static let primary = Color("Primary")
|
|
static let secondary = Color("Secondary")
|
|
static let tertiary = Color("Tertiary")
|
|
}
|
|
|
|
@main
|
|
|
|
struct ArkitDoushiQiApp: App {
|
|
@AppStorage("isDarkMode") private var isDarkMode = false
|
|
|
|
@StateObject private var languageSettings = LanguageSettings(selectedLanguage: .English)
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
MainMenu()
|
|
.environmentObject(LanguageSettings(selectedLanguage: .French)
|
|
)
|
|
.environmentObject(languageSettings)
|
|
.preferredColorScheme(isDarkMode ? .dark : .light)
|
|
}
|
|
}
|
|
}
|