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/templates/serenity-application/main.cpp | |
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/templates/serenity-application/main.cpp')
-rw-r--r-- | Base/res/devel/templates/serenity-application/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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>()); |