Skip to content

Commit a862016

Browse files
committed
light mode color edits
1 parent 3839f8c commit a862016

File tree

7 files changed

+46
-295
lines changed

7 files changed

+46
-295
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export default function ComponentMap({
221221
<Tree
222222
root={hierarchy(startNode, (d) => (d.isExpanded ? d.children : null))}
223223
size={[sizeWidth / aspect, sizeHeight / aspect]}
224-
separation={(a, b) => (a.parent === b.parent ? 1 : 0.5) / a.depth}
224+
separation={(a, b) => (a.parent === b.parent ? 0.5 : 0.5) / a.depth}
225225
>
226226
{(tree) => (
227227
<Group top={origin.y + 25} left={origin.x}>

src/app/components/StateRoute/PerformanceVisx/BarGraph.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ const margin = {
2929
const axisColor = '#161617';
3030
const axisTickLabelColor = '#363638';
3131
const axisLabelColor = '#363638';
32-
const background = '#242529';
3332
const tooltipStyles = {
3433
...defaultStyles,
3534
minWidth: 60,
36-
backgroundColor: 'rgba(0,0,0,0.9)',
37-
color: 'white',
35+
//backgroundColor: 'rgba(0,0,0,0.9)', //defaults to white
36+
//color: 'white', //defaults to a gray
3837
fontSize: '16px',
3938
lineHeight: '18px',
4039
fontFamily: 'Roboto',

src/app/components/StateRoute/PerformanceVisx/BarGraphComparison.tsx

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,15 @@ const margin: Margin = {
3333
bottom: 0,
3434
left: 50,
3535
};
36-
const axisColor = '#ff0000'; //#62d6fb
37-
const background = '#242529';
36+
const axisColor = '#161617';
37+
const axisTickLabelColor = '#363638';
38+
const axisLabelColor = '#363638';
39+
const background = '#ffffff';
3840
const tooltipStyles = {
3941
...defaultStyles,
4042
minWidth: 60,
41-
backgroundColor: 'rgba(0,0,0,0.9)',
42-
color: 'white',
43+
// backgroundColor: 'rgba(0,0,0,0.9)', //defaults to white
44+
// color: 'white', //defaults to gray
4345
fontSize: '14px',
4446
lineHeight: '18px',
4547
fontFamily: 'Roboto',
@@ -125,10 +127,10 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
125127
nice: true,
126128
});
127129

128-
const duplicate = schemeTableau10.slice();
130+
const LMcolorScale = ['#a0c1d6','#669bbc','#105377','#003049','#55a8ac','#3c6e71','#1c494b','#c1676d','#c1121f','#780000']
129131
const colorScale = scaleOrdinal<string, string>({
130132
domain: keys, // the domain array will assign each key a different color to make rectangle boxes
131-
range: duplicate, // and use range to set the color scheme each bar
133+
range: LMcolorScale, // and use range to set the color scheme each bar
132134
});
133135

134136
// setting max dimensions and scale ranges
@@ -203,9 +205,9 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
203205
<div className='dropdown-and-delete-series-container'>
204206
{/*'Clear Series' MUI button that clears any saved series*/}
205207
<Button
208+
//className='delete-button'
206209
variant='contained'
207210
sx={{ p: 2, color: 'white' }}
208-
className='delete-button'
209211
onClick={() => {
210212
setButtonLoad(true);
211213
dispatch(deleteSeries());
@@ -225,9 +227,9 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
225227
<FormControl sx={{ m: 1, minWidth: 180 }} size='small'>
226228
<InputLabel
227229
id='simple-select-outlined-label'
228-
sx={{ color: 'white', lineHeight: 1, fontWeight: 400 }}
230+
sx={{ color: '#161617', p: 2, fontSize: '16px' }}
229231
>
230-
Compare Series
232+
COMPARE SERIES
231233
</InputLabel>
232234
<Select
233235
variant='filled'
@@ -239,7 +241,7 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
239241
onOpen={handleOpen}
240242
onChange={handleSeriesChange}
241243
sx={{
242-
backgroundColor: '#53b6d5',
244+
backgroundColor: '#d9d9d9',
243245
color: 'white',
244246
height: 34,
245247
fontWeight: 400,
@@ -430,7 +432,7 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
430432
tickStroke={axisColor}
431433
strokeWidth={2}
432434
tickLabelProps={() => ({
433-
fill: 'rgb(231, 231, 231)',
435+
fill: axisTickLabelColor,
434436
fontSize: 11,
435437
verticalAnchor: 'middle',
436438
textAnchor: 'end',
@@ -444,15 +446,15 @@ const BarGraphComparison = (props: BarGraphComparisonProps): JSX.Element => {
444446
tickStroke={axisColor}
445447
strokeWidth={2}
446448
tickLabelProps={() => ({
447-
fill: 'rgb(231, 231, 231)',
449+
fill: axisTickLabelColor,
448450
fontSize: 11,
449451
textAnchor: 'middle',
450452
})}
451453
/>
452-
<Text x={-xMax / 2} y='15' transform='rotate(-90)' fontSize={12} fill='#FFFFFF'>
454+
<Text x={-xMax / 2} y='15' transform='rotate(-90)' fontSize={12} fill={axisLabelColor}>
453455
Rendering Time (ms)
454456
</Text>
455-
<Text x={xMax / 2} y={yMax + 65} fontSize={12} fill='#FFFFFF'>
457+
<Text x={xMax / 2} y={yMax + 65} fontSize={12} fill={axisLabelColor}>
456458
Series ID
457459
</Text>
458460
</svg>

src/app/styles/abstracts/_variables.scss

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)