blob: d184382794ec3c950c353cef2c173674b2edaad8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import SwiftUI
struct SettingsDetailsView: View {
@EnvironmentObject var settings: Settings
var body: some View {
Picker("Image Quality", selection: $settings.detailViewQuality) {
ForEach(BooruPostFileType.allCases, id: \.self) { type in
Text(type.rawValue.capitalized).tag(type)
}
}
Toggle("Enable \"Share Image\" Shortcut", isOn: $settings.enableShareShortcut)
Toggle("Display Information Bar", isOn: $settings.displayDetailsInformationBar)
#if os(macOS)
Toggle(isOn: $settings.saveTagsToFile) {
Text("Save Tags to File")
Text("Saves post tags in a file alongside the downloaded image.")
}
#endif
}
}
|