mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 20:45:14 +00:00
Help: Spruce up the UI with some tasteful layout margins
This commit is contained in:
parent
ae0ff13f66
commit
c3b6df60b7
Notes:
sideshowbarker
2024-07-19 03:54:10 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/c3b6df60b72
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
Reference in a new issue