diff options
| author | Marvin W <git@larma.de> | 2026-10-04 14:42:16 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-10-23 16:59:59 +0200 |
| commit | dba577f39c489b9db29960f2bf5cc78ac4f29d7b (patch) | |
| tree | a8354c9fc328c1442d5e8c5c2adec4b428c92f44 /main/data | |
| parent | 2413442905e31f34cb0f77c9167003b3725760fe (diff) | |
Move OMEMO, OpenPGP and RTP plugins into main/libdino
Diffstat (limited to 'main/data')
| -rw-r--r-- | main/data/contact_details_dialog.ui | 251 | ||||
| -rw-r--r-- | main/data/encryption_preferences_entry.ui | 69 | ||||
| -rw-r--r-- | main/data/gresource.xml | 3 | ||||
| -rw-r--r-- | main/data/manage_key_dialog.ui | 153 |
4 files changed, 476 insertions, 0 deletions
diff --git a/main/data/contact_details_dialog.ui b/main/data/contact_details_dialog.ui new file mode 100644 index 00000000..6c357175 --- /dev/null +++ b/main/data/contact_details_dialog.ui @@ -0,0 +1,251 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <template class="DinoPluginsOmemoContactDetailsDialog"> + <property name="modal">True</property> + <property name="resizable">False</property> + <child internal-child="content_area"> + <object class="GtkBox"> + <property name="margin-start">12</property> + <property name="margin-end">12</property> + <property name="margin-top">12</property> + <property name="margin-bottom">12</property> + <property name="spacing">12</property> + <child> + <object class="GtkFrame"> + <property name="child"> + <object class="GtkListBox"> + <property name="selection-mode">none</property> + <child> + <object class="GtkListBoxRow"> + <property name="activatable">0</property> + <property name="child"> + <object class="GtkBox"> + <property name="margin-start">20</property> + <property name="margin-end">20</property> + <property name="margin-top">14</property> + <property name="margin-bottom">14</property> + <property name="spacing">40</property> + <child> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <property name="hexpand">1</property> + <child> + <object class="GtkLabel" id="automatically_accept_new_label"> + <property name="halign">start</property> + <attributes> + <attribute name="scale" value="1.1"></attribute> + </attributes> + </object> + </child> + <child> + <object class="GtkLabel" id="automatically_accept_new_descr"> + <property name="max_width_chars">1</property> + <property name="hexpand">1</property> + <property name="vexpand">1</property> + <property name="xalign">0</property> + <property name="wrap">1</property> + <attributes> + <attribute name="scale" value="0.8"></attribute> + </attributes> + <style> + <class name="dim-label"/> + </style> + </object> + </child> + </object> + </child> + <child> + <object class="GtkSwitch" id="auto_accept_switch"> + <property name="halign">end</property> + <property name="valign">center</property> + </object> + </child> + </object> + </property> + </object> + </child> + </object> + </property> + </object> + </child> + <child> + <object class="GtkBox" id="own_fingerprint_container"> + <property name="visible">0</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child> + <object class="GtkLabel" id="own_key_label"> + <property name="halign">start</property> + <attributes> + <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="child"> + <object class="GtkListBox"> + <property name="selection-mode">none</property> + <child> + <object class="GtkListBoxRow"> + <property name="activatable">0</property> + <property name="hexpand">1</property> + <property name="child"> + <object class="GtkBox"> + <property name="margin-start">20</property> + <property name="margin-end">20</property> + <property name="margin-top">14</property> + <property name="spacing">40</property> + <property name="margin-bottom">14</property> + <property name="hexpand">1</property> + <child> + <object class="GtkLabel" id="own_fingerprint_label"> + <property name="halign">start</property> + <property name="justify">right</property> + <property name="hexpand">1</property> + </object> + </child> + <child> + <object class="GtkBox"> + <property name="hexpand">1</property> + <property name="spacing">5</property> + <child> + <object class="GtkMenuButton" id="show_qrcode_button"> + <property name="icon-name">dino-qr-code-symbolic</property> + <property name="halign">start</property> + <property name="hexpand">1</property> + </object> + </child> + <child> + <object class="GtkButton" id="copy_button"> + <property name="halign">end</property> + <property name="hexpand">1</property> + <child> + <object class="GtkImage"> + <property name="icon-size">normal</property> + <property name="icon-name">dino-edit-copy-symbolic</property> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </property> + </object> + </child> + </object> + </property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkBox" id="new_keys_container"> + <property name="visible">0</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child> + <object class="GtkLabel" id="new_keys_label"> + <property name="halign">start</property> + <attributes> + <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="child"> + <object class="GtkScrolledWindow"> + <property name="hscrollbar_policy">never</property> + <property name="propagate_natural_height">1</property> + <property name="child"> + <object class="GtkListBox" id="new_keys_listbox"> + <property name="selection-mode">none</property> + </object> + </property> + </object> + </property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkBox" id="keys_container"> + <property name="visible">0</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child> + <object class="GtkLabel" id="associated_keys_label"> + <property name="halign">start</property> + <attributes> + <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="child"> + <object class="GtkScrolledWindow"> + <property name="hscrollbar_policy">never</property> + <property name="propagate_natural_height">1</property> + <property name="child"> + <object class="GtkListBox" id="keys_listbox"> + <property name="selection-mode">none</property> + </object> + </property> + </object> + </property> + </object> + </child> + </object> + </child> + <child> + <object class="GtkExpander" id="inactive_keys_expander"> + <property name="visible">0</property> + <child type="label"> + <object class="GtkLabel" id="inactive_expander_label"> + <attributes> + <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="margin-top">2</property> + <property name="child"> + <object class="GtkScrolledWindow"> + <property name="hscrollbar_policy">never</property> + <property name="propagate_natural_height">1</property> + <property name="child"> + <object class="GtkListBox" id="inactive_keys_listbox"> + <property name="selection-mode">none</property> + </object> + </property> + </object> + </property> + </object> + </child> + </object> + </child> + </object> + </child> + </template> + <object class="GtkPopover" id="qrcode_popover"> + <property name="position">left</property> + <property name="child"> + <object class="GtkBox"> + <property name="margin-start">10</property> + <property name="margin-end">10</property> + <property name="margin-top">10</property> + <property name="margin-bottom">10</property> + <child> + <object class="GtkPicture" id="qrcode_picture"> + <property name="can-shrink">False</property> + </object> + </child> + </object> + </property> + </object> +</interface> diff --git a/main/data/encryption_preferences_entry.ui b/main/data/encryption_preferences_entry.ui new file mode 100644 index 00000000..1aa1a541 --- /dev/null +++ b/main/data/encryption_preferences_entry.ui @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <template class="DinoPluginsOmemoOmemoPreferencesWidget"> + <child> + <object class="AdwPreferencesGroup" id="keys_preferences_group"> + <property name="title">OMEMO</property> + <property name="description" translatable="yes">Each device has its own OMEMO key. Messages can only be decrypted by a device if they are encrypted to its key. Messages are only encrypted to accepted devices.</property> + <property name="margin-bottom">12</property> + </object> + </child> + <child> + <object class="AdwPreferencesGroup"> + <child> + <object class="AdwSwitchRow" id="encrypt_by_default_row" /> + </child> + <child> + <object class="AdwSwitchRow" id="automatically_accept_new_row" /> + </child> + </object> + </child> + <child> + <object class="GtkBox" id="new_keys_container"> + <property name="visible">0</property> + <property name="orientation">vertical</property> + <property name="spacing">2</property> + <child> + <object class="GtkLabel" id="new_keys_label"> + <property name="halign">start</property> + <attributes> + <attribute name="weight" value="PANGO_WEIGHT_BOLD"></attribute> + </attributes> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="child"> + <object class="GtkScrolledWindow"> + <property name="hscrollbar_policy">never</property> + <property name="propagate_natural_height">1</property> + <property name="child"> + <object class="GtkListBox" id="new_keys_listbox"> + <property name="selection-mode">none</property> + </object> + </property> + </object> + </property> + </object> + </child> + </object> + </child> + </template> + <object class="GtkPopover" id="qrcode_popover"> + <property name="position">left</property> + <property name="child"> + <object class="GtkBox"> + <property name="margin-start">10</property> + <property name="margin-end">10</property> + <property name="margin-top">10</property> + <property name="margin-bottom">10</property> + <child> + <object class="GtkPicture" id="qrcode_picture"> + <property name="can-shrink">False</property> + </object> + </child> + </object> + </property> + </object> +</interface> diff --git a/main/data/gresource.xml b/main/data/gresource.xml index 2e38153b..86716ce9 100644 --- a/main/data/gresource.xml +++ b/main/data/gresource.xml @@ -9,6 +9,7 @@ <file>add_conversation/select_jid_fragment.ui</file> <file>call_widget.ui</file> <file>chat_input.ui</file> + <file>contact_details_dialog.ui</file> <file>conversation_content_view/item_metadata_header.ui</file> <file>conversation_content_view/view.ui</file> <file>conversation_details.css</file> @@ -17,6 +18,7 @@ <file>conversation_row.ui</file> <file>conversation_view.ui</file> <file>dino-conversation-list-placeholder-arrow.svg</file> + <file>encryption_preferences_entry.ui</file> <file>file_default_widget.ui</file> <file>file_input_widget.ui</file> <file>file_send_overlay.ui</file> @@ -98,6 +100,7 @@ <file>join_room_dialog2.ui</file> <file>main_window.ui</file> <file>main_window_placeholder.ui</file> + <file>manage_key_dialog.ui</file> <file>menu_add.ui</file> <file>menu_app.ui</file> <file>menu_conversation.ui</file> diff --git a/main/data/manage_key_dialog.ui b/main/data/manage_key_dialog.ui new file mode 100644 index 00000000..37f158da --- /dev/null +++ b/main/data/manage_key_dialog.ui @@ -0,0 +1,153 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <template class="DinoPluginsOmemoManageKeyDialog"> + <property name="modal">True</property> + <property name="resizable">False</property> + <child type="titlebar"> + <object class="GtkHeaderBar" id="headerbar"> + <property name="show_title_buttons">0</property> + <child> + <object class="GtkButton" id="cancel_button"/> + </child> + <child type="end"> + <object class="GtkButton" id="ok_button"> + <property name="sensitive">0</property> + <style> + <class name="suggested-action"/> + </style> + </object> + </child> + </object> + </child> + <child internal-child="content_area"> + <object class="GtkBox"> + <child> + <object class="GtkStack" id="manage_stack"> + <property name="transition-type">slide-left-right</property> + <child> + <object class="GtkStackPage"> + <property name="name">main</property> + <property name="child"> + <object class="GtkBox" id="main_screen"> + <property name="margin-start">12</property> + <property name="margin-end">12</property> + <property name="margin-top">12</property> + <property name="margin-bottom">12</property> + <property name="spacing">12</property> + <property name="orientation">vertical</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel" id="main_desc_label"> + <property name="wrap">1</property> + <property name="xalign">0</property> + <property name="max-width-chars">1</property> + </object> + </child> + <child> + <object class="GtkFrame"> + <property name="child"> + <object class="GtkListBox" id="main_action_list"> + <property name="selection-mode">none</property> + </object> + </property> + </object> + </child> + </object> + </property> + </object> + </child> + <child> + <object class="GtkStackPage"> + <property name="name">verify</property> + <property name="child"> + <object class="GtkBox" id="verify_screen"> + <property name="margin-start">12</property> + <property name="margin-end">12</property> + <property name="margin-top">12</property> + <property name="margin-bottom">12</property> + <property name="spacing">12</property> + <property name="orientation">vertical</property> + <property name="valign">center</property> + <child> + <object class="GtkLabel" id="compare_fingerprint_label"> + <property name="wrap">1</property> + <property name="max-width-chars">45</property> + </object> + </child> + <child> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <property name="margin-start">12</property> + <property name="margin-end">12</property> + <property name="spacing">12</property> + <property name="hexpand">0</property> + <property name="halign">center</property> + <child> + <object class="GtkLabel" id="verify_label"> + <property name="margin-top">12</property> + <property name="margin-bottom">12</property> + <property name="justify">right</property> + </object> + </child> + <child> + <object class="GtkButton" id="verify_no_button"> + <property name="hexpand">1</property> + </object> + </child> + <child> + <object class="GtkButton" id="verify_yes_button"> + <property name="hexpand">1</property> + </object> + </child> + </object> + </child> + </object> + </property> + </object> + </child> + <child> + <object class="GtkStackPage"> + <property name="name">confirm</property> + <property name="child"> + <object class="GtkBox" id="confirm_screen"> + <property name="margin-start">12</property> + <property name="margin-end">12</property> + <property name="margin-top">12</property> + <property name="margin-bottom">12</property> + <property name="spacing">12</property> + <property name="orientation">vertical</property> + <property name="valign">center</property> + <child> + <object class="GtkImage" id="confirm_image"/> + </child> + <child> + <object class="GtkLabel" id="confirm_title_label"> + <attributes> + <attribute name="scale" value="1.1"></attribute> + </attributes> + </object> + </child> + <child> + <object class="GtkLabel" id="confirm_desc_label"> + <property name="justify">center</property> + <property name="wrap">1</property> + <property name="max-width-chars">40</property> + <attributes> + <attribute name="scale" value="0.8"></attribute> + </attributes> + <style> + <class name="dim-label"/> + </style> + </object> + </child> + </object> + </property> + </object> + </child> + </object> + </child> + </object> + </child> + </template> +</interface> |
