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/Applications/Browser | |
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/Applications/Browser')
-rw-r--r-- | Userland/Applications/Browser/BrowserWindow.gml | 1 | ||||
-rw-r--r-- | Userland/Applications/Browser/EditBookmark.gml | 18 | ||||
-rw-r--r-- | Userland/Applications/Browser/Tab.gml | 5 |
3 files changed, 6 insertions, 18 deletions
diff --git a/Userland/Applications/Browser/BrowserWindow.gml b/Userland/Applications/Browser/BrowserWindow.gml index d8360a9583..f02adc0630 100644 --- a/Userland/Applications/Browser/BrowserWindow.gml +++ b/Userland/Applications/Browser/BrowserWindow.gml @@ -1,7 +1,6 @@ @GUI::Widget { name: "browser" fill_with_background_color: true - layout: @GUI::VerticalBoxLayout @GUI::HorizontalSeparator { diff --git a/Userland/Applications/Browser/EditBookmark.gml b/Userland/Applications/Browser/EditBookmark.gml index 86134dfe8e..c6e41cc796 100644 --- a/Userland/Applications/Browser/EditBookmark.gml +++ b/Userland/Applications/Browser/EditBookmark.gml @@ -2,17 +2,13 @@ fixed_width: 260 fixed_height: 85 fill_with_background_color: true - layout: @GUI::VerticalBoxLayout { margins: [4] } - @GUI::Widget { fixed_height: 24 - - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout @GUI::Label { text: "Title:" @@ -27,9 +23,7 @@ @GUI::Widget { fixed_height: 24 - - layout: @GUI::HorizontalBoxLayout { - } + layout: @GUI::HorizontalBoxLayout @GUI::Label { text: "URL:" @@ -42,15 +36,11 @@ } } - @GUI::Widget { fixed_height: 24 + layout: @GUI::HorizontalBoxLayout - layout: @GUI::HorizontalBoxLayout { - } - - @GUI::Widget { - } + @GUI::Widget @GUI::Button { name: "ok_button" diff --git a/Userland/Applications/Browser/Tab.gml b/Userland/Applications/Browser/Tab.gml index 5a11fcdc4e..d6c3ea135a 100644 --- a/Userland/Applications/Browser/Tab.gml +++ b/Userland/Applications/Browser/Tab.gml @@ -5,7 +5,6 @@ @GUI::ToolbarContainer { name: "toolbar_container" - @GUI::Toolbar { name: "toolbar" } @@ -13,8 +12,8 @@ @GUI::Widget { name: "webview_container" - layout: @GUI::VerticalBoxLayout { - } + layout: @GUI::VerticalBoxLayout + } @GUI::Statusbar { |