From fcb667619ca922fb1a1947b4e8c23b57290f97b6 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 14 Jul 2024 01:47:41 +0200 Subject: app/ui: rename main window ui file --- app/src/application.cpp | 4 +-- res/CMakeLists.txt | 2 +- res/windows/main.ui | 68 ++++++++++++++++++++++++++++++++++++++++++++++ res/windows/main_window.ui | 68 ---------------------------------------------- res/windows/windows.cmb | 8 +++--- 5 files changed, 75 insertions(+), 75 deletions(-) create mode 100644 res/windows/main.ui delete mode 100644 res/windows/main_window.ui diff --git a/app/src/application.cpp b/app/src/application.cpp index a120f40..9408335 100644 --- a/app/src/application.cpp +++ b/app/src/application.cpp @@ -28,8 +28,8 @@ namespace turns::app m_self = adw_application_new("ch.arknet.Turns", G_APPLICATION_DEFAULT_FLAGS); m_application = Glib::wrap(GTK_APPLICATION(m_self)); - auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main_window.ui"); - auto main_window = Gtk::Builder::get_widget_derived(builder, "main_window"); + auto builder = Gtk::Builder::create_from_resource("/ch/arknet/Turns/windows/main.ui"); + auto main_window = Gtk::Builder::get_widget_derived(builder, "main"); m_main_window = ADW_APPLICATION_WINDOW(main_window->gobj()); diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index dd5b139..3ae8a0b 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -7,7 +7,7 @@ target_add_glib_resources("res" UI_FILES "widgets/participant_list_row.ui" "windows/create_participant.ui" - "windows/main_window.ui" + "windows/main.ui" CSS_FILES "style.css" "style-dark.css" diff --git a/res/windows/main.ui b/res/windows/main.ui new file mode 100644 index 0000000..2ad66f7 --- /dev/null +++ b/res/windows/main.ui @@ -0,0 +1,68 @@ + + + + + + + + + + + + + True + + + + + 18 + 12 + 12 + 18 + none + start + + + + + + + + + + + + Turns + + + + + open-menu + main_menu + + + + + contact-new + + + - - - - - - - - - - - Turns - - - - - open-menu - main_menu - - - - - contact-new - - -