chore: sync webchat bundle and voice wake settings

main
Peter Steinberger 2025-12-08 21:51:08 +01:00
parent 293b4960f3
commit 11400e43dc
2 changed files with 1781 additions and 1784 deletions

File diff suppressed because it is too large Load Diff

View File

@ -228,8 +228,7 @@ struct VoiceWakeSettings: View {
}
private func chimeRow(title: String, selection: Binding<VoiceWakeChime>) -> some View {
VStack(alignment: .leading, spacing: 6) {
HStack(alignment: .center, spacing: 8) {
HStack(alignment: .center, spacing: 10) {
Text(title)
.font(.callout.weight(.semibold))
.frame(width: self.fieldLabelWidth, alignment: .leading)
@ -247,13 +246,15 @@ struct VoiceWakeSettings: View {
} label: {
HStack(spacing: 6) {
Text(selection.wrappedValue.displayLabel)
.lineLimit(1)
.truncationMode(.middle)
Spacer()
Image(systemName: "chevron.down")
.font(.caption)
.foregroundStyle(.secondary)
}
.frame(width: self.controlWidth, alignment: .leading)
.padding(6)
.frame(minWidth: self.controlWidth, maxWidth: .infinity, alignment: .leading)
.background(Color(nsColor: .windowBackgroundColor))
.overlay(
RoundedRectangle(cornerRadius: 6)
@ -266,13 +267,6 @@ struct VoiceWakeSettings: View {
}
.keyboardShortcut(.space, modifiers: [.command])
}
if case let .custom(displayName, _) = selection.wrappedValue {
Text("Custom: \(displayName)")
.font(.footnote)
.foregroundStyle(.secondary)
}
}
}
private func chooseCustomChime(for selection: Binding<VoiceWakeChime>) {