diff options
| author | Fuwn <[email protected]> | 2025-02-22 07:07:57 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-22 07:07:57 -0800 |
| commit | cafece91bae45194d64f4932bb04be018b82d21b (patch) | |
| tree | 02d727a13fe530550e3b29b28b7ee9980262eef2 /Sora/Views/Settings/SettingsView.swift | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-cafece91bae45194d64f4932bb04be018b82d21b.tar.xz sora-testing-cafece91bae45194d64f4932bb04be018b82d21b.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings/SettingsView.swift')
| -rw-r--r-- | Sora/Views/Settings/SettingsView.swift | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Sora/Views/Settings/SettingsView.swift b/Sora/Views/Settings/SettingsView.swift new file mode 100644 index 0000000..ab92a42 --- /dev/null +++ b/Sora/Views/Settings/SettingsView.swift @@ -0,0 +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() + } + } + #if os(macOS) + .formStyle(.grouped) + #endif + .navigationTitle("Settings") + } +} + +#Preview { + SettingsView() + .environmentObject(Settings()) +} |