Files
ladybird/Libraries/LibGUI
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
..
2020-05-01 16:58:18 +02:00
2020-06-13 12:43:22 +02:00
2020-07-28 16:29:44 +02:00
2020-07-28 16:29:44 +02:00
2020-04-21 16:19:18 +02:00
2020-08-13 21:09:39 +02:00