From e7dc0bdba345c786e50f16b28e29e2d5054fe7a2 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 16 May 2021 21:36:40 +0100 Subject: [PATCH] GameOfLife: Auto-size toolbar labels --- Userland/Games/GameOfLife/GameOfLife.gml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Userland/Games/GameOfLife/GameOfLife.gml b/Userland/Games/GameOfLife/GameOfLife.gml index 4a0d0803f1..1942e60ba6 100644 --- a/Userland/Games/GameOfLife/GameOfLife.gml +++ b/Userland/Games/GameOfLife/GameOfLife.gml @@ -8,8 +8,8 @@ name: "toolbar" @GUI::Label { - text: "Columns:" - fixed_width: 60 + text: "Columns: " + autosize: true } @GUI::SpinBox { @@ -18,11 +18,13 @@ max: 999 fixed_width: 40 } + @GUI::VerticalSeparator { } + @GUI::Label { - text: "Rows:" - fixed_width: 40 + text: "Rows: " + autosize: true } @GUI::SpinBox { @@ -31,12 +33,15 @@ max: 999 fixed_width: 40 } + @GUI::VerticalSeparator { } + @GUI::Label { - text: "Update Speed:" - fixed_width: 90 + text: "Update Speed: " + autosize: true } + @GUI::SpinBox { name: "interval_spinbox" min: 10