diff options
| author | Fuwn <[email protected]> | 2025-02-27 04:01:39 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-02-27 04:01:39 -0800 |
| commit | e3d08ca76a94d0f5b4ae53eed0bab88e9425769a (patch) | |
| tree | 80a1959d41897a09f2d21c6c1247cb7b5f3f1b37 /Sora/Views/Settings | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-e3d08ca76a94d0f5b4ae53eed0bab88e9425769a.tar.xz sora-testing-e3d08ca76a94d0f5b4ae53eed0bab88e9425769a.zip | |
feat: Development commit
Diffstat (limited to 'Sora/Views/Settings')
4 files changed, 18 insertions, 7 deletions
diff --git a/Sora/Views/Settings/Section/SettingsDetailsView.swift b/Sora/Views/Settings/Section/SettingsDetailsView.swift index 9009eda..d184382 100644 --- a/Sora/Views/Settings/Section/SettingsDetailsView.swift +++ b/Sora/Views/Settings/Section/SettingsDetailsView.swift @@ -4,7 +4,7 @@ struct SettingsDetailsView: View { @EnvironmentObject var settings: Settings var body: some View { - Picker("Detail View Type", selection: $settings.detailViewType) { + Picker("Image Quality", selection: $settings.detailViewQuality) { ForEach(BooruPostFileType.allCases, id: \.self) { type in Text(type.rawValue.capitalized).tag(type) } @@ -15,7 +15,11 @@ struct SettingsDetailsView: View { Toggle("Display Information Bar", isOn: $settings.displayDetailsInformationBar) #if os(macOS) - Toggle("Save Tags to File During Download", isOn: $settings.saveTagsToFile) + Toggle(isOn: $settings.saveTagsToFile) { + Text("Save Tags to File") + + Text("Saves post tags in a file alongside the downloaded image.") + } #endif } } diff --git a/Sora/Views/Settings/Section/SettingsSearchView.swift b/Sora/Views/Settings/Section/SettingsSearchView.swift index ee4d09c..5036f72 100644 --- a/Sora/Views/Settings/Section/SettingsSearchView.swift +++ b/Sora/Views/Settings/Section/SettingsSearchView.swift @@ -10,12 +10,15 @@ struct SettingsSearchView: View { #endif var body: some View { - Toggle("Suggest Search Tags", isOn: $settings.searchSuggestions) + Toggle("Suggest Tags", isOn: $settings.searchSuggestions) Button( "Clear Cached Tags (\(manager.cacheSize ?? "Unknown size"))" ) { manager.clearCachedTags() } + #if os(macOS) + .frame(maxWidth: .infinity, alignment: .trailing) + #endif } } diff --git a/Sora/Views/Settings/Section/SettingsThumbnailsView.swift b/Sora/Views/Settings/Section/SettingsThumbnailsView.swift index 37871d3..775e7b1 100644 --- a/Sora/Views/Settings/Section/SettingsThumbnailsView.swift +++ b/Sora/Views/Settings/Section/SettingsThumbnailsView.swift @@ -5,20 +5,20 @@ struct SettingsThumbnailsView: View { @State private var isShowingContentFiltering = false var body: some View { - Picker("Thumbnail Type", selection: $settings.thumbnailType) { + Picker("Thumbnail Quality", selection: $settings.thumbnailQuality) { ForEach(BooruPostFileType.allCases, id: \.self) { type in Text(type.rawValue.capitalized).tag(type) } } #if os(macOS) - Picker("Thumbnail Columns", selection: $settings.columns) { + Picker("Thumbnail Grid Columns", selection: $settings.thumbnailGridColumns) { ForEach(1...10, id: \.self) { columns in Text("\(columns)") } } #else Stepper( - "Thumbnail Columns: \(settings.columns)", - value: $settings.columns, + "Thumbnail Grid Columns: \(settings.thumbnailGridColumns)", + value: $settings.thumbnailGridColumns, in: 1...10 ) #endif @@ -31,6 +31,7 @@ struct SettingsThumbnailsView: View { SettingsContentRatingsView() .frame(minHeight: 250) } + .frame(maxWidth: .infinity, alignment: .trailing) #else NavigationLink(destination: SettingsContentRatingsView()) { Text("Content Filtering") diff --git a/Sora/Views/Settings/SettingsView.swift b/Sora/Views/Settings/SettingsView.swift index 2d09168..adc3a49 100644 --- a/Sora/Views/Settings/SettingsView.swift +++ b/Sora/Views/Settings/SettingsView.swift @@ -26,6 +26,9 @@ struct SettingsView: View { Button("Reset to Defaults") { settings.resetToDefaults() } + #if os(macOS) + .frame(maxWidth: .infinity, alignment: .trailing) + #endif } Section(header: Text("Credits")) { |