Skip to content

Commit aa1a2b1

Browse files
committed
switched record toggle off ot gray
1 parent 8a1631e commit aa1a2b1

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/app/components/Actions/RecordButton.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,30 @@ const RecordButton = ({ isRecording, onToggle }) => {
55
return (
66
<div className='record-button-container'>
77
<div className='record-label'>
8-
<div className={`record-icon ${isRecording ? 'recording' : ''}`} />
8+
<div
9+
className={`record-icon ${isRecording ? 'recording' : ''}`}
10+
style={{
11+
backgroundColor: isRecording ? '#ef4444' : '#9ca3af',
12+
transition: 'background-color 0.3s ease',
13+
}}
14+
/>
915
<span>Record</span>
1016
</div>
1117
<Switch
1218
checked={isRecording}
1319
onChange={onToggle}
1420
sx={{
1521
'& .MuiSwitch-switchBase': {
16-
color: '#6b7280', // Medium gray for unchecked thumb - better contrast against white background
22+
color: '#9ca3af',
1723
},
1824
'& .MuiSwitch-track': {
19-
backgroundColor: '#e5e7eb', // Light gray for unchecked track
25+
backgroundColor: '#e5e7eb',
2026
},
2127
'& .MuiSwitch-switchBase.Mui-checked': {
22-
color: '#374151', // Same dark gray for checked thumb
28+
color: '#374151',
2329
},
2430
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
25-
backgroundColor: '#0284c7', // Blue for checked track
31+
backgroundColor: '#0284c7',
2632
},
2733
}}
2834
/>

0 commit comments

Comments
 (0)