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

View File

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