chore: sync webchat bundle and voice wake settings

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