<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkPopover" id="_share_popover">
    <property name="child">
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <property name="spacing">12</property>
        <child>
          <object class="GtkLabel" id="_share_instructions">
            <property name="justify">center</property>
            <property name="wrap">1</property>
            <property name="max-width-chars">24</property>
            <style>
              <class name="dimmed"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkImage" id="_qr_code_image">
            <property name="halign">center</property>
            <property name="pixel-size">200</property>
          </object>
        </child>
        <child>
          <object class="GtkSeparator"/>
        </child>
        <child>
          <object class="GtkBox">
            <property name="spacing">12</property>
            <child>
              <object class="GtkLabel" id="_jid_label">
                <property name="hexpand">1</property>
                <property name="justify">center</property>
                <property name="wrap">1</property>
                <property name="wrap-mode">word-char</property>
                <property name="max-width-chars">30</property>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="_copy_jid_button">
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="tooltip-text" translatable="yes">Copy to clipboard</property>
                <property name="valign">center</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">lucide-copy-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <style>
          <class name="p-12"/>
        </style>
      </object>
    </property>
  </object>
  <template class="ChatBanner" parent="GtkBox">
    <property name="hexpand">1</property>
    <child>
      <object class="GtkBox">
        <property name="spacing">12</property>
        <child>
          <object class="GtkMenuButton" id="_avatar_button">
            <style>
              <class name="flat"/>
              <class name="avatar-button"/>
            </style>
            <child>
              <object class="GtkImage" id="_avatar_image" />
            </child>
          </object>
        </child>
        <child>
          <object class="GtkBox">
            <property name="hexpand">1</property>
            <property name="spacing">12</property>
            <child>
              <object class="GtkBox">
                <property name="hexpand">1</property>
                <property name="valign">center</property>
                <property name="orientation">vertical</property>
                <child>
                  <object class="GtkLabel" id="_name_label">
                    <property name="halign">start</property>
                    <property name="hexpand">1</property>
                    <property name="ellipsize">end</property>
                    <property name="single-line-mode">1</property>
                    <property name="xalign">0</property>
                    <style>
                      <class name="title-3"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkBox">
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkImage" id="_phone_image">
                        <property name="visible">0</property>
                        <property name="tooltip-text" translatable="yes">The last message was written on a mobile client</property>
                        <property name="halign">start</property>
                        <property name="margin-end">4</property>
                        <property name="icon-name">lucide-smartphone-symbolic</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkImage" id="_robot_image">
                        <property name="visible">0</property>
                        <property name="tooltip-text" translatable="yes">This contact is a bot</property>
                        <property name="halign">start</property>
                        <property name="margin-end">4</property>
                        <property name="icon-name">lucide-bot-symbolic</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel" id="_description_label">
                        <property name="hexpand">1</property>
                        <property name="ellipsize">end</property>
                        <property name="single-line-mode">1</property>
                        <property name="max-width-chars">30</property>
                        <property name="xalign">0</property>
                        <style>
                          <class name="dimmed"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkBox" id="_additional_items_box">
                <property name="margin-end">6</property>
                <property name="spacing">12</property>
                <child>
                  <placeholder/>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkButton">
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="tooltip-text" translatable="yes">Search…</property>
                <property name="valign">center</property>
                <property name="action-name">win.search-history</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">lucide-search-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="_contact_info_button">
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="tooltip-text" translatable="yes">Chat Details and Settings</property>
                <property name="valign">center</property>
                <property name="action-name">win.show-contact-info</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">lucide-user-cog-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <style>
                  <class name="linked"/>
                </style>
                <child>
                  <object class="GtkMenuButton" id="_share_menu_button">
                    <property name="sensitive">0</property>
                    <property name="focusable">1</property>
                    <property name="focus-on-click">0</property>
                    <property name="receives-default">1</property>
                    <property name="valign">center</property>
                    <property name="popover">_share_popover</property>
                    <child>
                      <object class="GtkImage">
                        <property name="icon-name">lucide-share-2-symbolic</property>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="_muc_invite_button">
                    <property name="focusable">1</property>
                    <property name="receives-default">1</property>
                    <property name="action-name">win.muc-invite</property>
                    <property name="tooltip-text" translatable="yes">Invite to this chat…</property>
                    <property name="valign">center</property>
                    <child>
                      <object class="GtkImage">
                        <property name="icon-name">lucide-user-plus-symbolic</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkButton" id="_toggle_roster_button">
                <property name="visible">0</property>
                <property name="focusable">1</property>
                <property name="receives-default">1</property>
                <property name="tooltip-text" translatable="yes">Toggle participants list</property>
                <property name="valign">center</property>
                <child>
                  <object class="GtkBox">
                    <property name="spacing">3</property>
                    <child>
                      <object class="GtkImage">
                        <property name="icon-name">lucide-users-symbolic</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkImage" id="_toggle_roster_image">
                        <property name="icon-name">lucide-chevron-left-symbolic</property>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkSeparator">
                <property name="margin-top">12</property>
                <property name="margin-bottom">12</property>
              </object>
            </child>
            <child>
              <object class="GtkMenuButton" id="_chat_menu_button">
                <property name="focusable">1</property>
                <property name="focus-on-click">0</property>
                <property name="receives-default">1</property>
                <property name="valign">center</property>
                <property name="margin-end">6</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">lucide-ellipsis-vertical-symbolic</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <style>
          <class name="gajim-banner"/>
        </style>
      </object>
    </child>
  </template>
</interface>
