mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 17:27:46 +00:00
Run: initial implementation of Run app
This commit is contained in:
parent
6536a9c79a
commit
40083444a0
8 changed files with 354 additions and 0 deletions
65
Userland/Applications/Run/Run.gml
Normal file
65
Userland/Applications/Run/Run.gml
Normal file
|
@ -0,0 +1,65 @@
|
|||
@GUI::Widget {
|
||||
fill_with_background_color: true
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [10, 10, 10, 10]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
spacing: 10
|
||||
}
|
||||
|
||||
@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 {
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Open:"
|
||||
fixed_width: 50
|
||||
text_alignment: "CenterLeft"
|
||||
}
|
||||
|
||||
@GUI::TextBox {
|
||||
name: "path"
|
||||
}
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
|
||||
// HACK: using an empty widget as a spacer
|
||||
@GUI::Widget {
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "ok_button"
|
||||
text: "OK"
|
||||
fixed_width: 75
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "cancel_button"
|
||||
text: "Cancel"
|
||||
fixed_width: 75
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "browse_button"
|
||||
text: "Browse..."
|
||||
fixed_width: 75
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue