mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
0cab3bca2f
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(); |
||
---|---|---|
.. | ||
BackgroundWidget.cpp | ||
BackgroundWidget.h | ||
CMakeLists.txt | ||
main.cpp | ||
TextWidget.cpp | ||
TextWidget.h | ||
UnuncheckableButton.cpp | ||
UnuncheckableButton.h |