mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-17 02:47:49 +00:00
This is our first client of the new JSON GUI declaration thingy. The skeleton of the TextEditor app GUI is now declared separately from the C++ logic, and we use the Core::Object::name() of widgets to locate them once they have been instantiated by the GUI builder.
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"name": "main",
|
|
"fill_with_background_color": true,
|
|
|
|
"layout": {
|
|
"class": "GUI::VerticalBoxLayout",
|
|
"spacing": 2
|
|
},
|
|
|
|
"children": [
|
|
{
|
|
"class": "GUI::ToolBarContainer",
|
|
"children": [
|
|
{
|
|
"class": "GUI::ToolBar",
|
|
"name": "toolbar"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"class": "GUI::HorizontalSplitter",
|
|
"children": [
|
|
{
|
|
"class": "GUI::TextEditor",
|
|
"name": "editor"
|
|
},
|
|
{
|
|
"class": "Web::InProcessWebView",
|
|
"name": "webview"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"class": "GUI::Widget",
|
|
"name": "find_replace_widget",
|
|
"fill_with_background_color": true,
|
|
"horizontal_size_policy": "Fill",
|
|
"vertical_size_policy": "Fixed",
|
|
"preferred_height": 48,
|
|
"layout": {
|
|
"class": "GUI::VerticalBoxLayout",
|
|
"margins": [ 2, 2, 2, 4 ]
|
|
}
|
|
},
|
|
{
|
|
"class": "GUI::StatusBar",
|
|
"name": "statusbar"
|
|
}
|
|
]
|
|
}
|