diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-10 12:58:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-10 13:45:49 +0200 |
commit | 233a9554a5abfcd485322fc5f95c531ca3f13bcc (patch) | |
tree | e560e1df64540808523be058560df15f1dbef67f | |
parent | 563d3bdcc9e474c6418a615d07f4891abe9138d2 (diff) | |
download | serenity-233a9554a5abfcd485322fc5f95c531ca3f13bcc.zip |
HackStudio: Tweak Files/Classes tab views
Put a bit of padding around the views, and retitle the "ClassView" tab
to simply "Classes".
-rw-r--r-- | Userland/DevTools/HackStudio/HackStudioWidget.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp index 472f320d49..fa2b3b6ded 100644 --- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp +++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp @@ -849,10 +849,19 @@ void HackStudioWidget::create_project_tab(GUI::Widget& parent) { m_project_tab = parent.add<GUI::TabWidget>(); m_project_tab->set_tab_position(GUI::TabWidget::TabPosition::Bottom); - m_project_tree_view = m_project_tab->add_tab<GUI::TreeView>("Files"); + + auto& tree_view_container = m_project_tab->add_tab<GUI::Widget>("Files"); + tree_view_container.set_layout<GUI::VerticalBoxLayout>(); + tree_view_container.layout()->set_margins({ 2, 2, 2, 2 }); + + m_project_tree_view = tree_view_container.add<GUI::TreeView>(); configure_project_tree_view(); - m_class_view = m_project_tab->add_tab<ClassViewWidget>("ClassView"); + auto& class_view_container = m_project_tab->add_tab<GUI::Widget>("Classes"); + class_view_container.set_layout<GUI::VerticalBoxLayout>(); + class_view_container.layout()->set_margins({ 2, 2, 2, 2 }); + + m_class_view = class_view_container.add<ClassViewWidget>(); ProjectDeclarations::the().on_update = [this]() { m_class_view->refresh(); |