From 33f26f82f594a51ad3e8780590d4851718471844 Mon Sep 17 00:00:00 2001 From: Alexey Haidamaka Date: Tue, 2 Sep 2025 14:15:51 +0200 Subject: [PATCH] add auto send display in powermode view --- .../PowerMode/PowerModeViewComponents.swift | 22 ++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/VoiceInk/PowerMode/PowerModeViewComponents.swift b/VoiceInk/PowerMode/PowerModeViewComponents.swift index 98222dc..3559734 100644 --- a/VoiceInk/PowerMode/PowerModeViewComponents.swift +++ b/VoiceInk/PowerMode/PowerModeViewComponents.swift @@ -203,7 +203,7 @@ struct ConfigurationRow: View { .padding(.vertical, 12) .padding(.horizontal, 14) - if selectedModel != nil || selectedLanguage != nil || config.isAIEnhancementEnabled { + if selectedModel != nil || selectedLanguage != nil || config.isAIEnhancementEnabled || config.isAutoSendEnabled { Divider() .padding(.horizontal, 16) @@ -259,6 +259,22 @@ struct ConfigurationRow: View { ) } + if config.isAutoSendEnabled { + HStack(spacing: 4) { + Image(systemName: "keyboard") + .font(.system(size: 10)) + Text("Auto Send") + .font(.caption) + } + .padding(.horizontal, 8) + .padding(.vertical, 4) + .background(Capsule() + .fill(Color(NSColor.controlBackgroundColor))) + .overlay( + Capsule() + .stroke(Color(NSColor.separatorColor), lineWidth: 0.5) + ) + } if config.isAIEnhancementEnabled { if config.useScreenCapture { HStack(spacing: 4) { @@ -289,7 +305,7 @@ struct ConfigurationRow: View { .fill(Color.accentColor.opacity(0.1))) .foregroundColor(.accentColor) } - + Spacer() } .padding(.vertical, 10) @@ -376,4 +392,4 @@ struct AppGridItem: View { } .buttonStyle(.plain) } -} +}