mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
Userland: Specify margins and spacing in the GUI::Layout constructor
This commit is contained in:
parent
9561ec15f4
commit
77ad0fdb07
Notes:
sideshowbarker
2024-07-17 06:29:49 +09:00
Author: https://github.com/AtkinsSJ
Commit: 77ad0fdb07
Pull-request: https://github.com/SerenityOS/serenity/pull/17495
Reviewed-by: https://github.com/awesomekling ✅
64 changed files with 136 additions and 288 deletions
|
@ -18,8 +18,7 @@ SidebarWidget::SidebarWidget()
|
|||
auto& tab_bar = add<GUI::TabWidget>();
|
||||
|
||||
auto& outline_container = tab_bar.add_tab<GUI::Widget>("Outline");
|
||||
outline_container.set_layout<GUI::VerticalBoxLayout>();
|
||||
outline_container.layout()->set_margins(4);
|
||||
outline_container.set_layout<GUI::VerticalBoxLayout>(4);
|
||||
|
||||
m_outline_tree_view = outline_container.add<GUI::TreeView>();
|
||||
m_outline_tree_view->set_activates_on_selection(true);
|
||||
|
@ -34,8 +33,7 @@ SidebarWidget::SidebarWidget()
|
|||
};
|
||||
|
||||
auto& thumbnails_container = tab_bar.add_tab<GUI::Widget>("Thumbnails");
|
||||
thumbnails_container.set_layout<GUI::VerticalBoxLayout>();
|
||||
thumbnails_container.layout()->set_margins(4);
|
||||
thumbnails_container.set_layout<GUI::VerticalBoxLayout>(4);
|
||||
|
||||
// FIXME: Add thumbnail previews
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue