2021-02-19 19:00:33 -03:00
|
|
|
@GUI::Widget {
|
|
|
|
|
fill_with_background_color: true
|
|
|
|
|
|
2021-04-06 14:23:04 -03: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-16 21:11:38 -03:00
|
|
|
margins: [4]
|
2021-04-09 15:49:04 -03:00
|
|
|
spacing: 3
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
shrink_to_fit: true
|
2021-04-06 14:23:04 -03: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-16 21:11:38 -03:00
|
|
|
margins: [0, 4]
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
|
|
|
|
|
2021-04-06 14:23:04 -03:00
|
|
|
@GUI::Label {
|
|
|
|
|
text: "Look in:"
|
|
|
|
|
text_alignment: "CenterRight"
|
2021-04-09 18:09:52 -03:00
|
|
|
fixed_height: 24
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
|
|
|
|
|
2021-04-06 14:23:04 -03:00
|
|
|
@GUI::Frame {
|
|
|
|
|
name: "common_locations_frame"
|
2021-04-30 18:27:29 -03:00
|
|
|
fixed_width: 95
|
2021-04-06 14:23:04 -03:00
|
|
|
fill_with_background_color: true
|
2021-02-19 19:00:33 -03:00
|
|
|
|
2021-04-06 14:23:04 -03: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-16 21:11:38 -03:00
|
|
|
margins: [2]
|
2021-04-06 14:23:04 -03:00
|
|
|
spacing: 0
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-04-09 15:49:04 -03:00
|
|
|
|
2021-04-09 16:46:33 -03:00
|
|
|
@GUI::Label {
|
2021-04-29 16:46:15 -03:00
|
|
|
text: "Filename:"
|
2021-04-09 16:46:33 -03:00
|
|
|
text_alignment: "CenterRight"
|
|
|
|
|
fixed_height: 24
|
|
|
|
|
}
|
|
|
|
|
|
2021-04-09 15:49:04 -03:00
|
|
|
@GUI::Widget {
|
2021-07-28 06:10:26 -03:00
|
|
|
fixed_height: 20
|
2021-04-09 15:49:04 -03:00
|
|
|
}
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-04-09 15:49:04 -03:00
|
|
|
layout: @GUI::VerticalBoxLayout
|
2021-02-19 19:00:33 -03:00
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-04-06 14:23:04 -03:00
|
|
|
shrink_to_fit: true
|
2021-04-09 15:49:04 -03:00
|
|
|
layout: @GUI::HorizontalBoxLayout
|
2021-02-19 19:00:33 -03:00
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
2021-04-06 14:23:04 -03:00
|
|
|
name: "location_textbox"
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
|
|
|
|
|
2021-04-13 11:18:20 -03:00
|
|
|
@GUI::Toolbar {
|
2021-04-06 14:23:04 -03:00
|
|
|
name: "toolbar"
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
2021-04-06 14:23:04 -03:00
|
|
|
}
|
2021-02-19 19:00:33 -03:00
|
|
|
|
2021-04-06 14:23:04 -03:00
|
|
|
@GUI::MultiView {
|
|
|
|
|
name: "view"
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
2021-04-06 14:23:04 -03:00
|
|
|
|
2021-02-19 19:00:33 -03:00
|
|
|
@GUI::Widget {
|
2021-04-06 14:23:04 -03:00
|
|
|
shrink_to_fit: true
|
2021-04-09 15:49:04 -03:00
|
|
|
layout: @GUI::VerticalBoxLayout
|
2021-02-19 19:00:33 -03:00
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-07-27 14:26:27 -03:00
|
|
|
fixed_height: 22
|
2021-04-09 15:49:04 -03:00
|
|
|
layout: @GUI::HorizontalBoxLayout
|
2021-04-06 14:23:04 -03:00
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
|
name: "filename_textbox"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
fixed_width: 20
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
|
name: "ok_button"
|
|
|
|
|
text: "OK"
|
|
|
|
|
fixed_width: 75
|
|
|
|
|
}
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
|
|
|
|
|
2021-04-06 14:23:04 -03:00
|
|
|
@GUI::Widget {
|
2021-07-27 14:26:27 -03:00
|
|
|
fixed_height: 22
|
2021-04-09 15:49:04 -03:00
|
|
|
layout: @GUI::HorizontalBoxLayout
|
2021-04-06 14:23:04 -03:00
|
|
|
|
2021-04-09 15:49:04 -03:00
|
|
|
@GUI::Widget
|
2021-04-06 14:23:04 -03:00
|
|
|
|
|
|
|
|
@GUI::Button {
|
|
|
|
|
name: "cancel_button"
|
|
|
|
|
text: "Cancel"
|
|
|
|
|
fixed_width: 75
|
|
|
|
|
}
|
2021-02-19 19:00:33 -03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|