diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2023-03-07 23:12:43 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2023-05-05 02:15:43 +0330 |
commit | 2451e97a117d774320270027865bdd70bf1ab350 (patch) | |
tree | e6b6238230bef0e9bc2fb9df4b390b818848f2b2 /Base/res/devel | |
parent | 7a0fae7be121fbebc1f805a8254d88f06e7274a7 (diff) | |
download | serenity-2451e97a117d774320270027865bdd70bf1ab350.zip |
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.
Diffstat (limited to 'Base/res/devel')
-rw-r--r-- | Base/res/devel/templates/serenity-application.postcreate | 1 | ||||
-rw-r--r-- | Base/res/devel/templates/serenity-application/main.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Base/res/devel/templates/serenity-application.postcreate b/Base/res/devel/templates/serenity-application.postcreate index 8daf1dc6e7..9baf09a941 100644 --- a/Base/res/devel/templates/serenity-application.postcreate +++ b/Base/res/devel/templates/serenity-application.postcreate @@ -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 diff --git a/Base/res/devel/templates/serenity-application/main.cpp b/Base/res/devel/templates/serenity-application/main.cpp index f1f058c32b..79a484495f 100644 --- a/Base/res/devel/templates/serenity-application/main.cpp +++ b/Base/res/devel/templates/serenity-application/main.cpp @@ -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>()); |