summaryrefslogtreecommitdiff
path: root/Userland/Applications/FileManager
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-02-16 21:07:06 +0000
committerSam Atkins <atkinssj@gmail.com>2023-02-18 16:56:56 +0000
commit77ad0fdb0726aba2ecaf7ea9764a642671d1fd6f (patch)
tree956e10f4c4713e20c03f4aed06f08133f5fcc2e7 /Userland/Applications/FileManager
parent9561ec15f47fdba66a4e8872fd03aae8d0f2df22 (diff)
downloadserenity-77ad0fdb0726aba2ecaf7ea9764a642671d1fd6f.zip
Userland: Specify margins and spacing in the GUI::Layout constructor
Diffstat (limited to 'Userland/Applications/FileManager')
-rw-r--r--Userland/Applications/FileManager/PropertiesWindow.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/Userland/Applications/FileManager/PropertiesWindow.cpp b/Userland/Applications/FileManager/PropertiesWindow.cpp
index 47b5a60a04..afebbe3700 100644
--- a/Userland/Applications/FileManager/PropertiesWindow.cpp
+++ b/Userland/Applications/FileManager/PropertiesWindow.cpp
@@ -53,9 +53,7 @@ PropertiesWindow::PropertiesWindow(DeprecatedString const& path, Window* parent_
ErrorOr<void> PropertiesWindow::create_widgets(bool disable_rename)
{
auto main_widget = TRY(set_main_widget<GUI::Widget>());
- (void)TRY(main_widget->try_set_layout<GUI::VerticalBoxLayout>());
- main_widget->layout()->set_spacing(6);
- main_widget->layout()->set_margins(4);
+ (void)TRY(main_widget->try_set_layout<GUI::VerticalBoxLayout>(4, 6));
main_widget->set_fill_with_background_color(true);
auto tab_widget = TRY(main_widget->try_add<GUI::TabWidget>());
@@ -151,9 +149,8 @@ ErrorOr<void> PropertiesWindow::create_widgets(bool disable_rename)
TRY(setup_permission_checkboxes(*others_read, *others_write, *others_execute, { S_IROTH, S_IWOTH, S_IXOTH }, m_mode));
auto button_widget = TRY(main_widget->try_add<GUI::Widget>());
- (void)TRY(button_widget->try_set_layout<GUI::HorizontalBoxLayout>());
+ (void)TRY(button_widget->try_set_layout<GUI::HorizontalBoxLayout>(GUI::Margins {}, 5));
button_widget->set_fixed_height(22);
- button_widget->layout()->set_spacing(5);
TRY(button_widget->add_spacer());