1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

Taskbar: Make shutdown dialog non-resizable and tweak button spacing

This commit is contained in:
Andreas Kling 2021-05-16 21:23:12 +02:00
parent 551e13b407
commit 00fa5dc53e

View file

@ -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"));