summaryrefslogtreecommitdiff
path: root/Userland/Services/Taskbar/ShutdownDialog.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-16 21:23:12 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-16 21:23:31 +0200
commit00fa5dc53ec32cbe00ca667a05925d730b7996bc (patch)
treed9eac071a2f0b514835f8591efeefa98a36cd28d /Userland/Services/Taskbar/ShutdownDialog.cpp
parent551e13b407cfe5d513f75ce391a55e50945ab68c (diff)
downloadserenity-00fa5dc53ec32cbe00ca667a05925d730b7996bc.zip
Taskbar: Make shutdown dialog non-resizable and tweak button spacing
Diffstat (limited to 'Userland/Services/Taskbar/ShutdownDialog.cpp')
-rw-r--r--Userland/Services/Taskbar/ShutdownDialog.cpp3
1 files changed, 2 insertions, 1 deletions
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<GUI::Widget>();
button_container.set_fixed_height(23);
button_container.set_layout<GUI::HorizontalBoxLayout>();
+ button_container.layout()->set_spacing(5);
button_container.layout()->add_spacer();
auto& ok_button = button_container.add<GUI::Button>("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"));