From 2b1237319fe2057f14421cee5a009f58b47a7ddf Mon Sep 17 00:00:00 2001 From: Calcitem Date: Sun, 26 Sep 2021 22:12:06 +0800 Subject: [PATCH] Change the icon of the game over --- src/ui/flutter_app/lib/widgets/game_page.dart | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ui/flutter_app/lib/widgets/game_page.dart b/src/ui/flutter_app/lib/widgets/game_page.dart index 90c79007..80bdc3d4 100644 --- a/src/ui/flutter_app/lib/widgets/game_page.dart +++ b/src/ui/flutter_app/lib/widgets/game_page.dart @@ -1481,10 +1481,14 @@ class _GamePageState extends State 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;