This commit is contained in:
Bernardo Magri
2025-10-16 19:32:21 +01:00
parent fe0b39a49d
commit 05bc82a5c1
2 changed files with 69 additions and 17 deletions

View File

@@ -43,7 +43,7 @@ void MainWindow::setupUI()
{
// Configure main window
set_title("MineSweeper");
set_default_size(400, 400);
set_default_size(650, 650);
set_resizable(true);
// Configure main layout
@@ -249,14 +249,14 @@ void MainWindow::setupCSSProviders()
css_provider->load_from_data(
"button.cell-button { border-radius: 0; margin: 1px; padding: 0; }"
".cell-button:checked { background-color: #e0e0e0; }"
".label-1 { font-weight: bold; font-size: 1.2em; color: blue; }"
".label-2 { font-weight: bold; font-size: 1.2em; color: green; }"
".label-3 { font-weight: bold; font-size: 1.2em; color: darkorange; }"
".label-4 { font-weight: bold; font-size: 1.2em; color: purple; }"
".label-5 { font-weight: bold; font-size: 1.2em; color: red; }"
".label-6 { font-weight: bold; font-size: 1.2em; color: salmon; }"
".label-7 { font-weight: bold; font-size: 1.2em; color: turquoise; }"
".label-8 { font-weight: bold; font-size: 1.2em; color: magenta; }"
".label-1 { font-weight: bold; font-size: 1.1em; color: blue; }"
".label-2 { font-weight: bold; font-size: 1.1em; color: green; }"
".label-3 { font-weight: bold; font-size: 1.1em; color: darkorange; }"
".label-4 { font-weight: bold; font-size: 1.1em; color: purple; }"
".label-5 { font-weight: bold; font-size: 1.1em; color: red; }"
".label-6 { font-weight: bold; font-size: 1.1em; color: salmon; }"
".label-7 { font-weight: bold; font-size: 1.1em; color: turquoise; }"
".label-8 { font-weight: bold; font-size: 1.1em; color: magenta; }"
".confetti { opacity: 0.8; }"
);
@@ -1061,7 +1061,7 @@ void MainWindow::showNameInputDialog(int time)
showLeaderboard();
}
dialog->close();
//dialog->close();
// Ask if player wants to play again
auto newGameDialog = Gtk::make_managed<Gtk::MessageDialog>(