Browse Source

Userland: Run gml-format

This brings the existing GML files up to spec with the new requirements
Idan Horowitz 3 years ago
parent
commit
c8ab45e79f
54 changed files with 259 additions and 253 deletions
  1. 1 1
      Userland/Applications/Browser/BrowserWindow.gml
  2. 4 4
      Userland/Applications/Browser/EditBookmark.gml
  3. 2 2
      Userland/Applications/Browser/Tab.gml
  4. 2 2
      Userland/Applications/BrowserSettings/BrowserSettingsWidget.gml
  5. 7 7
      Userland/Applications/Calculator/CalculatorWindow.gml
  6. 2 1
      Userland/Applications/Calendar/CalendarWindow.gml
  7. 3 3
      Userland/Applications/CharacterMap/CharacterMapWindow.gml
  8. 2 2
      Userland/Applications/CharacterMap/CharacterSearchWindow.gml
  9. 5 5
      Userland/Applications/CrashReporter/CrashReporterWindow.gml
  10. 1 1
      Userland/Applications/DisplaySettings/BackgroundSettings.gml
  11. 2 2
      Userland/Applications/DisplaySettings/DesktopSettings.gml
  12. 3 3
      Userland/Applications/DisplaySettings/FontSettings.gml
  13. 3 3
      Userland/Applications/DisplaySettings/MonitorSettings.gml
  14. 5 0
      Userland/Applications/FileManager/FileManagerWindow.gml
  15. 5 5
      Userland/Applications/FileManager/FileOperationProgress.gml
  16. 2 2
      Userland/Applications/FileManager/PropertiesWindowGeneralTab.gml
  17. 15 15
      Userland/Applications/FontEditor/FontEditorWindow.gml
  18. 6 6
      Userland/Applications/FontEditor/NewFontDialogPage1.gml
  19. 10 11
      Userland/Applications/FontEditor/NewFontDialogPage2.gml
  20. 5 6
      Userland/Applications/HexEditor/FindDialog.gml
  21. 2 1
      Userland/Applications/HexEditor/HexEditorWindow.gml
  22. 2 2
      Userland/Applications/KeyboardSettings/Keyboard.gml
  23. 2 2
      Userland/Applications/KeyboardSettings/KeymapDialog.gml
  24. 1 1
      Userland/Applications/MouseSettings/Mouse.gml
  25. 3 3
      Userland/Applications/PixelPaint/EditGuideDialog.gml
  26. 3 4
      Userland/Applications/PixelPaint/FilterGallery.gml
  27. 3 1
      Userland/Applications/PixelPaint/PixelPaintWindow.gml
  28. 3 3
      Userland/Applications/Run/Run.gml
  29. 2 2
      Userland/Applications/Spreadsheet/CondFormatting.gml
  30. 4 4
      Userland/Applications/Spreadsheet/CondView.gml
  31. 8 8
      Userland/Applications/Spreadsheet/csv_export.gml
  32. 9 8
      Userland/Applications/Spreadsheet/csv_import.gml
  33. 2 2
      Userland/Applications/Spreadsheet/select_format_page.gml
  34. 1 1
      Userland/Applications/TerminalSettings/TerminalSettingsView.gml
  35. 2 2
      Userland/Applications/TextEditor/TextEditorWindow.gml
  36. 9 10
      Userland/Applications/ThemeEditor/ThemeEditor.gml
  37. 8 8
      Userland/Applications/Welcome/WelcomeWindow.gml
  38. 2 2
      Userland/Demos/ModelGallery/BasicModelTab.gml
  39. 2 2
      Userland/Demos/WidgetGallery/DemoWizardPage1.gml
  40. 1 1
      Userland/Demos/WidgetGallery/DemoWizardPage2.gml
  41. 43 43
      Userland/Demos/WidgetGallery/GalleryGML/BasicsTab.gml
  42. 13 13
      Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml
  43. 1 1
      Userland/Demos/WidgetGallery/GalleryGML/WizardsTab.gml
  44. 2 2
      Userland/DevTools/HackStudio/Dialogs/Git/GitCommitDialog.gml
  45. 10 11
      Userland/DevTools/HackStudio/Dialogs/NewProjectDialog.gml
  46. 5 4
      Userland/Games/GameOfLife/GameOfLife.gml
  47. 1 1
      Userland/Games/Hearts/Hearts.gml
  48. 4 4
      Userland/Games/Minesweeper/MinesweeperCustomGameWindow.gml
  49. 1 1
      Userland/Games/Solitaire/Solitaire.gml
  50. 1 1
      Userland/Games/Spider/Spider.gml
  51. 6 6
      Userland/Libraries/LibGUI/FilePickerDialog.gml
  52. 8 8
      Userland/Libraries/LibGUI/FontPickerDialog.gml
  53. 7 7
      Userland/Libraries/LibGUI/PasswordInputDialog.gml
  54. 3 3
      Userland/Services/LoginServer/LoginWindow.gml

+ 1 - 1
Userland/Applications/Browser/BrowserWindow.gml

@@ -1,7 +1,7 @@
 @GUI::Widget {
     name: "browser"
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::HorizontalSeparator {
         name: "top_line"

+ 4 - 4
Userland/Applications/Browser/EditBookmark.gml

@@ -8,7 +8,7 @@
 
     @GUI::Widget {
         fixed_height: 24
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Title:"
@@ -23,7 +23,7 @@
 
     @GUI::Widget {
         fixed_height: 24
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "URL:"
@@ -38,9 +38,9 @@
 
     @GUI::Widget {
         fixed_height: 24
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "ok_button"

+ 2 - 2
Userland/Applications/Browser/Tab.gml

@@ -5,6 +5,7 @@
 
     @GUI::ToolbarContainer {
         name: "toolbar_container"
+
         @GUI::Toolbar {
             name: "toolbar"
         }
@@ -12,8 +13,7 @@
 
     @GUI::Widget {
         name: "webview_container"
-        layout: @GUI::VerticalBoxLayout
-
+        layout: @GUI::VerticalBoxLayout {}
     }
 
     @GUI::Statusbar {

+ 2 - 2
Userland/Applications/BrowserSettings/BrowserSettingsWidget.gml

@@ -112,8 +112,8 @@
             layout: @GUI::HorizontalBoxLayout {
                 spacing: 16
             }
-
             name: "search_engine_combobox_group"
+
             @GUI::Widget {
                 fixed_width: 32
             }
@@ -133,8 +133,8 @@
             layout: @GUI::HorizontalBoxLayout {
                 spacing: 16
             }
-
             name: "custom_search_engine_group"
+
             @GUI::Widget {
                 fixed_width: 32
             }

+ 7 - 7
Userland/Applications/Calculator/CalculatorWindow.gml

@@ -2,10 +2,10 @@
     fixed_width: 250
     fixed_height: 215
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::Widget {
-        layout: @GUI::VerticalBoxLayout
+        layout: @GUI::VerticalBoxLayout {}
 
         @GUI::HorizontalSeparator {
             fixed_height: 2
@@ -22,7 +22,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Label {
                     name: "label"
@@ -60,7 +60,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Button {
                     name: "mem_clear_button"
@@ -115,7 +115,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Button {
                     name: "mem_recall_button"
@@ -170,7 +170,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Button {
                     name: "mem_save_button"
@@ -225,7 +225,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Button {
                     name: "mem_add_button"

+ 2 - 1
Userland/Applications/Calendar/CalendarWindow.gml

@@ -1,9 +1,10 @@
 @GUI::Widget {
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::ToolbarContainer {
         name: "toolbar_container"
+
         @GUI::Toolbar {
             name: "toolbar"
         }

+ 3 - 3
Userland/Applications/CharacterMap/CharacterMapWindow.gml

@@ -1,6 +1,6 @@
 @GUI::Frame {
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::ToolbarContainer {
         @GUI::Toolbar {
@@ -8,8 +8,8 @@
                 spacing: 4
                 margins: [0, 0, 0, 4]
             }
-
             name: "toolbar"
+
             @GUI::Label {
                 text: "Font: "
                 autosize: true
@@ -19,7 +19,7 @@
                 background_role: "Base"
                 fill_with_background_color: true
                 fixed_height: 20
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::Label {
                     name: "font_name"

+ 2 - 2
Userland/Applications/CharacterMap/CharacterSearchWindow.gml

@@ -1,7 +1,7 @@
 @GUI::Frame {
-    layout: @GUI::VerticalBoxLayout
-
+    layout: @GUI::VerticalBoxLayout {}
     fill_with_background_color: true
+
     @GUI::Toolbar {
         @GUI::TextBox {
             name: "search_input"

+ 5 - 5
Userland/Applications/CrashReporter/CrashReporterWindow.gml

@@ -22,7 +22,7 @@
 
     @GUI::Widget {
         fixed_height: 18
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Executable path:"
@@ -38,7 +38,7 @@
 
     @GUI::Widget {
         fixed_height: 18
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Coredump path:"
@@ -54,7 +54,7 @@
 
     @GUI::Widget {
         fixed_height: 18
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Arguments:"
@@ -80,7 +80,7 @@
 
     @GUI::Widget {
         fixed_height: 32
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Button {
             name: "debug_button"
@@ -89,7 +89,7 @@
         }
 
         // HACK: We need something like Layout::add_spacer() in GML! :^)
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "close_button"

+ 1 - 1
Userland/Applications/DisplaySettings/BackgroundSettings.gml

@@ -32,7 +32,7 @@
 
         @GUI::Widget {
             shrink_to_fit: true
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Button {
                 name: "wallpaper_open_button"

+ 2 - 2
Userland/Applications/DisplaySettings/DesktopSettings.gml

@@ -8,9 +8,9 @@
         layout: @GUI::VerticalBoxLayout {
             margins: [14, 14, 4]
         }
-
         title: "Workspaces"
         shrink_to_fit: true
+
         @GUI::Widget {
             fixed_height: 32
             layout: @GUI::HorizontalBoxLayout {
@@ -44,7 +44,7 @@
 
         @GUI::Widget {
             fixed_height: 76
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 fixed_height: 32

+ 3 - 3
Userland/Applications/DisplaySettings/FontSettings.gml

@@ -20,7 +20,7 @@
         @GUI::Frame {
             background_role: "Base"
             fill_with_background_color: true
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Label {
                 name: "default_font_label"
@@ -49,7 +49,7 @@
         @GUI::Frame {
             background_role: "Base"
             fill_with_background_color: true
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Label {
                 name: "fixed_width_font_label"
@@ -63,5 +63,5 @@
         }
     }
 
-    @GUI::Widget
+    @GUI::Widget {}
 }

+ 3 - 3
Userland/Applications/DisplaySettings/MonitorSettings.gml

@@ -35,11 +35,11 @@
         layout: @GUI::VerticalBoxLayout {
             margins: [14, 14, 4]
         }
-
         title: "Screen settings"
+
         @GUI::Widget {
             shrink_to_fit: true
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 text: "Resolution:"
@@ -65,7 +65,7 @@
 
         @GUI::Widget {
             shrink_to_fit: true
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 text: "Display scale:"

+ 5 - 0
Userland/Applications/FileManager/FileManagerWindow.gml

@@ -6,6 +6,7 @@
 
     @GUI::ToolbarContainer {
         name: "toolbar_container"
+
         @GUI::Toolbar {
             name: "main_toolbar"
         }
@@ -13,6 +14,7 @@
         @GUI::Toolbar {
             name: "location_toolbar"
             visible: false
+
             @GUI::Label {
                 text: "Location: "
                 autosize: true
@@ -26,6 +28,7 @@
 
         @GUI::Toolbar {
             name: "breadcrumb_toolbar"
+
             @GUI::Label {
                 text: "Location: "
                 autosize: true
@@ -40,6 +43,7 @@
     @GUI::HorizontalSplitter {
         name: "splitter"
         first_resizee_minimum_size: 80
+
         @GUI::TreeView {
             name: "tree_view"
             fixed_width: 175
@@ -48,6 +52,7 @@
 
     @GUI::Statusbar {
         name: "statusbar"
+
         @GUI::Progressbar {
             name: "progressbar"
             text: "Generating thumbnails: "

+ 5 - 5
Userland/Applications/FileManager/FileOperationProgress.gml

@@ -6,7 +6,7 @@
 
     @GUI::Widget {
         fixed_height: 32
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::ImageWidget {
             name: "source_folder_icon"
@@ -35,7 +35,7 @@
 
     @GUI::Widget {
         fixed_height: 22
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Copying: "
@@ -54,7 +54,7 @@
 
     @GUI::Widget {
         fixed_height: 22
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Time left: "
@@ -82,9 +82,9 @@
 
     @GUI::Widget {
         shrink_to_fit: true
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             text: "Cancel"

+ 2 - 2
Userland/Applications/FileManager/PropertiesWindowGeneralTab.gml

@@ -22,7 +22,7 @@
         }
     }
 
-    @GUI::HorizontalSeparator
+    @GUI::HorizontalSeparator {}
 
     @GUI::Widget {
         fixed_height: 14
@@ -177,7 +177,7 @@
         }
     }
 
-    @GUI::HorizontalSeparator
+    @GUI::HorizontalSeparator {}
 
     @GUI::Widget {
         fixed_height: 14

+ 15 - 15
Userland/Applications/FontEditor/FontEditorWindow.gml

@@ -6,27 +6,27 @@
 
     @GUI::ToolbarContainer {
         name: "toolbar_container"
+
         @GUI::Toolbar {
             name: "toolbar"
         }
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Widget {
             name: "left_column_container"
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Widget {
                 name: "glyph_editor_container"
-                layout: @GUI::VerticalBoxLayout
-
+                layout: @GUI::VerticalBoxLayout {}
             }
 
             @GUI::Widget {
                 shrink_to_fit: true
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::SpinBox {
                     name: "glyph_editor_width_spinbox"
@@ -41,6 +41,7 @@
 
             @GUI::ToolbarContainer {
                 name: "glyph_toolbar_container"
+
                 @GUI::Toolbar {
                     name: "glyph_mode_toolbar"
                 }
@@ -59,8 +60,7 @@
 
             @GUI::Widget {
                 name: "glyph_map_container"
-                layout: @GUI::VerticalBoxLayout
-
+                layout: @GUI::VerticalBoxLayout {}
             }
 
             @GUI::GroupBox {
@@ -73,7 +73,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "name_label"
@@ -89,7 +89,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "family_label"
@@ -105,7 +105,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "weight_label"
@@ -122,7 +122,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "slope_label"
@@ -139,7 +139,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "presentation_label"
@@ -157,7 +157,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "mean_line_label"
@@ -174,7 +174,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "baseline_label"
@@ -191,7 +191,7 @@
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::Label {
                         name: "spacing_label"

+ 6 - 6
Userland/Applications/FontEditor/NewFontDialogPage1.gml

@@ -5,10 +5,10 @@
 
     @GUI::Widget {
         fixed_height: 160
-        layout: @GUI::VerticalBoxLayout
+        layout: @GUI::VerticalBoxLayout {}
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 fixed_width: 100
@@ -22,7 +22,7 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 fixed_width: 100
@@ -40,7 +40,7 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 text: "Weight:"
@@ -56,7 +56,7 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 fixed_width: 100
@@ -72,7 +72,7 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 fixed_width: 100

+ 10 - 11
Userland/Applications/FontEditor/NewFontDialogPage2.gml

@@ -4,7 +4,7 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::GroupBox {
             title: "Metadata"
@@ -14,7 +14,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Label {
                     fixed_width: 80
@@ -29,7 +29,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Label {
                     fixed_width: 80
@@ -44,7 +44,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Label {
                     fixed_width: 80
@@ -59,7 +59,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Label {
                     fixed_width: 80
@@ -78,7 +78,7 @@
             }
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Label {
                     fixed_width: 80
@@ -95,7 +95,7 @@
 
             @GUI::Widget {
                 fixed_height: 22
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Widget {
                     fixed_width: 80
@@ -110,19 +110,18 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
-            @GUI::Widget
+            @GUI::Widget {}
 
             @GUI::Widget {
                 name: "glyph_editor_container"
                 layout: @GUI::VerticalBoxLayout {
                     margins: [5, 0, 0]
                 }
-
             }
 
-            @GUI::Widget
+            @GUI::Widget {}
         }
     }
 }

+ 5 - 6
Userland/Applications/HexEditor/FindDialog.gml

@@ -9,9 +9,9 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         fixed_height: 22
+
         @GUI::Label {
             text: "Value to find"
             fixed_width: 80
@@ -24,15 +24,14 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::VerticalBoxLayout
-
+        layout: @GUI::VerticalBoxLayout {}
         name: "radio_container"
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         fixed_height: 22
+
         @GUI::Button {
             name: "find_button"
             text: "Find"

+ 2 - 1
Userland/Applications/HexEditor/HexEditorWindow.gml

@@ -7,6 +7,7 @@
 
     @GUI::ToolbarContainer {
         name: "toolbar_container"
+
         @GUI::Toolbar {
             name: "toolbar"
         }
@@ -20,7 +21,7 @@
         @GUI::Widget {
             name: "search_results_container"
             visible: false
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::TableView {
                 name: "search_results"

+ 2 - 2
Userland/Applications/KeyboardSettings/Keyboard.gml

@@ -15,7 +15,7 @@
 
         @GUI::Widget {
             fixed_width: 32
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Label {
                 fixed_width: 32
@@ -62,7 +62,7 @@
 
         @GUI::Widget {
             fixed_width: 32
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Label {
                 fixed_width: 32

+ 2 - 2
Userland/Applications/KeyboardSettings/KeymapDialog.gml

@@ -10,9 +10,9 @@
 
     @GUI::Widget {
         fixed_height: 24
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "ok_button"

+ 1 - 1
Userland/Applications/MouseSettings/Mouse.gml

@@ -101,7 +101,7 @@
                 fixed_width: 100
             }
 
-            @GUI::Widget
+            @GUI::Widget {}
         }
     }
 

+ 3 - 3
Userland/Applications/PixelPaint/EditGuideDialog.gml

@@ -1,6 +1,6 @@
 @GUI::Frame {
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::Widget {
         layout: @GUI::VerticalBoxLayout {
@@ -30,8 +30,8 @@
         layout: @GUI::HorizontalBoxLayout {
             margins: [4]
         }
-
         shrink_to_fit: true
+
         @GUI::Label {
             text: "Offset"
             text_alignment: "CenterLeft"
@@ -48,7 +48,7 @@
             margins: [4]
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "ok_button"

+ 3 - 4
Userland/Applications/PixelPaint/FilterGallery.gml

@@ -1,7 +1,7 @@
 @GUI::Frame {
-    layout: @GUI::VerticalBoxLayout
-
+    layout: @GUI::VerticalBoxLayout {}
     fill_with_background_color: true
+
     @GUI::Widget {
         layout: @GUI::HorizontalBoxLayout {
             margins: [4]
@@ -22,7 +22,6 @@
                 layout: @GUI::VerticalBoxLayout {
                     margins: [4]
                 }
-
             }
 
             @GUI::GroupBox {
@@ -44,7 +43,7 @@
             margins: [4]
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "apply_button"

+ 3 - 1
Userland/Applications/PixelPaint/PixelPaintWindow.gml

@@ -7,6 +7,7 @@
 
     @GUI::ToolbarContainer {
         name: "toolbar_container"
+
         @GUI::Toolbar {
             name: "toolbar"
         }
@@ -19,6 +20,7 @@
 
         @GUI::ToolbarContainer {
             name: "toolbar_container"
+
             @PixelPaint::ToolboxWidget {
                 name: "toolbox"
             }
@@ -41,7 +43,7 @@
         @GUI::Widget {
             fill_with_background_color: true
             fixed_width: 200
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::GroupBox {
                 title: "Layers"

+ 3 - 3
Userland/Applications/Run/Run.gml

@@ -38,11 +38,11 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         fixed_height: 22
+
         // HACK: using an empty widget as a spacer
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "ok_button"

+ 2 - 2
Userland/Applications/Spreadsheet/CondFormatting.gml

@@ -16,7 +16,7 @@
             spacing: 10
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "add_button"
@@ -30,6 +30,6 @@
             fixed_width: 70
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
     }
 }

+ 4 - 4
Userland/Applications/Spreadsheet/CondView.gml

@@ -1,9 +1,9 @@
 @GUI::Widget {
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::Widget {
         shrink_to_fit: true
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "if..."
@@ -20,7 +20,7 @@
 
     @GUI::Widget {
         shrink_to_fit: true
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Foreground..."
@@ -34,7 +34,7 @@
 
     @GUI::Widget {
         shrink_to_fit: true
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Background..."

+ 8 - 8
Userland/Applications/Spreadsheet/csv_export.gml

@@ -6,10 +6,10 @@
     @GUI::HorizontalSplitter {
         @GUI::Widget {
             name: "csv_options"
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::GroupBox {
                     title: "Delimiter"
@@ -43,7 +43,7 @@
 
                     @GUI::Widget {
                         fixed_height: 25
-                        layout: @GUI::HorizontalBoxLayout
+                        layout: @GUI::HorizontalBoxLayout {}
 
                         @GUI::RadioButton {
                             name: "delimiter_other_radio"
@@ -78,7 +78,7 @@
 
                     @GUI::Widget {
                         fixed_height: 25
-                        layout: @GUI::HorizontalBoxLayout
+                        layout: @GUI::HorizontalBoxLayout {}
 
                         @GUI::RadioButton {
                             name: "quote_other_radio"
@@ -92,11 +92,11 @@
                         }
                     }
 
-                    @GUI::Widget
+                    @GUI::Widget {}
 
                     @GUI::Widget {
                         fixed_height: 25
-                        layout: @GUI::HorizontalBoxLayout
+                        layout: @GUI::HorizontalBoxLayout {}
 
                         @GUI::Label {
                             text: "Escape by "
@@ -109,13 +109,13 @@
                         }
                     }
 
-                    @GUI::Widget
+                    @GUI::Widget {}
                 }
             }
 
             @GUI::Widget {
                 fixed_height: 25
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::CheckBox {
                     name: "export_header_check_box"

+ 9 - 8
Userland/Applications/Spreadsheet/csv_import.gml

@@ -6,10 +6,10 @@
     @GUI::HorizontalSplitter {
         @GUI::Widget {
             name: "csv_options"
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::GroupBox {
                     title: "Delimiter"
@@ -43,7 +43,7 @@
 
                     @GUI::Widget {
                         fixed_height: 25
-                        layout: @GUI::HorizontalBoxLayout
+                        layout: @GUI::HorizontalBoxLayout {}
 
                         @GUI::RadioButton {
                             name: "delimiter_other_radio"
@@ -78,7 +78,7 @@
 
                     @GUI::Widget {
                         fixed_height: 25
-                        layout: @GUI::HorizontalBoxLayout
+                        layout: @GUI::HorizontalBoxLayout {}
 
                         @GUI::RadioButton {
                             name: "quote_other_radio"
@@ -92,11 +92,11 @@
                         }
                     }
 
-                    @GUI::Widget
+                    @GUI::Widget {}
 
                     @GUI::Widget {
                         fixed_height: 25
-                        layout: @GUI::HorizontalBoxLayout
+                        layout: @GUI::HorizontalBoxLayout {}
 
                         @GUI::Label {
                             text: "Escape by "
@@ -109,7 +109,7 @@
                         }
                     }
 
-                    @GUI::Widget
+                    @GUI::Widget {}
                 }
             }
 
@@ -121,7 +121,7 @@
                 }
 
                 @GUI::Widget {
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::CheckBox {
                         name: "trim_leading_field_spaces_check_box"
@@ -151,6 +151,7 @@
 
             @GUI::StackWidget {
                 name: "data_preview_widget"
+
                 @GUI::TableView {
                     name: "data_preview_table_view"
                 }

+ 2 - 2
Userland/Applications/Spreadsheet/select_format_page.gml

@@ -12,7 +12,7 @@
 
     @GUI::Widget {
         fixed_height: 25
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Type: "
@@ -25,5 +25,5 @@
         }
     }
 
-    @GUI::Widget
+    @GUI::Widget {}
 }

+ 1 - 1
Userland/Applications/TerminalSettings/TerminalSettingsView.gml

@@ -44,7 +44,7 @@
             @GUI::Frame {
                 background_role: "Base"
                 fill_with_background_color: true
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::Label {
                     name: "terminal_font_label"

+ 2 - 2
Userland/Applications/TextEditor/TextEditorWindow.gml

@@ -7,6 +7,7 @@
 
     @GUI::ToolbarContainer {
         name: "toolbar_container"
+
         @GUI::Toolbar {
             name: "toolbar"
         }
@@ -20,8 +21,7 @@
         @GUI::Widget {
             name: "web_view_container"
             visible: false
-            layout: @GUI::VerticalBoxLayout
-
+            layout: @GUI::VerticalBoxLayout {}
         }
     }
 

+ 9 - 10
Userland/Applications/ThemeEditor/ThemeEditor.gml

@@ -1,10 +1,9 @@
 @GUI::Widget {
-    layout: @GUI::VerticalBoxLayout
-
+    layout: @GUI::VerticalBoxLayout {}
     fill_with_background_color: true
-    @GUI::Frame {
-        layout: @GUI::HorizontalBoxLayout
 
+    @GUI::Frame {
+        layout: @GUI::HorizontalBoxLayout {}
         name: "preview_frame"
     }
 
@@ -12,9 +11,9 @@
         layout: @GUI::HorizontalBoxLayout {
             margins: [4, 4, 4, 4]
         }
-
         shrink_to_fit: true
         title: "Colors"
+
         @GUI::ComboBox {
             name: "color_combo_box"
             model_only: true
@@ -30,9 +29,9 @@
         layout: @GUI::HorizontalBoxLayout {
             margins: [4, 4, 4, 4]
         }
-
         shrink_to_fit: true
         title: "Alignments"
+
         @GUI::ComboBox {
             name: "alignment_combo_box"
             model_only: true
@@ -48,16 +47,16 @@
         layout: @GUI::HorizontalBoxLayout {
             margins: [4, 4, 4, 4]
         }
-
         shrink_to_fit: true
         title: "Flags"
+
         @GUI::ComboBox {
             name: "flag_combo_box"
             model_only: true
             fixed_width: 230
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::CheckBox {
             name: "flag_input"
@@ -69,9 +68,9 @@
         layout: @GUI::HorizontalBoxLayout {
             margins: [4, 4, 4, 4]
         }
-
         shrink_to_fit: true
         title: "Metrics"
+
         @GUI::ComboBox {
             name: "metric_combo_box"
             model_only: true
@@ -87,9 +86,9 @@
         layout: @GUI::HorizontalBoxLayout {
             margins: [4, 4, 4, 4]
         }
-
         shrink_to_fit: true
         title: "Paths"
+
         @GUI::ComboBox {
             name: "path_combo_box"
             model_only: true

+ 8 - 8
Userland/Applications/Welcome/WelcomeWindow.gml

@@ -10,7 +10,7 @@
 
     @GUI::Widget {
         min_height: 160
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Frame {
             name: "tip_frame"
@@ -22,18 +22,18 @@
 
             @GUI::Widget {
                 fixed_width: 60
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::Label {
                     name: "light_bulb_label"
                     fixed_height: 60
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
             }
 
             @GUI::Widget {
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::Label {
                     fixed_height: 60
@@ -68,7 +68,7 @@
             name: "navigation_column"
             fixed_width: 115
             min_height: 160
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Button {
                 name: "new_button"
@@ -85,7 +85,7 @@
                 text: "Next Tip"
             }
 
-            @GUI::Widget
+            @GUI::Widget {}
 
             @GUI::HorizontalSeparator {
                 fixed_height: 2
@@ -99,7 +99,7 @@
 
     @GUI::Widget {
         fixed_height: 24
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::CheckBox {
             name: "startup_checkbox"
@@ -107,7 +107,7 @@
             autosize: true
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "close_button"

+ 2 - 2
Userland/Demos/ModelGallery/BasicModelTab.gml

@@ -16,9 +16,9 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         fixed_height: 30
+
         @GUI::TextBox {
             name: "new_item_name"
             placeholder: "Enter some text to be added..."

+ 2 - 2
Userland/Demos/WidgetGallery/DemoWizardPage1.gml

@@ -11,7 +11,7 @@
 
     @GUI::Widget {
         fixed_height: 25
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Label {
             text: "Location: "
@@ -29,5 +29,5 @@
     }
 
     // Spacer
-    @GUI::Widget
+    @GUI::Widget {}
 }

+ 1 - 1
Userland/Demos/WidgetGallery/DemoWizardPage2.gml

@@ -15,5 +15,5 @@
     }
 
     // Spacer
-    @GUI::Widget
+    @GUI::Widget {}
 }

+ 43 - 43
Userland/Demos/WidgetGallery/GalleryGML/BasicsTab.gml

@@ -11,7 +11,7 @@
         }
 
         @GUI::HorizontalSplitter {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Frame {
                 name: "label_frame"
@@ -48,11 +48,11 @@
             }
         }
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
         @GUI::Widget {
             fixed_height: 22
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::ComboBox {
                 name: "frame_shape_combobox"
@@ -64,7 +64,7 @@
                 enabled: false
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::SpinBox {
                 name: "thickness_spinbox"
@@ -85,12 +85,12 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Widget {
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
-                @GUI::Widget
+                @GUI::Widget {}
 
                 @GUI::Button {
                     name: "normal_button"
@@ -103,15 +103,15 @@
                     enabled: "false"
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::Widget {
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
-                @GUI::Widget
+                @GUI::Widget {}
 
                 @GUI::Button {
                     name: "enabled_coolbar_button"
@@ -126,23 +126,23 @@
                     button_style: "Coolbar"
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
             }
         }
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Widget {
                     fixed_width: 60
-                    layout: @GUI::VerticalBoxLayout
+                    layout: @GUI::VerticalBoxLayout {}
 
-                    @GUI::Widget
+                    @GUI::Widget {}
 
                     @GUI::RadioButton {
                         name: "top_radiobutton"
@@ -155,16 +155,16 @@
                         text: "Radio 2"
                     }
 
-                    @GUI::Widget
+                    @GUI::Widget {}
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
 
                 @GUI::Widget {
                     fixed_width: 70
-                    layout: @GUI::VerticalBoxLayout
+                    layout: @GUI::VerticalBoxLayout {}
 
-                    @GUI::Widget
+                    @GUI::Widget {}
 
                     @GUI::CheckBox {
                         name: "top_checkbox"
@@ -177,18 +177,18 @@
                         enabled: false
                     }
 
-                    @GUI::Widget
+                    @GUI::Widget {}
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::Widget {
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
-                @GUI::Widget
+                @GUI::Widget {}
 
                 @GUI::Button {
                     name: "icon_button"
@@ -201,7 +201,7 @@
                     enabled: "false"
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
             }
         }
     }
@@ -213,10 +213,10 @@
 
         @GUI::Widget {
             fixed_height: 47
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Widget {
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::TextBox {
                     placeholder: "Text box"
@@ -229,10 +229,10 @@
                 }
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::Widget {
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::TextBox {
                     text: "Read only"
@@ -246,24 +246,24 @@
             }
         }
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::TextEditor {
                 name: "text_editor"
                 placeholder: "Text editor"
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::Widget {
-                layout: @GUI::VerticalBoxLayout
+                layout: @GUI::VerticalBoxLayout {}
 
                 @GUI::Widget {
                     fixed_height: 22
-                    layout: @GUI::HorizontalBoxLayout
+                    layout: @GUI::HorizontalBoxLayout {}
 
                     @GUI::ColorInput {
                         name: "font_colorinput"
@@ -276,7 +276,7 @@
                     }
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
 
                 @GUI::Button {
                     name: "font_button"
@@ -293,18 +293,18 @@
                     text: "Input dialog..."
                 }
 
-                @GUI::Widget
+                @GUI::Widget {}
             }
         }
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
         @GUI::Widget {
             fixed_height: 22
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::ComboBox {
                     name: "msgbox_icon_combobox"
@@ -317,10 +317,10 @@
                 }
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::Widget {
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::Button {
                     name: "msgbox_button"

+ 13 - 13
Userland/Demos/WidgetGallery/GalleryGML/SlidersTab.gml

@@ -21,7 +21,7 @@
                 tooltip: "Opacity Slider"
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::ValueSlider {
                 name: "opacity_value_slider"
@@ -32,7 +32,7 @@
             }
         }
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
         @GUI::Frame {
             shape: "Panel"
@@ -56,7 +56,7 @@
             margins: [0, 8]
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Scrollbar {
             name: "enabled_scrollbar"
@@ -67,11 +67,11 @@
             value: 50
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Scrollbar {
             name: "disabled_scrollbar"
@@ -79,7 +79,7 @@
             fixed_width: -1
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
     }
 
     @GUI::GroupBox {
@@ -101,7 +101,7 @@
             tooltip: "Fixed"
         }
 
-        @GUI::VerticalSeparator
+        @GUI::VerticalSeparator {}
 
         @GUI::VerticalSlider {
             enabled: false
@@ -111,7 +111,7 @@
             value: 5
         }
 
-        @GUI::VerticalSeparator
+        @GUI::VerticalSeparator {}
 
         @GUI::VerticalProgressbar {
             name: "vertical_progressbar_right"
@@ -134,7 +134,7 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::HorizontalSlider {
                 name: "horizontal_slider_left"
@@ -144,7 +144,7 @@
                 value: 0
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::HorizontalSlider {
                 enabled: false
@@ -153,7 +153,7 @@
                 value: 5
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::HorizontalSlider {
                 name: "horizontal_slider_right"
@@ -164,7 +164,7 @@
             }
         }
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
         @GUI::HorizontalProgressbar {
             name: "horizontal_progressbar"

+ 1 - 1
Userland/Demos/WidgetGallery/GalleryGML/WizardsTab.gml

@@ -14,7 +14,7 @@
             text: "Start wizard"
         }
 
-        @GUI::HorizontalSeparator
+        @GUI::HorizontalSeparator {}
 
         @GUI::TextEditor {
             name: "wizard_output"

+ 2 - 2
Userland/DevTools/HackStudio/Dialogs/Git/GitCommitDialog.gml

@@ -16,9 +16,9 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         shrink_to_fit: true
+
         @GUI::Label {
             name: "line_and_col_label"
             text: "Line: 1, Col: 0"

+ 10 - 11
Userland/DevTools/HackStudio/Dialogs/NewProjectDialog.gml

@@ -11,8 +11,7 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::VerticalBoxLayout
-
+        layout: @GUI::VerticalBoxLayout {}
         name: "icon_view_container"
     }
 
@@ -26,9 +25,9 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         max_height: 24
+
         @GUI::Label {
             text: "Name:"
             text_alignment: "CenterLeft"
@@ -41,9 +40,9 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         max_height: 24
+
         @GUI::Label {
             text: "Create in:"
             text_alignment: "CenterLeft"
@@ -63,9 +62,9 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         max_height: 24
+
         @GUI::Label {
             text: "Full path:"
             text_alignment: "CenterLeft"
@@ -84,10 +83,10 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
-
+        layout: @GUI::HorizontalBoxLayout {}
         max_height: 24
-        @GUI::Widget
+
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "ok_button"

+ 5 - 4
Userland/Games/GameOfLife/GameOfLife.gml

@@ -1,9 +1,10 @@
 @GUI::Widget {
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::ToolbarContainer {
         @GUI::Toolbar {
             name: "toolbar"
+
             @GUI::Label {
                 text: "Columns: "
                 autosize: true
@@ -16,7 +17,7 @@
                 fixed_width: 40
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::Label {
                 text: "Rows: "
@@ -30,7 +31,7 @@
                 fixed_width: 40
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
 
             @GUI::Label {
                 text: "Update Speed: "
@@ -49,7 +50,7 @@
                 autosize: true
             }
 
-            @GUI::VerticalSeparator
+            @GUI::VerticalSeparator {}
         }
     }
 

+ 1 - 1
Userland/Games/Hearts/Hearts.gml

@@ -1,6 +1,6 @@
 @GUI::Widget {
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @Hearts::Game {
         name: "game"

+ 4 - 4
Userland/Games/Minesweeper/MinesweeperCustomGameWindow.gml

@@ -23,7 +23,7 @@
             fixed_width: 40
         }
 
-        @GUI::VerticalSeparator
+        @GUI::VerticalSeparator {}
 
         @GUI::Label {
             text: "Rows: "
@@ -37,7 +37,7 @@
             fixed_width: 40
         }
 
-        @GUI::VerticalSeparator
+        @GUI::VerticalSeparator {}
 
         @GUI::Label {
             text: "Mines: "
@@ -54,9 +54,9 @@
 
     @GUI::Widget {
         max_height: 24
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "ok_button"

+ 1 - 1
Userland/Games/Solitaire/Solitaire.gml

@@ -1,6 +1,6 @@
 @GUI::Widget {
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @Solitaire::Game {
         name: "game"

+ 1 - 1
Userland/Games/Spider/Spider.gml

@@ -1,6 +1,6 @@
 @GUI::Widget {
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @Spider::Game {
         name: "game"

+ 6 - 6
Userland/Libraries/LibGUI/FilePickerDialog.gml

@@ -34,11 +34,11 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::VerticalBoxLayout
+        layout: @GUI::VerticalBoxLayout {}
 
         @GUI::Widget {
             shrink_to_fit: true
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::TextBox {
                 name: "location_textbox"
@@ -55,11 +55,11 @@
 
         @GUI::Widget {
             shrink_to_fit: true
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Widget {
                 fixed_height: 22
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
                 @GUI::TextBox {
                     name: "filename_textbox"
@@ -78,9 +78,9 @@
 
             @GUI::Widget {
                 fixed_height: 22
-                layout: @GUI::HorizontalBoxLayout
+                layout: @GUI::HorizontalBoxLayout {}
 
-                @GUI::Widget
+                @GUI::Widget {}
 
                 @GUI::Button {
                     name: "cancel_button"

+ 8 - 8
Userland/Libraries/LibGUI/FontPickerDialog.gml

@@ -5,10 +5,10 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
         @GUI::Widget {
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Label {
                 text: "Family:"
@@ -23,7 +23,7 @@
 
         @GUI::Widget {
             fixed_width: 100
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Label {
                 text: "Style:"
@@ -38,7 +38,7 @@
 
         @GUI::Widget {
             fixed_width: 80
-            layout: @GUI::VerticalBoxLayout
+            layout: @GUI::VerticalBoxLayout {}
 
             @GUI::Label {
                 text: "Size:"
@@ -57,10 +57,10 @@
     }
 
     @GUI::GroupBox {
-        layout: @GUI::VerticalBoxLayout
-
+        layout: @GUI::VerticalBoxLayout {}
         title: "Sample text"
         fixed_height: 80
+
         @GUI::Label {
             name: "sample_text_label"
             text: "The quick brown fox jumps over the lazy dog."
@@ -69,9 +69,9 @@
 
     @GUI::Widget {
         fixed_height: 22
-        layout: @GUI::HorizontalBoxLayout
+        layout: @GUI::HorizontalBoxLayout {}
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Button {
             name: "ok_button"

+ 7 - 7
Userland/Libraries/LibGUI/PasswordInputDialog.gml

@@ -7,7 +7,7 @@
 
     @GUI::Widget {
         shrink_to_fit: true
-        layout: @GUI::VerticalBoxLayout
+        layout: @GUI::VerticalBoxLayout {}
 
         @GUI::Label {
             name: "key_icon_label"
@@ -17,11 +17,11 @@
     }
 
     @GUI::Widget {
-        layout: @GUI::VerticalBoxLayout
+        layout: @GUI::VerticalBoxLayout {}
 
         @GUI::Widget {
             fixed_height: 24
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 text: "Server:"
@@ -38,7 +38,7 @@
 
         @GUI::Widget {
             fixed_height: 24
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 text: "Username:"
@@ -55,7 +55,7 @@
 
         @GUI::Widget {
             fixed_height: 24
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
             @GUI::Label {
                 text: "Password:"
@@ -68,7 +68,7 @@
             }
         }
 
-        @GUI::Widget
+        @GUI::Widget {}
 
         @GUI::Widget {
             shrink_to_fit: true
@@ -76,7 +76,7 @@
                 spacing: 6
             }
 
-            @GUI::Widget
+            @GUI::Widget {}
 
             @GUI::Button {
                 text: "OK"

+ 3 - 3
Userland/Services/LoginServer/LoginWindow.gml

@@ -1,6 +1,6 @@
 @GUI::Widget {
     fill_with_background_color: true
-    layout: @GUI::VerticalBoxLayout
+    layout: @GUI::VerticalBoxLayout {}
 
     @GUI::ImageWidget {
         name: "banner"
@@ -23,9 +23,9 @@
         }
 
         @GUI::Widget {
-            layout: @GUI::HorizontalBoxLayout
+            layout: @GUI::HorizontalBoxLayout {}
 
-            @GUI::Widget
+            @GUI::Widget {}
 
             @GUI::Button {
                 name: "log_in"