From 00fa5dc53ec32cbe00ca667a05925d730b7996bc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 16 May 2021 21:23:12 +0200 Subject: [PATCH] Taskbar: Make shutdown dialog non-resizable and tweak button spacing --- Userland/Services/Taskbar/ShutdownDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Userland/Services/Taskbar/ShutdownDialog.cpp b/Userland/Services/Taskbar/ShutdownDialog.cpp index f947801c37..70fe10e798 100644 --- a/Userland/Services/Taskbar/ShutdownDialog.cpp +++ b/Userland/Services/Taskbar/ShutdownDialog.cpp @@ -95,6 +95,7 @@ ShutdownDialog::ShutdownDialog() auto& button_container = right_container.add(); button_container.set_fixed_height(23); button_container.set_layout(); + button_container.layout()->set_spacing(5); button_container.layout()->add_spacer(); auto& ok_button = button_container.add("OK"); ok_button.set_fixed_size(80, 23); @@ -109,7 +110,7 @@ ShutdownDialog::ShutdownDialog() resize(413, 235); center_on_screen(); - set_resizable(true); + set_resizable(false); set_title("Exit SerenityOS"); set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/power.png"));