ladybird/Userland/Services/LoginServer/LoginWindow.gml
FrHun 8081a8a5de LibGUI: Add layout spacer support to GML
This is a bit of a hack, but it is an easy way to finally get spacers
into GML.
This will translate well if spacers are later to become child objects of
the continer widget.
2022-06-10 21:26:06 +01:00

43 lines
868 B
Plaintext

@GUI::Widget {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {}
@GUI::ImageWidget {
name: "banner"
auto_resize: true
}
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
margins: [8, 8, 8, 8]
}
@GUI::TextBox {
name: "username"
placeholder: "Username"
}
@GUI::PasswordBox {
name: "password"
placeholder: "Password"
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {}
@GUI::Label {
name: "fail_message"
text_alignment: "CenterLeft"
}
@GUI::Layout::Spacer {}
@GUI::Button {
name: "log_in"
text: "Log in"
fixed_width: 60
}
}
}
}