diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-02-05 14:31:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-07 18:39:50 +0100 |
commit | 6ee597369d950bd2835633ac3fe37d2da5ab4a56 (patch) | |
tree | b313213e8141cb0798c32c37b9dd6f1d3ecc8de4 /Userland/Libraries/LibGUI | |
parent | 32de6dde4cc9bc6f07e9d158d7132f960cd174ac (diff) | |
download | serenity-6ee597369d950bd2835633ac3fe37d2da5ab4a56.zip |
Meta+Userland: Run the GML formatter on CI and pre-commit
Now that the GML formatter is both perserving comments and also mostly
agrees to the existing GML style, it can be used to auto-format all the
GML files in the system. This commit does not only contain the scripts
for running the formatting on CI and the pre-commit hook, but also
initially formats all the existing GML files so that the hook is
successfull.
Diffstat (limited to 'Userland/Libraries/LibGUI')
-rw-r--r-- | Userland/Libraries/LibGUI/FilePickerDialog.gml | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/FontPickerDialog.gml | 25 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/PasswordInputDialog.gml | 23 |
3 files changed, 13 insertions, 36 deletions
diff --git a/Userland/Libraries/LibGUI/FilePickerDialog.gml b/Userland/Libraries/LibGUI/FilePickerDialog.gml index 87b5b7e0f1..b15307cb51 100644 --- a/Userland/Libraries/LibGUI/FilePickerDialog.gml +++ b/Userland/Libraries/LibGUI/FilePickerDialog.gml @@ -1,6 +1,5 @@ @GUI::Widget { fill_with_background_color: true - layout: @GUI::HorizontalBoxLayout { margins: [4] spacing: 3 diff --git a/Userland/Libraries/LibGUI/FontPickerDialog.gml b/Userland/Libraries/LibGUI/FontPickerDialog.gml index 8abd18c999..8f112aee2a 100644 --- a/Userland/Libraries/LibGUI/FontPickerDialog.gml +++ b/Userland/Libraries/LibGUI/FontPickerDialog.gml @@ -1,17 +1,14 @@ @GUI::Widget { fill_with_background_color: true - layout: @GUI::VerticalBoxLayout { margins: [4, 4, 4, 4] } @GUI::Widget { - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout @GUI::Widget { - layout: @GUI::VerticalBoxLayout { - } + layout: @GUI::VerticalBoxLayout @GUI::Label { text: "Family:" @@ -26,9 +23,7 @@ @GUI::Widget { fixed_width: 100 - - layout: @GUI::VerticalBoxLayout { - } + layout: @GUI::VerticalBoxLayout @GUI::Label { text: "Style:" @@ -43,9 +38,7 @@ @GUI::Widget { fixed_width: 80 - - layout: @GUI::VerticalBoxLayout { - } + layout: @GUI::VerticalBoxLayout @GUI::Label { text: "Size:" @@ -64,12 +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." @@ -78,11 +69,9 @@ @GUI::Widget { fixed_height: 22 - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout - @GUI::Widget { - } + @GUI::Widget @GUI::Button { name: "ok_button" diff --git a/Userland/Libraries/LibGUI/PasswordInputDialog.gml b/Userland/Libraries/LibGUI/PasswordInputDialog.gml index 2c8a1d8cfd..d2c7adc998 100644 --- a/Userland/Libraries/LibGUI/PasswordInputDialog.gml +++ b/Userland/Libraries/LibGUI/PasswordInputDialog.gml @@ -1,6 +1,5 @@ @GUI::Widget { fill_with_background_color: true - layout: @GUI::HorizontalBoxLayout { margins: [8] spacing: 8 @@ -8,9 +7,7 @@ @GUI::Widget { shrink_to_fit: true - - layout: @GUI::VerticalBoxLayout { - } + layout: @GUI::VerticalBoxLayout @GUI::Label { name: "key_icon_label" @@ -20,14 +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:" @@ -44,9 +38,7 @@ @GUI::Widget { fixed_height: 24 - - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout @GUI::Label { text: "Username:" @@ -63,9 +55,7 @@ @GUI::Widget { fixed_height: 24 - - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout @GUI::Label { text: "Password:" @@ -86,8 +76,7 @@ spacing: 6 } - @GUI::Widget { - } + @GUI::Widget @GUI::Button { text: "OK" |