<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkBox" id="box">
    <property name="orientation">vertical</property>
    <property name="spacing">6</property>
    <child>
      <object class="GtkBox" id="chat_state_box">
        <property name="orientation">vertical</property>
        <child>
          <placeholder/>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkBox" id="reply_box">
        <property name="orientation">vertical</property>
        <child>
          <placeholder/>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkBox" id="state_box">
        <property name="visible">0</property>
        <property name="spacing">12</property>
        <child>
          <object class="GtkImage" id="state_box_image"/>
        </child>
        <child>
          <object class="GtkLabel" id="state_box_label">
            <property name="ellipsize">end</property>
            <property name="xalign">0</property>
            <style>
              <class name="small-label"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkMenuButton" id="visitor_menu_button">
            <property name="focusable">1</property>
            <property name="focus-on-click">0</property>
            <property name="receives-default">1</property>
            <property name="tooltip-text" translatable="yes">What does this mean?</property>
            <property name="valign">center</property>
            <property name="margin-end">6</property>
            <property name="popover">visitor_popover</property>
            <child>
              <object class="GtkImage">
                <property name="icon-name">dialog-information-symbolic</property>
              </object>
            </child>
            <style>
              <class name="suggested-action"/>
            </style>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkBox" id="edit_box">
        <property name="visible">0</property>
        <property name="spacing">12</property>
        <child>
          <object class="GtkImage" id="edit_box_image">
            <property name="icon-name">document-edit-symbolic</property>
            <style>
              <class name="dim-label"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkLabel">
            <property name="label" translatable="yes">Edit your message (Esc to cancel)…</property>
            <style>
              <class name="small-label"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="cancel_correction_button">
            <property name="focusable">1</property>
            <property name="receives-default">1</property>
            <property name="tooltip-text" translatable="yes">Cancel</property>
            <child>
              <object class="GtkImage">
                <property name="icon-name">window-close-symbolic</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
    <child>
      <object class="GtkBox" id="action_box">
        <property name="hexpand">1</property>
        <property name="spacing">2</property>
        <child>
          <object class="GtkMenuButton" id="emoticons_button">
            <property name="valign">center</property>
            <property name="focusable">1</property>
            <property name="receives-default">1</property>
            <property name="tooltip-text" translatable="yes">Show a list of emojis</property>
            <child>
              <object class="GtkImage">
                <property name="icon-name">face-smile-symbolic</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkMenuButton" id="formattings_button">
            <property name="valign">center</property>
            <property name="focusable">1</property>
            <property name="focus-on-click">0</property>
            <property name="receives-default">1</property>
            <property name="tooltip-text" translatable="yes">Format your message</property>
            <property name="direction">up</property>
            <child>
              <object class="GtkImage">
                <property name="icon-name">format-text-bold-symbolic</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkOverlay" id="input_wrapper">
            <property name="child">
              <object class="GtkScrolledWindow" id="input_scrolled">
                <property name="hexpand">1</property>
                <property name="focusable">1</property>
                <property name="margin-start">3</property>
                <property name="margin-end">3</property>
                <property name="hscrollbar-policy">external</property>
                <property name="overlay-scrolling">0</property>
                <property name="max-content-height">100</property>
                <property name="propagate-natural-height">1</property>
                <child>
                  <placeholder/>
                </child>
                <style>
                  <class name="message-input-border"/>
                  <class name="scrolled-no-border"/>
                  <class name="no-scroll-indicator"/>
                  <class name="scrollbar-style"/>
                  <class name="one-line-scrollbar"/>
                </style>
              </object>
            </property>
            <child type="overlay">
              <object class="GtkBox" id="input_overlay">
                <property name="visible">0</property>
                <property name="margin-start">12</property>
                <property name="spacing">6</property>
                <child>
                  <object class="GtkSpinner">
                    <property name="spinning">1</property>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="input_overlay_label">
                    <property name="halign">start</property>
                  </object>
                </child>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="send_message_button">
            <property name="valign">center</property>
            <property name="halign">center</property>
            <property name="visible">0</property>
            <property name="focusable">1</property>
            <property name="focus-on-click">0</property>
            <property name="receives-default">1</property>
            <property name="tooltip-text" translatable="yes">Send Message</property>
            <property name="action-name">win.send-message</property>
            <child>
              <object class="GtkImage">
                <property name="icon-name">gajim-send-message-symbolic</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="sendfile_button">
            <property name="valign">center</property>
            <property name="halign">center</property>
            <property name="focusable">1</property>
            <property name="focus-on-click">0</property>
            <property name="receives-default">1</property>
            <property name="action-name">win.send-file</property>
            <property name="action-target">[&apos;&apos;]</property>
            <child>
              <object class="GtkImage">
                <property name="icon-name">mail-attachment-symbolic</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkMenuButton" id="encryption_menu_button">
            <property name="valign">center</property>
            <property name="focusable">1</property>
            <property name="receives-default">1</property>
            <child>
              <object class="GtkImage" id="encryption_image">
                <property name="icon-name">channel-insecure-symbolic</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="encryption_details_button">
            <property name="valign">center</property>
            <property name="halign">center</property>
            <property name="visible">0</property>
            <property name="focusable">1</property>
            <property name="focus-on-click">0</property>
            <property name="receives-default">1</property>
            <child>
              <object class="GtkImage" id="encryption_details_image"/>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
  <object class="GtkPopover" id="visitor_popover">
    <property name="child">
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <property name="spacing">6</property>
        <child>
          <object class="GtkLabel">
            <property name="label" translatable="yes">You are a visitor</property>
            <style>
              <class name="bold"/>
            </style>
          </object>
        </child>
        <child>
          <object class="GtkLabel">
            <property name="label" translatable="yes">In order to write messages in this chat, you need to request voice first.
A moderator will process your request.</property>
            <property name="wrap">1</property>
            <property name="max-width-chars">30</property>
          </object>
        </child>
        <child>
          <object class="GtkButton" id="request_voice_button">
            <property name="label" translatable="yes">_Request</property>
            <property name="focusable">1</property>
            <property name="halign">center</property>
            <property name="use-underline">1</property>
            <style>
              <class name="suggested-action"/>
            </style>
          </object>
        </child>
        <style>
          <class name="p-12"/>
        </style>
      </object>
    </property>
  </object>
</interface>
