2021-02-20 01:00:33 +03:00
|
|
|
@GUI::Widget {
|
|
|
|
fill_with_background_color: true
|
2021-04-06 20: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-17 03:11:38 +03:00
|
|
|
margins: [4]
|
2021-04-09 21:49:04 +03:00
|
|
|
spacing: 3
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-22 22:29:24 +03:00
|
|
|
preferred_width: 103
|
2021-04-06 20: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-17 03:11:38 +03:00
|
|
|
margins: [0, 4]
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
|
|
|
|
2021-04-06 20:23:04 +03:00
|
|
|
@GUI::Label {
|
|
|
|
text: "Look in:"
|
|
|
|
text_alignment: "CenterRight"
|
2021-04-10 00:09:52 +03:00
|
|
|
fixed_height: 24
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
|
|
|
|
2021-10-21 20:33:08 +03:00
|
|
|
@GUI::Tray {
|
|
|
|
name: "common_locations_tray"
|
2022-02-22 22:29:24 +03:00
|
|
|
min_width: 60
|
2021-04-06 20:23:04 +03:00
|
|
|
}
|
2021-04-09 21:49:04 +03:00
|
|
|
|
2021-04-09 22:46:33 +03:00
|
|
|
@GUI::Label {
|
2021-04-29 22:46:15 +03:00
|
|
|
text: "Filename:"
|
2021-04-09 22:46:33 +03:00
|
|
|
text_alignment: "CenterRight"
|
2023-01-12 00:42:45 +03:00
|
|
|
fixed_height: 22
|
2021-04-09 22:46:33 +03:00
|
|
|
}
|
|
|
|
|
2023-01-12 00:42:45 +03:00
|
|
|
@GUI::Label {
|
|
|
|
name: "allowed_file_types_label"
|
|
|
|
text: "Files of Type:"
|
|
|
|
text_alignment: "CenterRight"
|
|
|
|
fixed_height: 22
|
2021-04-09 21:49:04 +03:00
|
|
|
}
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-02-20 01:00:33 +03:00
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-22 22:29:24 +03:00
|
|
|
preferred_height: "fit"
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-02-20 01:00:33 +03:00
|
|
|
|
|
|
|
@GUI::TextBox {
|
2021-04-06 20:23:04 +03:00
|
|
|
name: "location_textbox"
|
2022-02-22 22:29:24 +03:00
|
|
|
preferred_width: "opportunistic_grow"
|
|
|
|
min_width: 80
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
|
|
|
|
2021-04-13 17:18:20 +03:00
|
|
|
@GUI::Toolbar {
|
2021-04-06 20:23:04 +03:00
|
|
|
name: "toolbar"
|
2022-02-22 22:29:24 +03:00
|
|
|
preferred_width: "shrink"
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
2021-04-06 20:23:04 +03:00
|
|
|
}
|
2021-02-20 01:00:33 +03:00
|
|
|
|
2021-04-06 20:23:04 +03:00
|
|
|
@GUI::MultiView {
|
|
|
|
name: "view"
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
2021-04-06 20:23:04 +03:00
|
|
|
|
2021-02-20 01:00:33 +03:00
|
|
|
@GUI::Widget {
|
2022-02-22 22:29:24 +03:00
|
|
|
preferred_height: "fit"
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-02-20 01:00:33 +03:00
|
|
|
|
|
|
|
@GUI::Widget {
|
2021-07-27 20:26:27 +03:00
|
|
|
fixed_height: 22
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-06 20:23:04 +03:00
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
name: "filename_textbox"
|
|
|
|
}
|
|
|
|
|
2022-06-11 00:03:11 +03:00
|
|
|
@GUI::DialogButton {
|
2021-04-06 20:23:04 +03:00
|
|
|
name: "ok_button"
|
|
|
|
text: "OK"
|
|
|
|
}
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
|
|
|
|
2021-04-06 20:23:04 +03:00
|
|
|
@GUI::Widget {
|
2021-07-27 20:26:27 +03:00
|
|
|
fixed_height: 22
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-04-06 20:23:04 +03:00
|
|
|
|
2023-01-12 00:42:45 +03:00
|
|
|
@GUI::ComboBox {
|
|
|
|
name: "allowed_file_type_filters_combo"
|
|
|
|
model_only: true
|
|
|
|
}
|
2021-04-06 20:23:04 +03:00
|
|
|
|
2022-06-11 00:03:11 +03:00
|
|
|
@GUI::DialogButton {
|
2021-04-06 20:23:04 +03:00
|
|
|
name: "cancel_button"
|
|
|
|
text: "Cancel"
|
|
|
|
}
|
2021-02-20 01:00:33 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|