ladybird/Services/SystemMenu
Linus Groh 0cab3bca2f LibGUI: Add and use Window::center_on_screen()
Various applications were using the same slightly verbose code to center
themselves on the screen/desktop:

Gfx::IntRect window_rect { 0, 0, width, height };
window_rect.center_within(GUI::Desktop::the().rect());
window->set_rect(window_rect);

Which now becomes:

window->resize(width, height);
window->center_on_screen();
2020-08-15 17:38:19 +02:00
..
CMakeLists.txt SystemMenu: Rename PowerDialog => ShutdownDialog 2020-05-19 17:46:28 +02:00
main.cpp SystemMenu: Disown child processes after spawning 2020-08-04 18:17:16 +02:00
ShutdownDialog.cpp LibGUI: Add and use Window::center_on_screen() 2020-08-15 17:38:19 +02:00
ShutdownDialog.h Meta: Add a script check the presence of "#pragma once" in header files 2020-05-29 07:59:45 +02:00