From 749b39997bda350334ac80f7a7091655eb1a75de Mon Sep 17 00:00:00 2001 From: FrHun <28605587+frhun@users.noreply.github.com> Date: Tue, 27 Jul 2021 19:18:28 +0200 Subject: [PATCH] ProcessChooser: Fix button margins and size --- Userland/Libraries/LibGUI/ProcessChooser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibGUI/ProcessChooser.cpp b/Userland/Libraries/LibGUI/ProcessChooser.cpp index b858c51215..d49d19929c 100644 --- a/Userland/Libraries/LibGUI/ProcessChooser.cpp +++ b/Userland/Libraries/LibGUI/ProcessChooser.cpp @@ -33,7 +33,6 @@ ProcessChooser::ProcessChooser(const StringView& window_title, const StringView& auto& widget = set_main_widget(); widget.set_fill_with_background_color(true); widget.set_layout(); - widget.layout()->set_margins({ 0, 0, 0, 2 }); m_table_view = widget.add(); auto sorting_model = GUI::SortingProxyModel::create(RunningProcessesModel::create()); @@ -46,11 +45,12 @@ ProcessChooser::ProcessChooser(const StringView& window_title, const StringView& auto& button_container = widget.add(); button_container.set_fixed_height(30); button_container.set_layout(); + button_container.set_content_margins({ 0, 4, 0, 4 }); button_container.layout()->set_margins({ 0, 0, 4, 0 }); button_container.layout()->add_spacer(); auto& select_button = button_container.add(m_button_label); - select_button.set_fixed_size(80, 24); + select_button.set_fixed_width(80); select_button.on_click = [this](auto) { if (m_table_view->selection().is_empty()) { GUI::MessageBox::show(this, "No process selected!", m_window_title, GUI::MessageBox::Type::Error); @@ -60,7 +60,7 @@ ProcessChooser::ProcessChooser(const StringView& window_title, const StringView& set_pid_from_index_and_close(index); }; auto& cancel_button = button_container.add("Cancel"); - cancel_button.set_fixed_size(80, 24); + cancel_button.set_fixed_width(80); cancel_button.on_click = [this](auto) { done(ExecCancel); };