From 7558b3ba077ef1e87aa6386d90545f9f570967fe Mon Sep 17 00:00:00 2001 From: Beingpax Date: Thu, 27 Feb 2025 19:17:58 +0545 Subject: [PATCH] Update NotchRecordButton with distinct idle state styling --- VoiceInk/Views/NotchRecorderView.swift | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/VoiceInk/Views/NotchRecorderView.swift b/VoiceInk/Views/NotchRecorderView.swift index c1b96f8..1217474 100644 --- a/VoiceInk/Views/NotchRecorderView.swift +++ b/VoiceInk/Views/NotchRecorderView.swift @@ -236,11 +236,16 @@ struct NotchRecordButton: View { if isProcessing { ProcessingIndicator(color: .white) .frame(width: 14, height: 14) - } else { - // Show white square for both idle and recording states + } else if isRecording { + // Show white square for recording state RoundedRectangle(cornerRadius: 3) .fill(Color.white) .frame(width: 8, height: 8) + } else { + // Show white circle for idle state + Circle() + .fill(Color.white) + .frame(width: 8, height: 8) } } } @@ -251,9 +256,11 @@ struct NotchRecordButton: View { private var buttonColor: Color { if isProcessing { return Color(red: 0.4, green: 0.4, blue: 0.45) - } else { - // Use red color for both idle and recording states + } else if isRecording { return .red + } else { + // Neutral gray for idle state + return Color(red: 0.3, green: 0.3, blue: 0.35) } } }