mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
Previously the GML compiler did not support object properties such as
`content_widget: @GUI::Widget{}` for GUI::ScrollableContainerWidget;
this commit adds support for such properties by simply calling
`set_<key>(<TProperty>&)` on the object.
This commit also removes the previous hack where
ScrollableContainerWidget was special-cased to have its singular child
used as the content widget; the only GML file using this behaviour was
also changed to be in line with 'proper' GML as handled by the GML
Playground.
33 lines
661 B
Plaintext
33 lines
661 B
Plaintext
@GUI::EmojiInputDialogWidget {
|
|
fill_with_background_color: true
|
|
layout: @GUI::VerticalBoxLayout {
|
|
margins: [4]
|
|
}
|
|
|
|
@GUI::TextBox {
|
|
name: "search_box"
|
|
placeholder: "Search emoji"
|
|
fixed_height: 22
|
|
}
|
|
|
|
@GUI::ToolbarContainer {
|
|
@GUI::Toolbar {
|
|
name: "toolbar"
|
|
|
|
@GUI::Label {
|
|
text: "Category: "
|
|
autosize: true
|
|
}
|
|
}
|
|
}
|
|
|
|
@GUI::ScrollableContainerWidget {
|
|
name: "scrollable_container"
|
|
|
|
content_widget: @GUI::Widget {
|
|
name: "emojis"
|
|
layout: @GUI::VerticalBoxLayout {}
|
|
}
|
|
}
|
|
}
|