design : fix UI in light theme
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user