Updated colors and changed button color

This commit is contained in:
2025-07-31 22:56:33 +02:00
parent 3debe3d88e
commit 5e812717c7
6 changed files with 19 additions and 14 deletions

View File

@@ -236,12 +236,10 @@ class _RoundViewState extends State<RoundView> {
_endOfRoundNavigation(context, true);
}
},
child: Text(
AppLocalizations.of(context).kamikaze,
style: const TextStyle(
color: CupertinoColors.destructiveRed,
),
),
child: Text(AppLocalizations.of(context).kamikaze,
style: TextStyle(
color: CustomTheme.kamikazeColor,
)),
),
),
),
@@ -300,7 +298,8 @@ class _RoundViewState extends State<RoundView> {
return 0; // If it's the first round, the order should be the same as the players list.
}
final List<int> scores = widget.gameSession.roundList[widget.roundNumber - 2].scoreUpdates;
final List<int> scores =
widget.gameSession.roundList[widget.roundNumber - 2].scoreUpdates;
final int winnerIndex = scores.indexOf(0);
// Fallback if no player has 0 points, which should not happen in a valid game.
@@ -348,7 +347,10 @@ class _RoundViewState extends State<RoundView> {
_kamikazePlayerIndex = index;
Navigator.pop(context, true);
},
child: Text(name),
child: Text(
name,
style: TextStyle(color: CustomTheme.kamikazeColor),
),
);
}).toList(),
cancelButton: CupertinoActionSheetAction(