<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="ChattyMaChatInfo" parent="HdyPreferencesPage">
    <property name="visible">1</property>

    <child>
      <object class="HdyPreferencesGroup">
        <property name="visible">1</property>

        <child>
          <object class="GtkButton" id="avatar_button">
            <property name="visible" bind-source="avatar" bind-property="visible"
                      bind-flags="sync-create"/>
            <property name="hexpand">1</property>
            <property name="halign">center</property>
            <property name="can-focus">0</property>
            <property name="sensitive">0</property>
            <property name="focus-on-click">0</property>
            <property name="receives_default">0</property>
            <property name="margin-bottom">24</property>
            <child>
              <object class="ChattyAvatar" id="avatar">
                <property name="visible">1</property>
                <property name="size">96</property>
              </object>
            </child>
          </object>
        </child>

      </object>
    </child>

    <child>
      <object class="HdyPreferencesGroup">
        <property name="visible">1</property>
        <child>
          <object class="GtkGrid">
            <property name="visible">1</property>
            <property name="hexpand">1</property>
            <property name="valign">start</property>
            <property name="margin-bottom">24</property>
            <property name="row-spacing">6</property>
            <property name="column-spacing">6</property>
            <property name="orientation">vertical</property>

            <!-- User Alias -->
            <child>
              <object class="GtkLabel">
                <property name="visible" bind-source="name_label" bind-property="visible"
                          bind-flags="sync-create"/>
                <property name="xalign">1</property>
                <property name="label" translatable="no">Chat</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="name_label">
                <property name="visible">1</property>
                <property name="expand">1</property>
                <property name="halign">start</property>
                <property name="ellipsize">end</property>
                <property name="justify">left</property>
                <property name="selectable">1</property>
              </object>
              <packing>
                <property name="left-attach">1</property>
                <property name="top-attach">0</property>
              </packing>
            </child>

            <!-- User ID -->
            <child>
              <object class="GtkLabel">
                <property name="visible" bind-source="matrix_id_label" bind-property="visible"
                          bind-flags="sync-create"/>
                <property name="xalign">1</property>
                <property name="label" translatable="yes">Matrix ID</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="matrix_id_label">
                <property name="visible">1</property>
                <property name="expand">1</property>
                <property name="halign">start</property>
                <property name="ellipsize">end</property>
                <property name="justify">left</property>
                <property name="selectable">1</property>
              </object>
              <packing>
                <property name="left-attach">1</property>
                <property name="top-attach">1</property>
              </packing>
            </child>

          </object>
        </child>
      </object>
    </child>

  </template>
  <object class="GtkFileChooserDialog" id="avatar_chooser_dialog">
    <property name="modal">1</property>
    <property name="filter">image_filter</property>
    <property name="title" translatable="yes">Set Avatar</property>
    <signal name="delete-event" handler="gtk_widget_hide_on_delete"/>
    <child type="action">
      <object class="GtkButton" id="avatar_cancel_button">
        <property name="visible">1</property>
        <property name="label" translatable="yes">Cancel</property>
      </object>
    </child>
    <child type="action">
      <object class="GtkButton" id="avatar_apply_button">
        <property name="visible">1</property>
        <property name="can-default">1</property>
        <property name="label" translatable="yes">Open</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="cancel">avatar_cancel_button</action-widget>
      <action-widget response="apply" default="true">avatar_apply_button</action-widget>
    </action-widgets>
  </object>

  <object class="GtkFileFilter" id="image_filter">
    <mime-types>
      <mime-type>image/*</mime-type>
    </mime-types>
  </object>

  <object class="GtkTextBuffer" id="topic_buffer"/>

</interface>
