visionOS: Hide light/dark mode prefs

This commit is contained in:
Shadowfacts 2023-10-20 11:14:15 -04:00
parent 78196e14c3
commit 27dd8a1927
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ struct AppearancePrefsView : View {
private var themeSection: some View { private var themeSection: some View {
Section { Section {
#if !os(visionOS)
Picker(selection: $preferences.theme, label: Text("Theme")) { Picker(selection: $preferences.theme, label: Text("Theme")) {
Text("Use System Theme").tag(UIUserInterfaceStyle.unspecified) Text("Use System Theme").tag(UIUserInterfaceStyle.unspecified)
Text("Light").tag(UIUserInterfaceStyle.light) Text("Light").tag(UIUserInterfaceStyle.light)
@ -68,6 +69,7 @@ struct AppearancePrefsView : View {
Text("Pure Black Dark Mode") Text("Pure Black Dark Mode")
} }
} }
#endif
Picker(selection: $preferences.accentColor, label: Text("Accent Color")) { Picker(selection: $preferences.accentColor, label: Text("Accent Color")) {
ForEach(accentColorsAndImages, id: \.0.rawValue) { (color, image) in ForEach(accentColorsAndImages, id: \.0.rawValue) { (color, image) in