mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00

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.
64 lines
1.3 KiB
Text
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
|
|
}
|
|
}
|
|
}
|