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(
675675
676676 is_knight , is_pawn = piece_type == "n" , piece_type == "p"
677677
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+
678682 symbol_class = (
679683 # We have to do some ad-hoc adjustments for Knights and Pawns:
680684 "w-7" if (is_pawn or is_knight ) else "w-8" ,
@@ -687,7 +691,8 @@ def chess_unit_symbol_display(
687691 if player_side == "w"
688692 else "drop-shadow-piece-symbol-b"
689693 ),
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 ,
691696 )
692697 symbol_display = div (
693698 cls = " " .join (symbol_class ),
Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ module.exports = {
9494 "potential-capture" : borderFromDropShadow ( PIECES_DROP_SHADOW_OFFSET , POTENTIAL_CAPTURE_COLOR ) ,
9595 "speech-bubble" : `0 0 2px ${ SPEECH_BUBBLE_DROP_SHADOW_COLOR } ` ,
9696 } ,
97+ brightness : {
98+ 60 : ".6" ,
99+ } ,
97100 } ,
98101 } ,
99102 plugins : [ ] ,
You can’t perform that action at this time.
0 commit comments