Files
serenity/Userland/Libraries/LibGUI/EmojiInputDialog.gml
Ali Mohammad Pur f3a4118aee GMLCompiler+LibGUI: Add support for object properties and undo hack
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.
2024-04-30 17:46:41 -06:00

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 {}
}
}
}