Skip to content

Commit

Permalink
change last move color according to annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Nov 10, 2023
1 parent 51f12c5 commit 9443e88
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/components/boards/BoardPlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
Alert,
Avatar,
Box,
Global,
Group,
Input,
Stack,
Expand Down Expand Up @@ -533,6 +534,20 @@ function AnnotationHint({
>
{annotation}
</Avatar>
<Global
styles={(theme) => ({
"cg-board": {
"square.last-move": {
background: theme.fn.rgba(
theme.colors[color][
theme.colorScheme === "dark" ? 5 : 3
],
0.4
),
},
},
})}
/>
</Box>
);
}
Expand Down

0 comments on commit 9443e88

Please sign in to comment.