From f44cbe02c17df1f02ad49c63cd784fec0ea02d85 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sat, 14 May 2022 14:45:59 +0200 Subject: [PATCH] Improve Gtk4 port --- main/CMakeLists.txt | 30 +-- .../add_conversation/add_contact_dialog.ui | 1 - .../add_conversation/add_groupchat_dialog.ui | 1 - .../conference_details_fragment.ui | 2 - .../add_conversation/select_jid_fragment.ui | 1 - main/data/call_widget.ui | 11 - main/data/chat_input.ui | 1 - main/data/contact_details_dialog.ui | 2 - .../item_metadata_header.ui | 2 - main/data/conversation_content_view/view.ui | 2 - main/data/conversation_item_widget.ui | 6 +- main/data/conversation_list_titlebar.ui | 34 +-- main/data/conversation_row.ui | 16 -- main/data/conversation_view.ui | 6 - .../actions}/dino-account-plus-symbolic.svg | 0 .../status/dino-changes-allowed-symbolic.svg | 10 - .../status/dino-changes-prevent-symbolic.svg | 67 ----- ...no-conversation-list-placeholder-arrow.svg | 0 .../ui}/dino-party-popper-symbolic.svg | 0 .../ui}/dino-qr-code-symbolic.svg | 0 main/data/manage_accounts/account_row.ui | 1 - main/data/manage_accounts/dialog.ui | 1 - main/data/menu_add.ui | 2 - main/data/search_autocomplete.ui | 1 - main/data/shortcuts.ui | 10 - main/data/theme.css | 10 +- main/data/unified_window_placeholder.ui | 1 - .../add_conference_dialog.vala | 53 ++-- .../add_groupchat_dialog.vala | 2 +- .../ui/add_conversation/conference_list.vala | 17 +- main/src/ui/add_conversation/list_row.vala | 6 +- main/src/ui/add_conversation/roster_list.vala | 10 - .../select_contact_dialog.vala | 4 +- .../add_conversation/select_jid_fragment.vala | 18 +- main/src/ui/application.vala | 13 +- main/src/ui/avatar_image.vala | 3 +- .../call_window/audio_settings_popover.vala | 44 ++-- main/src/ui/call_window/call_bottom_bar.vala | 57 ++-- .../call_connection_details_window.vala | 30 +-- .../call_window/call_encryption_button.vala | 28 +- main/src/ui/call_window/call_window.vala | 27 +- .../call_window/call_window_controller.vala | 9 +- .../ui/call_window/participant_widget.vala | 31 ++- .../call_window/video_settings_popover.vala | 24 +- main/src/ui/chat_input/chat_text_view.vala | 26 +- main/src/ui/chat_input/encryption_button.vala | 54 ++-- main/src/ui/chat_input/view.vala | 20 +- .../ui/contact_details/blocking_provider.vala | 2 +- main/src/ui/contact_details/dialog.vala | 50 ++-- .../contact_details/permissions_provider.vala | 2 +- .../ui/contact_details/settings_provider.vala | 4 +- .../conversation_item_factory.vala | 36 --- .../call_widget.vala | 16 +- .../chat_state_populator.vala | 8 +- .../conversation_item_skeleton.vala | 40 +-- .../conversation_view.vala | 9 +- .../date_separator_populator.vala | 8 +- .../file_default_widget.vala | 4 +- .../file_image_widget.vala | 4 +- .../file_widget.vala | 12 +- .../message_item_widget.vala | 229 ---------------- .../message_widget.vala | 2 +- .../subscription_notification.vala | 8 +- .../conversation_list_item_factory.vala | 245 ------------------ .../conversation_list_model.vala | 141 ---------- .../conversation_list_row.vala | 41 --- .../conversation_selector.vala | 50 ++-- .../conversation_selector_row.vala | 14 +- .../ui/conversation_titlebar/call_entry.vala | 1 - .../conversation_titlebar.vala | 14 +- main/src/ui/conversation_view.vala | 4 +- main/src/ui/conversation_view_controller.vala | 149 +++++------ main/src/ui/file_send_overlay.vala | 31 ++- main/src/ui/global_search.vala | 24 +- main/src/ui/main_window.vala | 4 +- main/src/ui/main_window_controller.vala | 7 - .../manage_accounts/add_account_dialog.vala | 44 ++-- main/src/ui/manage_accounts/dialog.vala | 33 +-- main/src/ui/occupant_menu/list.vala | 10 +- main/src/ui/occupant_menu/view.vala | 27 +- main/src/ui/util/data_forms.vala | 8 +- main/src/ui/util/label_hybrid.vala | 23 +- main/src/ui/util/scaling_image.vala | 14 - main/src/ui/util/sizing_bin.vala | 5 + plugins/omemo/data/contact_details_dialog.ui | 1 - .../omemo/src/ui/bad_messages_populator.vala | 4 +- .../omemo/src/ui/contact_details_dialog.vala | 18 +- .../src/ui/device_notification_populator.vala | 6 +- plugins/omemo/src/ui/manage_key_dialog.vala | 2 +- .../openpgp/src/contact_details_provider.vala | 2 +- plugins/rtp/src/video_widget.vala | 2 +- 91 files changed, 587 insertions(+), 1465 deletions(-) rename main/data/icons/{ => scalable/actions}/dino-account-plus-symbolic.svg (100%) delete mode 100644 main/data/icons/scalable/status/dino-changes-allowed-symbolic.svg delete mode 100644 main/data/icons/scalable/status/dino-changes-prevent-symbolic.svg rename main/data/icons/{ => scalable/ui}/dino-conversation-list-placeholder-arrow.svg (100%) rename main/data/icons/{ => scalable/ui}/dino-party-popper-symbolic.svg (100%) rename main/data/icons/{ => scalable/ui}/dino-qr-code-symbolic.svg (100%) delete mode 100644 main/src/ui/conversation_content/conversation_item_factory.vala delete mode 100644 main/src/ui/conversation_content_view/message_item_widget.vala delete mode 100644 main/src/ui/conversation_list/conversation_list_item_factory.vala delete mode 100644 main/src/ui/conversation_list/conversation_list_model.vala delete mode 100644 main/src/ui/conversation_list/conversation_list_row.vala diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt index 4a952396..dd12e120 100644 --- a/main/CMakeLists.txt +++ b/main/CMakeLists.txt @@ -13,16 +13,14 @@ find_packages(MAIN_PACKAGES REQUIRED ) set(RESOURCE_LIST - icons/dino-account-plus-symbolic.svg - icons/dino-conversation-list-placeholder-arrow.svg - icons/dino-qr-code-symbolic.svg - icons/dino-party-popper-symbolic.svg icons/dino-status-away.svg icons/dino-status-chat.svg icons/dino-status-dnd.svg icons/dino-status-online.svg icons/im.dino.Dino.svg + icons/scalable/actions/dino-account-plus-symbolic.svg + icons/scalable/apps/im.dino.Dino-symbolic.svg icons/scalable/devices/dino-device-desktop-symbolic.svg @@ -43,8 +41,6 @@ set(RESOURCE_LIST icons/scalable/mimetypes/dino-file-table-symbolic.svg icons/scalable/mimetypes/dino-file-video-symbolic.svg - icons/scalable/status/dino-changes-allowed-symbolic.svg - icons/scalable/status/dino-changes-prevent-symbolic.svg icons/scalable/status/dino-double-tick-symbolic.svg icons/scalable/status/dino-microphone-off-symbolic.svg icons/scalable/status/dino-microphone-symbolic.svg @@ -53,6 +49,10 @@ set(RESOURCE_LIST icons/scalable/status/dino-video-off-symbolic.svg icons/scalable/status/dino-video-symbolic.svg + icons/scalable/ui/dino-conversation-list-placeholder-arrow.svg + icons/scalable/ui/dino-qr-code-symbolic.svg + icons/scalable/ui/dino-party-popper-symbolic.svg + add_conversation/add_contact_dialog.ui add_conversation/add_groupchat_dialog.ui add_conversation/conference_details_fragment.ui @@ -103,11 +103,6 @@ compile_gresources( unset(MAIN_EXTRA_OPTIONS) unset(MAIN_EXTRA_PACKAGES) -# find_package(GDK3) -# if(GDK3_WITH_X11) -# set(MAIN_EXTRA_OPTIONS ${MAIN_EXTRA_OPTIONS} -D GDK3_WITH_X11) -# set(MAIN_EXTRA_PACKAGES ${MAIN_EXTRA_PACKAGES} gdk-x11-3.0) -# endif(GDK3_WITH_X11) set(MAIN_EXTRA_OPTIONS ${MAIN_EXTRA_OPTIONS} --vapidir=${CMAKE_CURRENT_SOURCE_DIR}/vapi) vala_precompile(MAIN_VALA_C @@ -226,16 +221,3 @@ install(FILES data/im.dino.Dino.desktop DESTINATION ${DESKTOP_FILE_INSTALL_DIR}) install(FILES data/im.dino.Dino.service DESTINATION ${SERVICE_FILE_INSTALL_DIR}) install(FILES data/icons/im.dino.Dino.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/scalable/apps) install(FILES data/icons/im.dino.Dino-symbolic.svg DESTINATION ${ICON_INSTALL_DIR}/hicolor/symbolic/apps) -install(FILES - data/icons/dino-status-away.svg - data/icons/dino-status-chat.svg - data/icons/dino-status-dnd.svg - data/icons/dino-status-online.svg - - data/icons/dino-changes-prevent-symbolic.svg - data/icons/dino-double-tick-symbolic.svg - data/icons/dino-qr-code-symbolic.svg - data/icons/dino-tick-symbolic.svg -DESTINATION - ${ICON_INSTALL_DIR}/hicolor/scalable/status -) diff --git a/main/data/add_conversation/add_contact_dialog.ui b/main/data/add_conversation/add_contact_dialog.ui index 1abc9a7a..2a9884b6 100644 --- a/main/data/add_conversation/add_contact_dialog.ui +++ b/main/data/add_conversation/add_contact_dialog.ui @@ -49,7 +49,6 @@ True 200 - True 1 0 diff --git a/main/data/add_conversation/add_groupchat_dialog.ui b/main/data/add_conversation/add_groupchat_dialog.ui index 5acd6891..468051f5 100644 --- a/main/data/add_conversation/add_groupchat_dialog.ui +++ b/main/data/add_conversation/add_groupchat_dialog.ui @@ -54,7 +54,6 @@ True 200 - True diff --git a/main/data/add_conversation/conference_details_fragment.ui b/main/data/add_conversation/conference_details_fragment.ui index 0fdf2b8e..158d35c0 100644 --- a/main/data/add_conversation/conference_details_fragment.ui +++ b/main/data/add_conversation/conference_details_fragment.ui @@ -2,7 +2,6 @@