QOL: Reorder Minesweeper alert buttons

This commit is contained in:
2025-11-21 10:16:19 +02:00
parent a9d6ca1baa
commit 43d715f4f8

View File

@@ -399,15 +399,15 @@ class _MineSweeperGameState extends State<MineSweeperGame> {
MihButton( MihButton(
onPressed: () { onPressed: () {
context.pop(); context.pop();
mihMineSweeperProvider.setToolIndex(1); showStartGameWindow(mihMineSweeperProvider);
}, },
buttonColor: MihColors.getGoldColor( buttonColor: MihColors.getPrimaryColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
width: 300, width: 300,
child: Text( child: Text(
"Leader Board", "New Game",
style: TextStyle( style: TextStyle(
color: MihColors.getPrimaryColor( color: MihColors.getSecondaryColor(
MzansiInnovationHub.of(context)!.theme.mode == MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"), "Dark"),
fontSize: 20, fontSize: 20,
@@ -436,15 +436,15 @@ class _MineSweeperGameState extends State<MineSweeperGame> {
MihButton( MihButton(
onPressed: () { onPressed: () {
context.pop(); context.pop();
showStartGameWindow(mihMineSweeperProvider); mihMineSweeperProvider.setToolIndex(1);
}, },
buttonColor: MihColors.getPrimaryColor( buttonColor: MihColors.getGoldColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
width: 300, width: 300,
child: Text( child: Text(
"New Game", "Leader Board",
style: TextStyle( style: TextStyle(
color: MihColors.getSecondaryColor( color: MihColors.getPrimaryColor(
MzansiInnovationHub.of(context)!.theme.mode == MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"), "Dark"),
fontSize: 20, fontSize: 20,
@@ -529,17 +529,16 @@ class _MineSweeperGameState extends State<MineSweeperGame> {
children: [ children: [
MihButton( MihButton(
onPressed: () { onPressed: () {
mihMineSweeperProvider.setLeaderboard(leaderboard: null);
context.pop(); context.pop();
mihMineSweeperProvider.setToolIndex(1); showStartGameWindow(mihMineSweeperProvider);
}, },
buttonColor: MihColors.getGoldColor( buttonColor: MihColors.getPrimaryColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
width: 300, width: 300,
child: Text( child: Text(
"Leader Board", "New Game",
style: TextStyle( style: TextStyle(
color: MihColors.getPrimaryColor( color: MihColors.getSecondaryColor(
MzansiInnovationHub.of(context)!.theme.mode == MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"), "Dark"),
fontSize: 20, fontSize: 20,
@@ -567,16 +566,17 @@ class _MineSweeperGameState extends State<MineSweeperGame> {
), ),
MihButton( MihButton(
onPressed: () { onPressed: () {
mihMineSweeperProvider.setLeaderboard(leaderboard: null);
context.pop(); context.pop();
showStartGameWindow(mihMineSweeperProvider); mihMineSweeperProvider.setToolIndex(1);
}, },
buttonColor: MihColors.getPrimaryColor( buttonColor: MihColors.getGoldColor(
MzansiInnovationHub.of(context)!.theme.mode == "Dark"), MzansiInnovationHub.of(context)!.theme.mode == "Dark"),
width: 300, width: 300,
child: Text( child: Text(
"New Game", "Leader Board",
style: TextStyle( style: TextStyle(
color: MihColors.getSecondaryColor( color: MihColors.getPrimaryColor(
MzansiInnovationHub.of(context)!.theme.mode == MzansiInnovationHub.of(context)!.theme.mode ==
"Dark"), "Dark"),
fontSize: 20, fontSize: 20,