File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/apps/chess/components Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -675,6 +675,10 @@ def chess_unit_symbol_display(
675
675
676
676
is_knight , is_pawn = piece_type == "n" , piece_type == "p"
677
677
678
+ # We always display a "w" symbol, because for some reason I find the board
679
+ # game clearer that way. We'll just make it a bit less white for "b" pieces.
680
+ unit_symbol_class = chess_unit_symbol_class (player_side = "w" , piece_name = piece_name )
681
+
678
682
symbol_class = (
679
683
# We have to do some ad-hoc adjustments for Knights and Pawns:
680
684
"w-7" if (is_pawn or is_knight ) else "w-8" ,
@@ -687,7 +691,8 @@ def chess_unit_symbol_display(
687
691
if player_side == "w"
688
692
else "drop-shadow-piece-symbol-b"
689
693
),
690
- chess_unit_symbol_class (player_side = player_side , piece_name = piece_name ),
694
+ * (("brightness-60" ,) if player_side == "b" else []),
695
+ unit_symbol_class ,
691
696
)
692
697
symbol_display = div (
693
698
cls = " " .join (symbol_class ),
Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ module.exports = {
94
94
"potential-capture" : borderFromDropShadow ( PIECES_DROP_SHADOW_OFFSET , POTENTIAL_CAPTURE_COLOR ) ,
95
95
"speech-bubble" : `0 0 2px ${ SPEECH_BUBBLE_DROP_SHADOW_COLOR } ` ,
96
96
} ,
97
+ brightness : {
98
+ 60 : ".6" ,
99
+ } ,
97
100
} ,
98
101
} ,
99
102
plugins : [ ] ,
You can’t perform that action at this time.
0 commit comments