Skip to content

Commit

Permalink
apply board brightness to custom svgs - closes #15563
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Jun 20, 2024
1 parent d342021 commit e0dda58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/common/css/theme/board/_chessground.scss
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,8 @@ cg-auto-pieces {
html:not(.transp) body:not(.simple-board) {
&.coords-in coord,
cg-board piece,
cg-board square {
cg-board square,
.cg-custom-svgs {
filter: brightness(calc(0.3 + 0.0059 * min(120, var(---board-brightness))));
//hue-rotate(calc(var(---board-hue) * 3.6deg));
}
Expand Down

0 comments on commit e0dda58

Please sign in to comment.