2021-02-19 23:00:33 +01:00
|
|
|
@GUI::Widget {
|
|
|
|
|
fill_with_background_color: true
|
|
|
|
|
|
2021-04-06 19:23:04 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
Userland+LibGUI: Add shorthand versions of the Margins constructor
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same
margin on all edges, for example. The constructors follow CSS' style of
specifying margins. The added constructors are:
- Margins(int all): Sets the same margin on all edges.
- Margins(int vertical, int horizontal): Sets the first argument to top
and bottom margins, and the second argument to left and right margins.
- Margins(int top, int vertical, int bottom): Sets the first argument to
the top margin, the second argument to the left and right margins,
and the third argument to the bottom margin.
2021-08-17 00:11:38 +00:00
|
|
|
margins: [4]
|
2021-04-09 20:49:04 +02:00
|
|
|
spacing: 3
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
shrink_to_fit: true
|
2021-04-06 19:23:04 +02:00
|
|
|
layout: @GUI::VerticalBoxLayout {
|
Userland+LibGUI: Add shorthand versions of the Margins constructor
This allows for typing [8] instead of [8, 8, 8, 8] to specify the same
margin on all edges, for example. The constructors follow CSS' style of
specifying margins. The added constructors are:
- Margins(int all): Sets the same margin on all edges.
- Margins(int vertical, int horizontal): Sets the first argument to top
and bottom margins, and the second argument to left and right margins.
- Margins(int top, int vertical, int bottom): Sets the first argument to
the top margin, the second argument to the left and right margins,
and the third argument to the bottom margin.
2021-08-17 00:11:38 +00:00
|
|
|
margins: [0, 4]
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
|
2021-04-06 19:23:04 +02:00
|
|
|
@GUI::Label {
|
|
|
|
|
text: "Look in:"
|
|
|
|
|
text_alignment: "CenterRight"
|
2021-04-09 23:09:52 +02:00
|
|
|
fixed_height: 24
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
|
2021-10-21 19:33:08 +02:00
|
|
|
@GUI::Tray {
|
|
|
|
|
name: "common_locations_tray"
|
2021-05-01 00:27:29 +03:00
|
|
|
fixed_width: 95
|
2021-04-06 19:23:04 +02:00
|
|
|
}
|
2021-04-09 20:49:04 +02:00
|
|
|
|
2021-04-09 21:46:33 +02:00
|
|
|
@GUI::Label {
|
2021-04-29 21:46:15 +02:00
|
|
|
text: "Filename:"
|
2021-04-09 21:46:33 +02:00
|
|
|
text_alignment: "CenterRight"
|
|
|
|
|
fixed_height: 24
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-09 20:49:04 +02:00
|
|
|
@GUI::Widget {
|
2021-07-28 11:10:26 +02:00
|
|
|
fixed_height: 20
|
2021-04-09 20:49:04 +02:00
|
|
|
}
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-04-09 20:49:04 +02:00
|
|
|
layout: @GUI::VerticalBoxLayout
|
2021-02-19 23:00:33 +01:00
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-04-06 19:23:04 +02:00
|
|
|
shrink_to_fit: true
|
2021-04-09 20:49:04 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout
|
2021-02-19 23:00:33 +01:00
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
2021-04-06 19:23:04 +02:00
|
|
|
name: "location_textbox"
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
|
2021-04-13 16:18:20 +02:00
|
|
|
@GUI::Toolbar {
|
2021-04-06 19:23:04 +02:00
|
|
|
name: "toolbar"
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
2021-04-06 19:23:04 +02:00
|
|
|
}
|
2021-02-19 23:00:33 +01:00
|
|
|
|
2021-04-06 19:23:04 +02:00
|
|
|
@GUI::MultiView {
|
|
|
|
|
name: "view"
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
2021-04-06 19:23:04 +02:00
|
|
|
|
2021-02-19 23:00:33 +01:00
|
|
|
@GUI::Widget {
|
2021-04-06 19:23:04 +02:00
|
|
|
shrink_to_fit: true
|
2021-04-09 20:49:04 +02:00
|
|
|
layout: @GUI::VerticalBoxLayout
|
2021-02-19 23:00:33 +01:00
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-07-27 19:26:27 +02:00
|
|
|
fixed_height: 22
|
2021-04-09 20:49:04 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout
|
2021-04-06 19:23:04 +02:00
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
|
name: "filename_textbox"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
fixed_width: 20
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
|
name: "ok_button"
|
|
|
|
|
text: "OK"
|
|
|
|
|
fixed_width: 75
|
|
|
|
|
}
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
|
2021-04-06 19:23:04 +02:00
|
|
|
@GUI::Widget {
|
2021-07-27 19:26:27 +02:00
|
|
|
fixed_height: 22
|
2021-04-09 20:49:04 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout
|
2021-04-06 19:23:04 +02:00
|
|
|
|
2021-04-09 20:49:04 +02:00
|
|
|
@GUI::Widget
|
2021-04-06 19:23:04 +02:00
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
|
name: "cancel_button"
|
|
|
|
|
text: "Cancel"
|
|
|
|
|
fixed_width: 75
|
|
|
|
|
}
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|