mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 00:19:27 +00:00
Base: Adjust serenity-application template with some cpp-gui pieces
Namely, the window title and size are carried over, since a larger window with a more readable "Example Application" title is better to understand. I also took the opportunity to add a missing trailing newline to the generated CMake file.
This commit is contained in:
parent
7a0fae7be1
commit
2451e97a11
|
@ -25,4 +25,5 @@ serenity_app($1 ICON filetype-executable)
|
|||
# identify each library by their include path. An exception is LibCore, which
|
||||
# is linked to all components by default.
|
||||
target_link_libraries($1 LibGUI LibGfx LibMain)
|
||||
|
||||
EOF
|
||||
|
|
|
@ -16,8 +16,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
|
||||
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
window->set_title("Form1");
|
||||
window->resize(96, 44);
|
||||
window->set_title("Example Application");
|
||||
window->resize(200, 200);
|
||||
window->set_resizable(false);
|
||||
|
||||
auto main_widget = TRY(window->set_main_widget<GUI::Widget>());
|
||||
|
|
Loading…
Reference in a new issue