2021-08-02 10:09:59 +02:00
|
|
|
@GUI::Widget {
|
|
|
|
|
fill_with_background_color: true
|
|
|
|
|
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: [8]
|
2021-08-02 10:09:59 +02:00
|
|
|
spacing: 8
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
shrink_to_fit: true
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
|
name: "key_icon_label"
|
|
|
|
|
fixed_height: 32
|
|
|
|
|
fixed_width: 32
|
|
|
|
|
}
|
2022-06-29 05:05:44 +02:00
|
|
|
|
|
|
|
|
@GUI::Layout::Spacer {}
|
2021-08-02 10:09:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::VerticalBoxLayout {}
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
fixed_height: 24
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
|
text: "Server:"
|
|
|
|
|
fixed_width: 80
|
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
|
name: "server_label"
|
|
|
|
|
text: "server.ip"
|
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
fixed_height: 24
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
|
text: "Username:"
|
|
|
|
|
fixed_width: 80
|
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
|
name: "username_label"
|
|
|
|
|
text: "username"
|
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
fixed_height: 24
|
2022-02-12 19:17:01 +02:00
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
|
text: "Password:"
|
|
|
|
|
fixed_width: 80
|
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GUI::PasswordBox {
|
|
|
|
|
name: "password_box"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-01-04 18:15:15 +01:00
|
|
|
@GUI::Layout::Spacer {}
|
2021-08-02 10:09:59 +02:00
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
|
shrink_to_fit: true
|
|
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
|
|
|
spacing: 6
|
|
|
|
|
}
|
|
|
|
|
|
2022-02-12 19:17:01 +02:00
|
|
|
@GUI::Widget {}
|
2021-08-02 10:09:59 +02:00
|
|
|
|
2022-06-10 23:03:11 +02:00
|
|
|
@GUI::DialogButton {
|
2021-08-02 10:09:59 +02:00
|
|
|
text: "OK"
|
|
|
|
|
name: "ok_button"
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-10 23:03:11 +02:00
|
|
|
@GUI::DialogButton {
|
2021-08-02 10:09:59 +02:00
|
|
|
text: "Cancel"
|
|
|
|
|
name: "cancel_button"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|