1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:57:35 +00:00

Minesweeper: Update GML and fix layout issues

Converts Minesweeper's main widget to GML, polishes the custom
game window, formats the clock as human readable digital time, and
defers invoking Field's callback until the main widget has finished
relayout. Fixes inability to downsize the main window when shrinking
field size.
This commit is contained in:
thankyouverycool 2022-08-04 10:16:26 -04:00 committed by Andreas Kling
parent 4d09b5c4ba
commit 517c03f920
6 changed files with 77 additions and 51 deletions

View file

@ -42,8 +42,7 @@ void CustomGameDialog::set_max_mines()
CustomGameDialog::CustomGameDialog(Window* parent_window)
: Dialog(parent_window)
{
resize(305, 90);
center_on_screen();
resize(300, 82);
set_resizable(false);
set_title("Custom game");