From 3e43b1f17366dfeeda815914e1858ada680ac3af Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 9 Apr 2021 20:49:04 +0200 Subject: [PATCH] LibGUI: Tweak FilePickerDialog UI layout --- .../Libraries/LibGUI/FilePickerDialog.gml | 31 +++++++------------ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/Userland/Libraries/LibGUI/FilePickerDialog.gml b/Userland/Libraries/LibGUI/FilePickerDialog.gml index 3a0bfd6ac8..74ed7e9326 100644 --- a/Userland/Libraries/LibGUI/FilePickerDialog.gml +++ b/Userland/Libraries/LibGUI/FilePickerDialog.gml @@ -3,11 +3,11 @@ layout: @GUI::HorizontalBoxLayout { margins: [4, 4, 4, 4] + spacing: 3 } @GUI::Widget { shrink_to_fit: true - layout: @GUI::VerticalBoxLayout { margins: [4, 4, 4, 4] } @@ -15,7 +15,7 @@ @GUI::Label { text: "Look in:" text_alignment: "CenterRight" - fixed_height: 24 + fixed_height: 20 } @GUI::Frame { @@ -28,18 +28,18 @@ spacing: 0 } } + + @GUI::Widget { + fixed_height: 47 + } } @GUI::Widget { - layout: @GUI::VerticalBoxLayout { - margins: [4, 4, 4, 4] - } + layout: @GUI::VerticalBoxLayout @GUI::Widget { shrink_to_fit: true - - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout @GUI::TextBox { name: "location_textbox" @@ -56,15 +56,11 @@ @GUI::Widget { shrink_to_fit: true - - layout: @GUI::VerticalBoxLayout { - } + layout: @GUI::VerticalBoxLayout @GUI::Widget { fixed_height: 24 - - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout @GUI::Label { text: "File name:" @@ -89,12 +85,9 @@ @GUI::Widget { fixed_height: 24 + layout: @GUI::HorizontalBoxLayout - layout: @GUI::HorizontalBoxLayout { - } - - @GUI::Widget { - } + @GUI::Widget @GUI::Button { name: "cancel_button"