Skip to content

Commit 7e472a2

Browse files
committed
styled record toggle
1 parent a1a08bb commit 7e472a2

File tree

5 files changed

+19
-55
lines changed

5 files changed

+19
-55
lines changed

src/app/components/Actions/RecordButton.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,17 @@ const RecordButton = ({ isRecording, onToggle }) => {
1212
checked={isRecording}
1313
onChange={onToggle}
1414
sx={{
15+
'& .MuiSwitch-switchBase': {
16+
color: '#6b7280', // Medium gray for unchecked thumb - better contrast against white background
17+
},
18+
'& .MuiSwitch-track': {
19+
backgroundColor: '#e5e7eb', // Light gray for unchecked track
20+
},
1521
'& .MuiSwitch-switchBase.Mui-checked': {
16-
color: '#38bdf8',
22+
color: '#374151', // Same dark gray for checked thumb
1723
},
1824
'& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track': {
19-
backgroundColor: '#0284c7',
25+
backgroundColor: '#0284c7', // Blue for checked track
2026
},
2127
}}
2228
/>

src/app/styles/base/_base.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ body {
3030
}
3131

3232
.buttons-container {
33-
//color: #ff0000;
3433
grid-area: buttons;
35-
//border-color: #ff0000;
3634
}
3735

3836
.action-container {
Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,13 @@
1-
// .compMapLink {
2-
// // stroke: $map-link;
3-
// stroke: $secondary-color;
4-
// }
51
.compMapLink:hover {
62
box-shadow: 10px 10px rgb(163, 205, 24);
7-
};
3+
}
84

95
.comp-map-options {
106
color: $map-options-label;
117
}
128

13-
//this was supposed to control the dropDownStyle object in LinkControls.tsx (the dropdown menus in ComponentMap)
14-
// .comp-map-dropdown {
15-
// backgroundColor: #ff0008;
16-
// color: #ff0007;
17-
// background: #ff0006;
18-
// }
19-
20-
// .compMapParent {
21-
// //fill: $map-parent-fill;
22-
// //stroke: $map-parent-stroke;
23-
// }
24-
259
.compMapParentText {
26-
fill: $map-parent-text
10+
fill: $map-parent-text;
2711
}
2812

2913
.compMapChild {
@@ -36,11 +20,9 @@
3620
}
3721

3822
.compMapRoot {
39-
//fill: $map-root-fill;
4023
stroke: $map-root-stroke;
4124
}
4225

4326
.compMapRootText {
4427
fill: $map-root-text;
4528
}
46-

src/app/styles/components/_performanceVisx.scss

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,20 @@
55
justify-content: center;
66
}
77

8-
.MuiSwitch-colorPrimary.Mui-checked {
9-
color: $icon-primary !important;
10-
}
11-
12-
.MuiSwitch-switchBase {
13-
color: $icon-secondary !important;
14-
}
15-
16-
.MuiSwitch-track {
17-
background-color: $icon-bg !important;
18-
}
19-
20-
.MuiTypography-body1 {
21-
font-size: 2em !important;
22-
}
23-
248
#routes-formcontrol {
259
padding: 3px;
2610
margin-left: 50px;
27-
font: 400 16px 'Outfit', sans-serif;
11+
font:
12+
400 16px 'Outfit',
13+
sans-serif;
2814
text-align: left;
2915
}
3016

3117
#routes-dropdown {
3218
color: $performance-options-label !important;
33-
font: 400 16px 'Outfit', sans-serif;
19+
font:
20+
400 16px 'Outfit',
21+
sans-serif;
3422
text-align: left;
3523
}
3624

@@ -53,7 +41,9 @@
5341
#routes-select,
5442
#snapshot-select {
5543
color: white !important;
56-
font: 400 16px 'Outfit', sans-serif;
44+
font:
45+
400 16px 'Outfit',
46+
sans-serif;
5747
text-align: left;
5848
width: 120px;
5949
height: 30px;

src/app/styles/layout/_actionContainer.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,6 @@
1515
color: $indiv-action-filler-text;
1616
}
1717

18-
#recordBtn {
19-
color: #ffb3b3;
20-
height: 100%;
21-
display: flex;
22-
margin-left: 10px;
23-
}
24-
2518
.actionToolContainer {
2619
color: #374151;
2720
display: flex;
@@ -32,11 +25,6 @@
3225
padding: 0 8px;
3326
}
3427

35-
#recordBtn .fa-regular {
36-
height: 100%;
37-
width: 28px;
38-
}
39-
4028
.toggle-record {
4129
color: $toggle-record-text;
4230
}

0 commit comments

Comments
 (0)