1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:27:35 +00:00

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.
This commit is contained in:
kleines Filmröllchen 2022-02-05 14:31:48 +01:00 committed by Andreas Kling
parent 32de6dde4c
commit 6ee597369d
60 changed files with 221 additions and 552 deletions

View file

@ -11,7 +11,6 @@
@GUI::Widget {
fixed_height: 25
layout: @GUI::HorizontalBoxLayout
@GUI::Label {

View file

@ -11,8 +11,7 @@
}
@GUI::HorizontalSplitter {
layout: @GUI::HorizontalBoxLayout {
}
layout: @GUI::HorizontalBoxLayout
@GUI::Frame {
name: "label_frame"
@ -49,13 +48,11 @@
}
}
@GUI::HorizontalSeparator {
}
@GUI::HorizontalSeparator
@GUI::Widget {
fixed_height: 22
layout: @GUI::HorizontalBoxLayout {
}
layout: @GUI::HorizontalBoxLayout
@GUI::ComboBox {
name: "frame_shape_combobox"
@ -67,8 +64,7 @@
enabled: false
}
@GUI::VerticalSeparator {
}
@GUI::VerticalSeparator
@GUI::SpinBox {
name: "thickness_spinbox"
@ -89,15 +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"
@ -110,19 +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"
@ -137,29 +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"
@ -172,20 +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"
@ -198,39 +177,31 @@
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"
text: "Icon button"
}
@GUI::Button {
name: "disabled_icon_button"
text: "Disabled"
enabled: "false"
}
@GUI::Widget {
}
@GUI::Widget
}
}
}
@ -242,12 +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"
@ -260,12 +229,10 @@
}
}
@GUI::VerticalSeparator {
}
@GUI::VerticalSeparator
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
}
layout: @GUI::VerticalBoxLayout
@GUI::TextBox {
text: "Read only"
@ -279,29 +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"
@ -314,8 +276,7 @@
}
}
@GUI::Widget {
}
@GUI::Widget
@GUI::Button {
name: "font_button"
@ -332,22 +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"
@ -360,12 +317,10 @@
}
}
@GUI::VerticalSeparator {
}
@GUI::VerticalSeparator
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
}
layout: @GUI::HorizontalBoxLayout
@GUI::Button {
name: "msgbox_button"

View file

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

View file

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