Change the icon of the game over

This commit is contained in:
Calcitem 2021-09-26 22:12:06 +08:00
parent 410275ba57
commit 2b1237319f
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 6 additions and 2 deletions

View File

@ -1481,10 +1481,14 @@ class _GamePageState extends State<GamePage>
if (Game.instance.position.phase == Phase.gameOver) {
switch (Game.instance.position.winner) {
case PieceColor.white:
iconArrow = FluentIcons.thumb_dislike_24_regular;
iconArrow = ltr
? FluentIcons.toggle_left_24_regular
: FluentIcons.toggle_right_24_regular;
break;
case PieceColor.black:
iconArrow = FluentIcons.thumb_like_24_regular;
iconArrow = ltr
? FluentIcons.toggle_right_24_regular
: FluentIcons.toggle_left_24_regular;
break;
default:
iconArrow = FluentIcons.handshake_24_regular;