ladybird/Applications/Welcome
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
..
BackgroundWidget.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
BackgroundWidget.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
CMakeLists.txt Build: Switch to CMake :^) 2020-05-14 20:15:18 +02:00
main.cpp LibGUI: Add and use Window::center_on_screen() 2020-08-15 17:38:19 +02:00
TextWidget.cpp Welcome: Remove the default GUI::Frame look from TextWidget 2020-02-29 17:04:46 +01:00
TextWidget.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
UnuncheckableButton.cpp LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00
UnuncheckableButton.h LibGUI: Remove parent parameter to GUI::Widget constructor 2020-02-23 12:27:53 +01:00