mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 18:55:07 +00:00
Help: Spruce up the UI with some tasteful layout margins
This commit is contained in:
parent
ae0ff13f66
commit
c3b6df60b7
1 changed files with 5 additions and 1 deletions
|
@ -111,9 +111,13 @@ int main(int argc, char* argv[])
|
|||
auto model = ManualModel::create();
|
||||
|
||||
auto& left_tab_bar = splitter.add<GUI::TabWidget>();
|
||||
auto& tree_view = left_tab_bar.add_tab<GUI::TreeView>("Tree");
|
||||
auto& tree_view_container = left_tab_bar.add_tab<GUI::Widget>("Tree");
|
||||
tree_view_container.set_layout<GUI::VerticalBoxLayout>();
|
||||
tree_view_container.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
auto& tree_view = tree_view_container.add<GUI::TreeView>();
|
||||
auto& search_view = left_tab_bar.add_tab<GUI::Widget>("Search");
|
||||
search_view.set_layout<GUI::VerticalBoxLayout>();
|
||||
search_view.layout()->set_margins({ 4, 4, 4, 4 });
|
||||
auto& search_box = search_view.add<GUI::TextBox>();
|
||||
auto& search_list_view = search_view.add<GUI::ListView>();
|
||||
search_box.set_preferred_size(0, 20);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue