<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="UserPage" parent="AdwNavigationPage">
    <style>
      <class name="form-page"/>
    </style>
    <property name="child">
      <object class="AdwToolbarView">
        <child type="top">
          <object class="AdwHeaderBar"/>
        </child>
        <property name="content">
          <object class="GtkScrolledWindow" id="scrolled_window">
            <property name="hscrollbar-policy">never</property>
            <property name="propagate-natural-height">True</property>
            <property name="vexpand">True</property>
            <property name="child">
              <object class="AdwClamp">
                <property name="maximum-size">444</property>
                <property name="child">
                  <object class="GtkBox" id="box">
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="ComponentsAvatar" id="avatar">
                        <property name="size">128</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <property name="spacing">6</property>
                        <child>
                          <object class="GtkLabel">
                            <property name="wrap">true</property>
                            <property name="wrap-mode">word-char</property>
                            <binding name="label">
                              <lookup name="display-name">
                                <lookup name="user">UserPage</lookup>
                              </lookup>
                            </binding>
                            <style>
                              <class name="title-1"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel" id="user_id">
                            <property name="selectable">true</property>
                            <property name="wrap">true</property>
                            <property name="wrap-mode">word-char</property>
                            <binding name="label">
                              <lookup name="user-id">
                                <lookup name="user">UserPage</lookup>
                              </lookup>
                            </binding>
                            <style>
                              <class name="dim-label"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="SpinnerButton" id="direct_chat_button">
                        <style>
                          <class name="row"/>
                        </style>
                        <property name="visible">false</property>
                        <property name="loading">true</property>
                        <property name="action-name">user-page.open-direct-chat</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <property name="spacing">12</property>
                        <child>
                          <object class="GtkLabel">
                            <property name="label" translatable="yes">Security</property>
                            <property name="ellipsize">end</property>
                            <property name="xalign">0.0</property>
                            <style>
                              <class name="heading"/>
                              <class name="h4"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkListBox">
                            <style>
                              <class name="boxed-list"/>
                            </style>
                            <child>
                              <object class="AdwActionRow" id="verified_row">
                                <property name="activatable-widget">verify_button</property>
                                <child>
                                  <object class="GtkStack" id="verified_stack">
                                    <property name="transition-type">crossfade</property>
                                    <property name="valign">center</property>
                                    <child>
                                      <object class="GtkStackPage">
                                        <property name="name">button</property>
                                        <property name="child">
                                          <object class="SpinnerButton" id="verify_button">
                                            <property name="sensitive">False</property>
                                            <property name="label" translatable="yes">Verify</property>
                                            <property name="action-name">user-page.verify-user</property>
                                          </object>
                                        </property>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="GtkStackPage">
                                        <property name="name">icon</property>
                                        <property name="child">
                                          <object class="GtkImage">
                                            <property name="icon-name">verified-symbolic</property>
                                            <property name="accessible-role">presentation</property>
                                            <property name="halign">end</property>
                                            <property name="margin-end">6</property>
                                            <style>
                                              <class name="success"/>
                                            </style>
                                          </object>
                                        </property>
                                      </object>
                                    </child>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </property>
          </object>
        </property>
      </object>
    </property>
  </template>
</interface>
