2021-08-01 18:19:10 +03:00
|
|
|
@GUI::Frame {
|
|
|
|
fill_with_background_color: true
|
2022-02-12 20:17:01 +03:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-08-01 18:19:10 +03:00
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
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: [4]
|
2021-08-01 18:19:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::GroupBox {
|
|
|
|
title: "Orientation"
|
2022-06-29 06:05:44 +03:00
|
|
|
preferred_height: "fit"
|
2021-08-01 18:19:10 +03:00
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
2021-09-15 18:56:01 +03:00
|
|
|
margins: [10, 8, 8]
|
2021-08-01 18:19:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::RadioButton {
|
|
|
|
name: "orientation_horizontal_radio"
|
|
|
|
text: "Horizontal"
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::RadioButton {
|
|
|
|
name: "orientation_vertical_radio"
|
|
|
|
text: "Vertical"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
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-08-01 18:19:10 +03:00
|
|
|
}
|
2022-06-29 06:05:44 +03:00
|
|
|
preferred_height: "fit"
|
2022-02-12 20:17:01 +03:00
|
|
|
|
2021-08-01 18:19:10 +03:00
|
|
|
@GUI::Label {
|
|
|
|
text: "Offset"
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
name: "offset_text_box"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
max_height: 24
|
|
|
|
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-08-01 18:19:10 +03:00
|
|
|
}
|
|
|
|
|
2022-06-29 06:05:44 +03:00
|
|
|
@GUI::Layout::Spacer {}
|
2021-08-01 18:19:10 +03:00
|
|
|
|
2022-06-29 06:05:44 +03:00
|
|
|
@GUI::DialogButton {
|
2021-08-01 18:19:10 +03:00
|
|
|
name: "ok_button"
|
|
|
|
text: "OK"
|
|
|
|
}
|
|
|
|
|
2022-06-29 06:05:44 +03:00
|
|
|
@GUI::DialogButton {
|
2021-08-01 18:19:10 +03:00
|
|
|
name: "cancel_button"
|
|
|
|
text: "Cancel"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|