|
@@ -81,6 +81,10 @@ private struct TonePickerRow: View {
|
|
|
Button {
|
|
Button {
|
|
|
selected = filename
|
|
selected = filename
|
|
|
} label: {
|
|
} label: {
|
|
|
|
|
+ Image(systemName: filename == selected ? "checkmark.circle.fill" : "circle")
|
|
|
|
|
+ .foregroundColor(.accentColor)
|
|
|
|
|
+ .frame(width: 20)
|
|
|
|
|
+
|
|
|
Text(AlarmSoundCatalog.displayName(for: filename))
|
|
Text(AlarmSoundCatalog.displayName(for: filename))
|
|
|
.foregroundColor(.primary)
|
|
.foregroundColor(.primary)
|
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
@@ -88,6 +92,8 @@ private struct TonePickerRow: View {
|
|
|
}
|
|
}
|
|
|
.buttonStyle(.plain)
|
|
.buttonStyle(.plain)
|
|
|
|
|
|
|
|
|
|
+ Spacer()
|
|
|
|
|
+
|
|
|
Button {
|
|
Button {
|
|
|
previewer.toggle(filename: filename)
|
|
previewer.toggle(filename: filename)
|
|
|
} label: {
|
|
} label: {
|
|
@@ -98,11 +104,6 @@ private struct TonePickerRow: View {
|
|
|
.buttonStyle(.plain)
|
|
.buttonStyle(.plain)
|
|
|
|
|
|
|
|
Spacer()
|
|
Spacer()
|
|
|
-
|
|
|
|
|
- Image(systemName: "checkmark")
|
|
|
|
|
- .foregroundColor(.accentColor)
|
|
|
|
|
- .opacity(filename == selected ? 1 : 0)
|
|
|
|
|
- .frame(width: 20)
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|