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 {
|
2022-02-22 20:29:24 +01:00
|
|
|
preferred_width: 103
|
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"
|
2022-02-22 20:29:24 +01:00
|
|
|
min_width: 60
|
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"
|
2023-01-11 22:42:45 +01:00
|
|
|
fixed_height: 22
|
2021-04-09 21:46:33 +02:00
|
|
|
}
|
|
|
|
|
|
2023-01-11 22:42:45 +01:00
|
|
|
@GUI::Label {
|
|
|
|
|
name: "allowed_file_types_label"
|
|
|
|
|
text: "Files of Type:"
|
|
|
|
|
text_alignment: "CenterRight"
|
|
|
|
|
fixed_height: 22
|
2021-04-09 20:49:04 +02:00
|
|
|
}
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-02-19 23:00:33 +01:00
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-22 20:29:24 +01:00
|
|
|
preferred_height: "fit"
|
2022-02-12 19:17:01 +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"
|
2022-02-22 20:29:24 +01:00
|
|
|
preferred_width: "opportunistic_grow"
|
|
|
|
|
min_width: 80
|
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"
|
2022-02-22 20:29:24 +01:00
|
|
|
preferred_width: "shrink"
|
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 {
|
2022-02-22 20:29:24 +01:00
|
|
|
preferred_height: "fit"
|
2022-02-12 19:17:01 +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
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-06 19:23:04 +02:00
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
|
name: "filename_textbox"
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-10 23:03:11 +02:00
|
|
|
@GUI::DialogButton {
|
2021-04-06 19:23:04 +02:00
|
|
|
name: "ok_button"
|
|
|
|
|
text: "OK"
|
|
|
|
|
}
|
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
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-06 19:23:04 +02:00
|
|
|
|
2023-01-11 22:42:45 +01:00
|
|
|
@GUI::ComboBox {
|
|
|
|
|
name: "allowed_file_type_filters_combo"
|
|
|
|
|
model_only: true
|
|
|
|
|
}
|
2021-04-06 19:23:04 +02:00
|
|
|
|
2022-06-10 23:03:11 +02:00
|
|
|
@GUI::DialogButton {
|
2021-04-06 19:23:04 +02:00
|
|
|
name: "cancel_button"
|
|
|
|
|
text: "Cancel"
|
|
|
|
|
}
|
2021-02-19 23:00:33 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|