diff options
| author | Fuwn <[email protected]> | 2025-02-20 02:40:26 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-20 02:40:26 -0800 |
| commit | 0538ecfabde1883b71971cf0ce62a4d14ff072cd (patch) | |
| tree | 029f6d9cb58da3ce338e862f4d43104e36cacb54 /Sora/Views/Settings | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-0538ecfabde1883b71971cf0ce62a4d14ff072cd.tar.xz sora-testing-0538ecfabde1883b71971cf0ce62a4d14ff072cd.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings')
| -rw-r--r-- | Sora/Views/Settings/SettingsAttributionsView.swift | 1 | ||||
| -rw-r--r-- | Sora/Views/Settings/SettingsDetailsView.swift | 26 | ||||
| -rw-r--r-- | Sora/Views/Settings/SettingsSearchView.swift | 15 | ||||
| -rw-r--r-- | Sora/Views/Settings/SettingsThumbnailsView.swift | 63 |
4 files changed, 14 insertions, 91 deletions
diff --git a/Sora/Views/Settings/SettingsAttributionsView.swift b/Sora/Views/Settings/SettingsAttributionsView.swift index 1194880..28481fd 100644 --- a/Sora/Views/Settings/SettingsAttributionsView.swift +++ b/Sora/Views/Settings/SettingsAttributionsView.swift @@ -3,7 +3,6 @@ import SwiftUI struct SettingsAttributionsView: View { var body: some View { Text("Rabbit SVG created by Kim Sun Young") - .font(.caption) .fontWeight(.light) .foregroundColor(.secondary) } diff --git a/Sora/Views/Settings/SettingsDetailsView.swift b/Sora/Views/Settings/SettingsDetailsView.swift index 29b9e76..4ac784c 100644 --- a/Sora/Views/Settings/SettingsDetailsView.swift +++ b/Sora/Views/Settings/SettingsDetailsView.swift @@ -4,28 +4,10 @@ struct SettingsDetailsView: View { @EnvironmentObject var settings: Settings var body: some View { - #if os(macOS) - Text("Details") - .font(.headline) - - HStack { - Text("Detail View Type") - - Spacer() - - Picker("", selection: $settings.detailViewType) { - ForEach(PostFileType.allCases, id: \.self) { type in - Text(type.rawValue.capitalized).tag(type) - } - } - .frame(width: 150) - } - #else - Picker("Detail View Type", selection: $settings.detailViewType) { - ForEach(PostFileType.allCases, id: \.self) { type in - Text(type.rawValue.capitalized).tag(type) - } + Picker("Detail View Type", selection: $settings.detailViewType) { + ForEach(PostFileType.allCases, id: \.self) { type in + Text(type.rawValue.capitalized).tag(type) } - #endif + } } } diff --git a/Sora/Views/Settings/SettingsSearchView.swift b/Sora/Views/Settings/SettingsSearchView.swift index c1f1baa..1052abf 100644 --- a/Sora/Views/Settings/SettingsSearchView.swift +++ b/Sora/Views/Settings/SettingsSearchView.swift @@ -4,19 +4,6 @@ struct SettingsSearchView: View { @EnvironmentObject var settings: Settings var body: some View { - #if os(macOS) - Text("Search") - .font(.headline) - - HStack { - Text("Suggest Search Tags") - - Spacer() - - Toggle("", isOn: $settings.searchSuggestions) - } - #else - Toggle("Suggest Search Tags", isOn: $settings.searchSuggestions) - #endif + Toggle("Suggest Search Tags", isOn: $settings.searchSuggestions) } } diff --git a/Sora/Views/Settings/SettingsThumbnailsView.swift b/Sora/Views/Settings/SettingsThumbnailsView.swift index 39ba951..1f70da6 100644 --- a/Sora/Views/Settings/SettingsThumbnailsView.swift +++ b/Sora/Views/Settings/SettingsThumbnailsView.swift @@ -4,73 +4,28 @@ struct SettingsThumbnailsView: View { @EnvironmentObject var settings: Settings var body: some View { - #if os(macOS) - Text("Thumbnails") - .font(.headline) - - HStack { - Text("Thumbnail Type") - - Spacer() - - Picker("", selection: $settings.thumbnailType) { - ForEach(PostFileType.allCases, id: \.self) { type in - Text(type.rawValue.capitalized).tag(type) - } - } - .frame(width: 150) + Picker("Thumbnail Type", selection: $settings.thumbnailType) { + ForEach(PostFileType.allCases, id: \.self) { type in + Text(type.rawValue.capitalized).tag(type) } - #else - Picker("Thumbnail Type", selection: $settings.thumbnailType) { - ForEach(PostFileType.allCases, id: \.self) { type in - Text(type.rawValue.capitalized).tag(type) - } - } - #endif + } #if os(macOS) - HStack { - Text("Thumbnail Columns") - - Spacer() - - Picker("", selection: $settings.columns) { - ForEach(1 ... 10, id: \.self) { i in Text("\(i)") } - } - .frame(width: 75) + Picker("Thumbnail Columns", selection: $settings.columns) { + ForEach(1 ... 10, id: \.self) { i in Text("\(i)") } } #else Stepper( - "Thumbnail Columns (\(settings.columns))", + "Thumbnail Columns: \(settings.columns)", value: $settings.columns, in: 1 ... 10 ) #endif - #if os(macOS) - HStack { - Text("Show NSFW Posts") - - Spacer() - - Toggle("", isOn: $settings.showNSFWPosts) - } - #else - Toggle("Show NSFW Posts", isOn: $settings.showNSFWPosts) - #endif + Toggle("Show NSFW Posts", isOn: $settings.showNSFWPosts) if settings.showNSFWPosts { - #if os(macOS) - HStack { - Text("Blur NSFW Thumbnails") - - Spacer() - - Toggle("", isOn: $settings.blurNSFWThumbnails) - } - #else - Toggle("Blur NSFW Thumbnails", isOn: $settings.blurNSFWThumbnails) - #endif + Toggle("Blur NSFW Thumbnails", isOn: $settings.blurNSFWThumbnails) } } } |