mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 10:18:15 +09:00
Misc: Use automatic window positioning in more applications
This is a follow up to #2936 / d3e3b4ae56aa79d9bde12ca1f143dcf116f89a4c. Affected programs: - Applications: Browser (Download, View source, Inspect DOM tree, JS console), Terminal (Settings) - Demos: Cube, Eyes, Fire, HelloWorld, LibGfxDemo, WebView, WidgetGallery - DevTools: HackStudio, Inspector, Profiler - Games: 2048, Minesweeper, Snake, Solitaire - Userland: test-web A few have been left out where manual positioning is done on purpose, e.g. ClipboardManager (to be close to the menu bar) or VisualBuilder (to preserve alignment of the multiple application windows).
This commit is contained in:
parent
0cab3bca2f
commit
2e5c434e22
Notes:
sideshowbarker
2024-07-19 03:36:32 +09:00
Author: https://github.com/linusg
Commit: 2e5c434e22
Pull-request: https://github.com/SerenityOS/serenity/pull/3161
17 changed files with 21 additions and 21 deletions
|
@ -36,7 +36,7 @@ int main(int argc, char** argv)
|
|||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
auto window = GUI::Window::construct();
|
||||
window->set_rect(100, 100, 240, 160);
|
||||
window->resize(240, 160);
|
||||
window->set_title("Hello World!");
|
||||
|
||||
auto& main_widget = window->set_main_widget<GUI::Widget>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue