summaryrefslogtreecommitdiff
path: root/Sora/Views/SettingsView.swift
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-02-22 00:07:44 -0800
committerFuwn <[email protected]>2025-02-22 00:07:44 -0800
commite42fa12dafe264c665d2574c93b54ddafe7f2e1f (patch)
treea362b3b78ea97dc28ce5cc3682801bf89688f546 /Sora/Views/SettingsView.swift
parentfeat: Development commit (diff)
downloadsora-testing-e42fa12dafe264c665d2574c93b54ddafe7f2e1f.tar.xz
sora-testing-e42fa12dafe264c665d2574c93b54ddafe7f2e1f.zip
feat: Development commit
Diffstat (limited to 'Sora/Views/SettingsView.swift')
-rw-r--r--Sora/Views/SettingsView.swift70
1 files changed, 35 insertions, 35 deletions
diff --git a/Sora/Views/SettingsView.swift b/Sora/Views/SettingsView.swift
index a4a37ae..ab92a42 100644
--- a/Sora/Views/SettingsView.swift
+++ b/Sora/Views/SettingsView.swift
@@ -1,44 +1,44 @@
import SwiftUI
struct SettingsView: View {
- @EnvironmentObject var settings: Settings
-
- var body: some View {
- Form {
- Section(header: Text("Provider")) {
- SettingsProviderView()
- }
-
- Section(header: Text("Thumbnails")) {
- SettingsThumbnailsView()
- }
-
- Section(header: Text("Details")) {
- SettingsDetailsView()
- }
-
- Section(header: Text("Search")) {
- SettingsSearchView()
- }
-
- Section(header: Text("Settings")) {
- Button("Reset to Defaults") {
- settings.resetToDefaults()
- }
- }
-
- Section(header: Text("Attributions")) {
- SettingsAttributionsView()
- }
+ @EnvironmentObject var settings: Settings
+
+ var body: some View {
+ Form {
+ Section(header: Text("Provider")) {
+ SettingsProviderView()
+ }
+
+ Section(header: Text("Thumbnails")) {
+ SettingsThumbnailsView()
+ }
+
+ Section(header: Text("Details")) {
+ SettingsDetailsView()
+ }
+
+ Section(header: Text("Search")) {
+ SettingsSearchView()
+ }
+
+ Section(header: Text("Settings")) {
+ Button("Reset to Defaults") {
+ settings.resetToDefaults()
}
- #if os(macOS)
- .formStyle(.grouped)
- #endif
- .navigationTitle("Settings")
+ }
+
+ Section(header: Text("Attributions")) {
+ SettingsAttributionsView()
+ }
}
+ #if os(macOS)
+ .formStyle(.grouped)
+ #endif
+ .navigationTitle("Settings")
+ }
}
#Preview {
- SettingsView()
- .environmentObject(Settings())
+ SettingsView()
+ .environmentObject(Settings())
}