QOL: Reorder Minesweeper alert buttons
This commit is contained in:
parent
a9d6ca1baa
commit
43d715f4f8
1 changed files with 17 additions and 17 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue