1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00
serenity/Userland/Applications/Run/Run.gml
FrHun 8081a8a5de LibGUI: Add layout spacer support to GML
This is a bit of a hack, but it is an easy way to finally get spacers
into GML.
This will translate well if spacers are later to become child objects of
the continer widget.
2022-06-10 21:26:06 +01:00

64 lines
1.3 KiB
Text

@GUI::Widget {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
@GUI::Widget {
max_height: 32
layout: @GUI::HorizontalBoxLayout {
spacing: 16
}
@GUI::ImageWidget {
name: "icon"
}
@GUI::Label {
name: "info"
text: "Type the name of a program, folder, document,\nor website, and SerenityOS will open it for you."
text_alignment: "CenterLeft"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
margins: [4]
}
@GUI::Label {
text: "Open:"
fixed_width: 50
text_alignment: "CenterLeft"
}
@GUI::ComboBox {
name: "path"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
fixed_height: 22
@GUI::Layout::Spacer {}
@GUI::Button {
name: "ok_button"
text: "OK"
fixed_width: 80
}
@GUI::Button {
name: "cancel_button"
text: "Cancel"
fixed_width: 80
}
@GUI::Button {
name: "browse_button"
text: "Browse..."
fixed_width: 80
}
}
}