Browse Source

LibGUI: Tweak FilePickerDialog UI layout

Andreas Kling 4 years ago
parent
commit
3e43b1f173
1 changed files with 12 additions and 19 deletions
  1. 12 19
      Userland/Libraries/LibGUI/FilePickerDialog.gml

+ 12 - 19
Userland/Libraries/LibGUI/FilePickerDialog.gml

@@ -3,11 +3,11 @@
 
 
     layout: @GUI::HorizontalBoxLayout {
     layout: @GUI::HorizontalBoxLayout {
         margins: [4, 4, 4, 4]
         margins: [4, 4, 4, 4]
+        spacing: 3
     }
     }
 
 
     @GUI::Widget {
     @GUI::Widget {
         shrink_to_fit: true
         shrink_to_fit: true
-
         layout: @GUI::VerticalBoxLayout {
         layout: @GUI::VerticalBoxLayout {
             margins: [4, 4, 4, 4]
             margins: [4, 4, 4, 4]
         }
         }
@@ -15,7 +15,7 @@
         @GUI::Label {
         @GUI::Label {
             text: "Look in:"
             text: "Look in:"
             text_alignment: "CenterRight"
             text_alignment: "CenterRight"
-            fixed_height: 24
+            fixed_height: 20
         }
         }
 
 
         @GUI::Frame {
         @GUI::Frame {
@@ -28,18 +28,18 @@
                 spacing: 0
                 spacing: 0
             }
             }
         }
         }
+
+        @GUI::Widget {
+            fixed_height: 47
+        }
     }
     }
 
 
     @GUI::Widget {
     @GUI::Widget {
-        layout: @GUI::VerticalBoxLayout {
-            margins: [4, 4, 4, 4]
-        }
+        layout: @GUI::VerticalBoxLayout
 
 
         @GUI::Widget {
         @GUI::Widget {
             shrink_to_fit: true
             shrink_to_fit: true
-
-            layout: @GUI::HorizontalBoxLayout {
-            }
+            layout: @GUI::HorizontalBoxLayout
 
 
             @GUI::TextBox {
             @GUI::TextBox {
                 name: "location_textbox"
                 name: "location_textbox"
@@ -56,15 +56,11 @@
 
 
         @GUI::Widget {
         @GUI::Widget {
             shrink_to_fit: true
             shrink_to_fit: true
-
-            layout: @GUI::VerticalBoxLayout {
-            }
+            layout: @GUI::VerticalBoxLayout
 
 
             @GUI::Widget {
             @GUI::Widget {
                 fixed_height: 24
                 fixed_height: 24
-
-                layout: @GUI::HorizontalBoxLayout {
-                }
+                layout: @GUI::HorizontalBoxLayout
 
 
                 @GUI::Label {
                 @GUI::Label {
                     text: "File name:"
                     text: "File name:"
@@ -89,12 +85,9 @@
 
 
             @GUI::Widget {
             @GUI::Widget {
                 fixed_height: 24
                 fixed_height: 24
+                layout: @GUI::HorizontalBoxLayout
 
 
-                layout: @GUI::HorizontalBoxLayout {
-                }
-
-                @GUI::Widget {
-                }
+                @GUI::Widget
 
 
                 @GUI::Button {
                 @GUI::Button {
                     name: "cancel_button"
                     name: "cancel_button"