Fix conversion toolbar layout
This commit is contained in:
+44
-37
@@ -70,54 +70,61 @@ private struct ConversionToolView: View {
|
||||
}
|
||||
|
||||
private var toolbar: some View {
|
||||
HStack(spacing: 10) {
|
||||
Button {
|
||||
chooseFolder(title: "Input-Ordner wählen") { url in
|
||||
inputURL = url
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
HStack(spacing: 10) {
|
||||
Button {
|
||||
chooseFolder(title: "Input-Ordner wählen") { url in
|
||||
inputURL = url
|
||||
}
|
||||
} label: {
|
||||
Label("Input", systemImage: "folder")
|
||||
}
|
||||
} label: {
|
||||
Label("Input", systemImage: "folder")
|
||||
}
|
||||
|
||||
Button {
|
||||
chooseFolder(title: "Output-Ordner wählen") { url in
|
||||
outputURL = url
|
||||
Button {
|
||||
chooseFolder(title: "Output-Ordner wählen") { url in
|
||||
outputURL = url
|
||||
}
|
||||
} label: {
|
||||
Label("Output", systemImage: "externaldrive")
|
||||
}
|
||||
} label: {
|
||||
Label("Output", systemImage: "externaldrive")
|
||||
|
||||
Button {
|
||||
reloadPreview()
|
||||
} label: {
|
||||
Label("Aktualisieren", systemImage: "arrow.clockwise")
|
||||
}
|
||||
.disabled(inputURL == nil)
|
||||
|
||||
Spacer(minLength: 12)
|
||||
|
||||
Picker("Modus", selection: $trackMode) {
|
||||
Text("Zusammenführen").tag(TonUinoExportOptions.TrackMode.merged)
|
||||
Text("Getrennt").tag(TonUinoExportOptions.TrackMode.separate)
|
||||
}
|
||||
.pickerStyle(.segmented)
|
||||
.frame(width: 230)
|
||||
|
||||
Button {
|
||||
export()
|
||||
} label: {
|
||||
Label("Exportieren", systemImage: "square.and.arrow.down")
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.disabled(!canExport)
|
||||
}
|
||||
|
||||
Button {
|
||||
reloadPreview()
|
||||
} label: {
|
||||
Label("Aktualisieren", systemImage: "arrow.clockwise")
|
||||
}
|
||||
.disabled(inputURL == nil)
|
||||
|
||||
Spacer()
|
||||
|
||||
Picker("Modus", selection: $trackMode) {
|
||||
Text("Zusammenführen").tag(TonUinoExportOptions.TrackMode.merged)
|
||||
Text("Getrennt").tag(TonUinoExportOptions.TrackMode.separate)
|
||||
}
|
||||
.pickerStyle(.segmented)
|
||||
.frame(width: 230)
|
||||
|
||||
HStack(spacing: 12) {
|
||||
HStack(spacing: 18) {
|
||||
Toggle("Überschreiben", isOn: $overwriteExisting)
|
||||
.frame(minWidth: 130, alignment: .leading)
|
||||
Toggle("Bericht", isOn: $writeReport)
|
||||
.frame(minWidth: 90, alignment: .leading)
|
||||
Toggle("dot_clean", isOn: $cleanAfterExport)
|
||||
.frame(minWidth: 100, alignment: .leading)
|
||||
Toggle("Prüfen", isOn: $validateAfterExport)
|
||||
.frame(minWidth: 90, alignment: .leading)
|
||||
}
|
||||
.toggleStyle(.checkbox)
|
||||
|
||||
Button {
|
||||
export()
|
||||
} label: {
|
||||
Label("Exportieren", systemImage: "square.and.arrow.down")
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
.disabled(!canExport)
|
||||
.fixedSize(horizontal: true, vertical: false)
|
||||
}
|
||||
.padding(12)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user