From bf31cfcc5b3b8be77ee4038bfe0b4dd513466f1d Mon Sep 17 00:00:00 2001 From: Beingpax Date: Fri, 8 Aug 2025 20:44:20 +0545 Subject: [PATCH] A larger min recorder view. --- .../Views/Recorder/AudioVisualizerView.swift | 18 ++++++------- .../Views/Recorder/MiniRecorderPanel.swift | 6 ++--- .../Views/Recorder/MiniRecorderView.swift | 6 ++--- .../Views/Recorder/RecorderComponents.swift | 26 +++++++++---------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/VoiceInk/Views/Recorder/AudioVisualizerView.swift b/VoiceInk/Views/Recorder/AudioVisualizerView.swift index cfe36a5..eb678a6 100644 --- a/VoiceInk/Views/Recorder/AudioVisualizerView.swift +++ b/VoiceInk/Views/Recorder/AudioVisualizerView.swift @@ -6,10 +6,10 @@ struct AudioVisualizer: View { let isActive: Bool private let barCount = 12 - private let minHeight: CGFloat = 4 - private let maxHeight: CGFloat = 28 - private let barWidth: CGFloat = 3.0 - private let barSpacing: CGFloat = 2.0 + private let minHeight: CGFloat = 5 + private let maxHeight: CGFloat = 32 + private let barWidth: CGFloat = 3.5 + private let barSpacing: CGFloat = 2.3 private let hardThreshold: Double = 0.3 private let sensitivityMultipliers: [Double] @@ -33,7 +33,7 @@ struct AudioVisualizer: View { var body: some View { HStack(spacing: barSpacing) { ForEach(0.. NSRect { guard let screen = NSScreen.main else { - return NSRect(x: 0, y: 0, width: 160, height: 34) + return NSRect(x: 0, y: 0, width: 184, height: 40) } - let width: CGFloat = 160 - let height: CGFloat = 34 + let width: CGFloat = 184 + let height: CGFloat = 40 let padding: CGFloat = 24 let visibleFrame = screen.visibleFrame diff --git a/VoiceInk/Views/Recorder/MiniRecorderView.swift b/VoiceInk/Views/Recorder/MiniRecorderView.swift index d947fdf..99aaa5b 100644 --- a/VoiceInk/Views/Recorder/MiniRecorderView.swift +++ b/VoiceInk/Views/Recorder/MiniRecorderView.swift @@ -37,7 +37,7 @@ struct MiniRecorderView: View { HStack(spacing: 0) { // Left button zone - always visible RecorderPromptButton(showPopover: $showEnhancementPromptPopover) - .padding(.leading, 6) + .padding(.leading, 7) Spacer() @@ -49,9 +49,9 @@ struct MiniRecorderView: View { // Right button zone - always visible RecorderPowerModeButton(showPopover: $showPowerModePopover) - .padding(.trailing, 6) + .padding(.trailing, 7) } - .padding(.vertical, 8) + .padding(.vertical, 9) } private var recorderCapsule: some View { diff --git a/VoiceInk/Views/Recorder/RecorderComponents.swift b/VoiceInk/Views/Recorder/RecorderComponents.swift index f15d07d..380326d 100644 --- a/VoiceInk/Views/Recorder/RecorderComponents.swift +++ b/VoiceInk/Views/Recorder/RecorderComponents.swift @@ -25,10 +25,10 @@ struct RecorderToggleButton: View { Group { if isEmoji { Text(icon) - .font(.system(size: 12)) + .font(.system(size: 14)) } else { Image(systemName: icon) - .font(.system(size: 11)) + .font(.system(size: 13)) } } .foregroundColor(disabled ? .white.opacity(0.3) : (isEnabled ? .white : .white.opacity(0.6))) @@ -49,19 +49,19 @@ struct RecorderRecordButton: View { ZStack { Circle() .fill(buttonColor) - .frame(width: 22, height: 22) + .frame(width: 25, height: 25) if isProcessing { ProcessingIndicator(color: .white) - .frame(width: 14, height: 14) + .frame(width: 16, height: 16) } else if isRecording { RoundedRectangle(cornerRadius: 3) .fill(Color.white) - .frame(width: 8, height: 8) + .frame(width: 9, height: 9) } else { Circle() .fill(Color.white) - .frame(width: 8, height: 8) + .frame(width: 9, height: 9) } } } @@ -88,8 +88,8 @@ struct ProcessingIndicator: View { var body: some View { Circle() .trim(from: 0.1, to: 0.9) - .stroke(color, lineWidth: 1.5) - .frame(width: 12, height: 12) + .stroke(color, lineWidth: 1.7) + .frame(width: 14, height: 14) .rotationEffect(.degrees(rotation)) .onAppear { withAnimation(.linear(duration: 1).repeatForever(autoreverses: false)) { @@ -109,7 +109,7 @@ struct ProgressAnimation: View { ForEach(0..<5, id: \.self) { index in Circle() .fill(Color.white.opacity(index <= currentDot ? 0.8 : 0.2)) - .frame(width: 3, height: 3) + .frame(width: 3.5, height: 3.5) } } .onAppear { @@ -128,7 +128,7 @@ struct RecorderPromptButton: View { let buttonSize: CGFloat let padding: EdgeInsets - init(showPopover: Binding, buttonSize: CGFloat = 24, padding: EdgeInsets = EdgeInsets(top: 0, leading: 6, bottom: 0, trailing: 0)) { + init(showPopover: Binding, buttonSize: CGFloat = 28, padding: EdgeInsets = EdgeInsets(top: 0, leading: 7, bottom: 0, trailing: 0)) { self._showPopover = showPopover self.buttonSize = buttonSize self.padding = padding @@ -163,7 +163,7 @@ struct RecorderPowerModeButton: View { let buttonSize: CGFloat let padding: EdgeInsets - init(showPopover: Binding, buttonSize: CGFloat = 24, padding: EdgeInsets = EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 6)) { + init(showPopover: Binding, buttonSize: CGFloat = 28, padding: EdgeInsets = EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 7)) { self._showPopover = showPopover self.buttonSize = buttonSize self.padding = padding @@ -204,7 +204,7 @@ struct RecorderStatusDisplay: View { VStack(spacing: 2) { Text("Enhancing") .foregroundColor(.white) - .font(.system(size: 10, weight: .medium, design: .default)) + .font(.system(size: 11, weight: .medium, design: .default)) .lineLimit(1) .minimumScaleFactor(0.5) @@ -214,7 +214,7 @@ struct RecorderStatusDisplay: View { VStack(spacing: 2) { Text("Transcribing") .foregroundColor(.white) - .font(.system(size: 10, weight: .medium, design: .default)) + .font(.system(size: 11, weight: .medium, design: .default)) .lineLimit(1) .minimumScaleFactor(0.5)