design : fix UI in light theme

This commit is contained in:
GuillaumeSD
2024-03-09 00:24:33 +01:00
parent 81cbc2ca80
commit 7968f56176
2 changed files with 8 additions and 2 deletions

View File

@@ -39,9 +39,11 @@ export default function EvaluationBar({ height }: Props) {
alignItems="center" alignItems="center"
width="2rem" width="2rem"
height={height} height={height}
border={`1px solid black`}
borderRadius="5px"
> >
<Box <Box
sx={{ backgroundColor: boardOrientation ? "secondary.main" : "white" }} sx={{ backgroundColor: boardOrientation ? "#424242" : "white" }}
height={`${ height={`${
boardOrientation boardOrientation
? 100 - evalBar.whiteBarPercentage ? 100 - evalBar.whiteBarPercentage
@@ -65,7 +67,7 @@ export default function EvaluationBar({ height }: Props) {
</Box> </Box>
<Box <Box
sx={{ backgroundColor: boardOrientation ? "white" : "secondary.main" }} sx={{ backgroundColor: boardOrientation ? "white" : "#424242" }}
height={`${ height={`${
boardOrientation boardOrientation
? evalBar.whiteBarPercentage ? evalBar.whiteBarPercentage

View File

@@ -22,6 +22,8 @@ export default function Accuracies() {
borderRadius="5px" borderRadius="5px"
lineHeight={1} lineHeight={1}
padding={1} padding={1}
fontWeight="bold"
border={`1px solid #424242`}
> >
{`${gameEval?.accuracy.white.toFixed(1)} %`} {`${gameEval?.accuracy.white.toFixed(1)} %`}
</Typography> </Typography>
@@ -34,6 +36,8 @@ export default function Accuracies() {
borderRadius="5px" borderRadius="5px"
lineHeight={1} lineHeight={1}
padding={1} padding={1}
fontWeight="bold"
border={`1px solid #424242`}
> >
{`${gameEval?.accuracy.black.toFixed(1)} %`} {`${gameEval?.accuracy.black.toFixed(1)} %`}
</Typography> </Typography>