delete isdarkmode
This commit is contained in:
parent
a937db4385
commit
fbd6c8893d
@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Bucket
|
||||||
|
uuid = "AEE1609A-17B4-4FCC-80A6-0D556940F4D7"
|
||||||
|
type = "1"
|
||||||
|
version = "2.0">
|
||||||
|
<Breakpoints>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "6A656809-A93B-45BB-9092-B1DBC8063EDE"
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "yobble/Views/Tab/Settings/SettingsView.swift"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "158"
|
||||||
|
endingLineNumber = "158"
|
||||||
|
landmarkName = "selectTheme(_:)"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "084E94AC-6593-4982-9545-AD957522A99A"
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "yobble/Views/Tab/Settings/SettingsView.swift"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "10"
|
||||||
|
endingLineNumber = "10"
|
||||||
|
landmarkName = "selectedThemeOption"
|
||||||
|
landmarkType = "24">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
uuid = "93FB80BF-7B98-4DED-B22E-06C31F90EB0C"
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "yobble/Views/Tab/Settings/SettingsView.swift"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "159"
|
||||||
|
endingLineNumber = "159"
|
||||||
|
landmarkName = "selectTheme(_:)"
|
||||||
|
landmarkType = "7">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
</Breakpoints>
|
||||||
|
</Bucket>
|
||||||
@ -16,7 +16,6 @@ struct RegistrationView: View {
|
|||||||
@State private var password: String = ""
|
@State private var password: String = ""
|
||||||
@State private var confirmPassword: String = ""
|
@State private var confirmPassword: String = ""
|
||||||
@State private var inviteCode: String = ""
|
@State private var inviteCode: String = ""
|
||||||
@AppStorage("isDarkMode") private var isDarkMode: Bool = true
|
|
||||||
|
|
||||||
@State private var isLoading: Bool = false
|
@State private var isLoading: Bool = false
|
||||||
@State private var showError: Bool = false
|
@State private var showError: Bool = false
|
||||||
|
|||||||
@ -3,7 +3,6 @@ import SwiftUI
|
|||||||
struct SettingsView: View {
|
struct SettingsView: View {
|
||||||
@ObservedObject var viewModel: LoginViewModel
|
@ObservedObject var viewModel: LoginViewModel
|
||||||
@EnvironmentObject private var themeManager: ThemeManager
|
@EnvironmentObject private var themeManager: ThemeManager
|
||||||
@AppStorage("isDarkMode") private var isDarkMode: Bool = true
|
|
||||||
@State private var isThemeExpanded = false
|
@State private var isThemeExpanded = false
|
||||||
private let themeOptions = ThemeOption.ordered
|
private let themeOptions = ThemeOption.ordered
|
||||||
|
|
||||||
@ -159,7 +158,6 @@ struct SettingsView: View {
|
|||||||
private func selectTheme(_ option: ThemeOption) {
|
private func selectTheme(_ option: ThemeOption) {
|
||||||
guard let mappedTheme = option.mappedTheme else { return }
|
guard let mappedTheme = option.mappedTheme else { return }
|
||||||
themeManager.setTheme(mappedTheme)
|
themeManager.setTheme(mappedTheme)
|
||||||
isDarkMode = mappedTheme == .oledDark
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user