From 2451e97a117d774320270027865bdd70bf1ab350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Tue, 7 Mar 2023 23:12:43 +0100 Subject: [PATCH] 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. --- Base/res/devel/templates/serenity-application.postcreate | 1 + 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 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());