File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
src/app/components/Actions Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,30 @@ const RecordButton = ({ isRecording, onToggle }) => {
5
5
return (
6
6
< div className = 'record-button-container' >
7
7
< 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
+ />
9
15
< span > Record</ span >
10
16
</ div >
11
17
< Switch
12
18
checked = { isRecording }
13
19
onChange = { onToggle }
14
20
sx = { {
15
21
'& .MuiSwitch-switchBase' : {
16
- color : '#6b7280' , // Medium gray for unchecked thumb - better contrast against white background
22
+ color : '#9ca3af' ,
17
23
} ,
18
24
'& .MuiSwitch-track' : {
19
- backgroundColor : '#e5e7eb' , // Light gray for unchecked track
25
+ backgroundColor : '#e5e7eb' ,
20
26
} ,
21
27
'& .MuiSwitch-switchBase.Mui-checked' : {
22
- color : '#374151' , // Same dark gray for checked thumb
28
+ color : '#374151' ,
23
29
} ,
24
30
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track' : {
25
- backgroundColor : '#0284c7' , // Blue for checked track
31
+ backgroundColor : '#0284c7' ,
26
32
} ,
27
33
} }
28
34
/>
You can’t perform that action at this time.
0 commit comments