<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkPopover" id="privacy_popover">
    <property name="child">
      <object class="GtkGrid">
        <property name="row-spacing">6</property>
        <property name="column-spacing">12</property>
        <child>
          <object class="GtkLabel">
            <property name="label" translatable="yes">Privacy</property>
            <style>
              <class name="bold"/>
            </style>
            <layout>
              <property name="column">0</property>
              <property name="row">0</property>
              <property name="column-span">3</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkLabel">
            <property name="halign">end</property>
            <property name="label" translatable="yes">Contact Infos</property>
            <layout>
              <property name="column">0</property>
              <property name="row">3</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkLabel">
            <property name="halign">end</property>
            <property name="label" translatable="yes">Picture and Name</property>
            <layout>
              <property name="column">0</property>
              <property name="row">2</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkLabel">
            <property name="margin-bottom">6</property>
            <property name="label" translatable="yes">Make your profile visible for everyone or just for your contacts.</property>
            <property name="wrap">1</property>
            <property name="max-width-chars">42</property>
            <layout>
              <property name="column">0</property>
              <property name="row">1</property>
              <property name="column-span">3</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkSwitch" id="avatar_nick_access">
            <property name="focusable">1</property>
            <property name="halign">start</property>
            <layout>
              <property name="column">2</property>
              <property name="row">2</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkSwitch" id="vcard_access">
            <property name="focusable">1</property>
            <property name="halign">start</property>
            <layout>
              <property name="column">2</property>
              <property name="row">3</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkLabel" id="avatar_nick_access_label">
            <property name="halign">end</property>
            <property name="label" translatable="yes">Contacts</property>
            <layout>
              <property name="column">1</property>
              <property name="row">2</property>
            </layout>
          </object>
        </child>
        <child>
          <object class="GtkLabel" id="vcard_access_label">
            <property name="halign">end</property>
            <property name="label" translatable="yes">Contacts</property>
            <layout>
              <property name="column">1</property>
              <property name="row">3</property>
            </layout>
          </object>
        </child>
        <style>
          <class name="p-6"/>
        </style>
      </object>
    </property>
  </object>
  <object class="GtkStack" id="profile_stack">
    <property name="hexpand">1</property>
    <child>
      <object class="GtkStackPage">
        <property name="name">spinner</property>
        <property name="child">
          <object class="GtkSpinner" id="spinner">
            <property name="halign">center</property>
            <property name="spinning">1</property>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">profile</property>
        <property name="child">
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkScrolledWindow" id="scrolled">
                <property name="vexpand">1</property>
                <property name="focusable">1</property>
                <property name="overlay-scrolling">0</property>
                <property name="child">
                  <object class="GtkViewport">
                    <property name="child">
                      <object class="GtkBox" id="profile_box">
                        <property name="orientation">vertical</property>
                        <property name="spacing">6</property>
                        <child>
                          <object class="GtkOverlay" id="avatar_overlay">
                            <property name="width-request">100</property>
                            <property name="height-request">100</property>
                            <property name="halign">center</property>
                            <property name="child">
                              <object class="GtkImage" id="avatar_image">
                                <property name="icon-name">avatar-default-symbolic</property>
                              </object>
                            </property>
                            <child type="overlay">
                              <object class="GtkButton" id="remove_avatar_button">
                                <property name="visible">0</property>
                                <property name="focusable">1</property>
                                <property name="tooltip-text" translatable="yes">Remove your profile picture</property>
                                <property name="halign">start</property>
                                <property name="valign">end</property>
                                <child>
                                  <object class="GtkImage">
                                    <property name="icon-name">user-trash-symbolic</property>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                        <child>
                          <object class="GtkEntry" id="nickname_entry">
                            <property name="name">NicknameEntry</property>
                            <property name="width-request">250</property>
                            <property name="sensitive">0</property>
                            <property name="focusable">1</property>
                            <property name="tooltip-text" translatable="yes">Enter your nickname. This is how your name is displayed to your contacts.</property>
                            <property name="halign">center</property>
                            <property name="xalign">0.5</property>
                            <property name="placeholder-text" translatable="yes">Nickname</property>
                          </object>
                        </child>
                        <style>
                          <class name="p-18"/>
                        </style>
                      </object>
                    </property>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkActionBar">
                <child>
                  <object class="GtkButton" id="cancel_button">
                    <property name="visible">0</property>
                    <property name="label" translatable="yes">_Cancel</property>
                    <property name="use-underline">1</property>
                  </object>
                </child>
                <child type="center">
                  <object class="GtkMenuButton" id="add_entry_button">
                    <property name="visible">0</property>
                    <child>
                      <object class="GtkBox">
                        <property name="spacing">6</property>
                        <child>
                          <object class="GtkImage">
                            <property name="icon-name">feather-plus-symbolic</property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel">
                            <property name="label" translatable="yes">Add Entry</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
                <child type="end">
                  <object class="GtkBox">
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkMenuButton" id="privacy_button">
                        <property name="visible">0</property>
                        <property name="tooltip-text" translatable="yes">Privacy</property>
                        <property name="direction">up</property>
                        <property name="popover">privacy_popover</property>
                        <child>
                          <object class="GtkImage">
                            <property name="icon-name">feather-eye-symbolic</property>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="save_button">
                        <property name="visible">0</property>
                        <property name="label" translatable="yes">_Save</property>
                        <property name="use-underline">1</property>
                        <style>
                          <class name="suggested-action"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
                <child type="end">
                  <object class="GtkButton" id="edit_button">
                    <property name="label" translatable="yes">_Edit</property>
                    <property name="use-underline">1</property>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">avatar_selector</property>
        <property name="child">
          <object class="GtkBox" id="avatar_selector_box">
            <property name="orientation">vertical</property>
            <property name="spacing">6</property>
            <child>
              <object class="GtkBox">
                <property name="halign">center</property>
                <property name="spacing">12</property>
                <child>
                  <object class="GtkButton" id="avatar_cancel">
                    <property name="label" translatable="yes">Cancel</property>
                    <property name="focusable">1</property>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="avatar_update_button">
                    <property name="label" translatable="yes">Update</property>
                    <property name="focusable">1</property>
                    <property name="receives-default">1</property>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <placeholder/>
            </child>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">error</property>
        <property name="child">
          <object class="GtkBox">
            <property name="orientation">vertical</property>
            <child>
              <object class="GtkGrid">
                <property name="valign">center</property>
                <property name="vexpand">1</property>
                <property name="row-spacing">12</property>
                <property name="row-homogeneous">1</property>
                <property name="column-homogeneous">1</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">dialog-error</property>
                    <layout>
                      <property name="column">0</property>
                      <property name="row">0</property>
                    </layout>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="error_label">
                    <property name="justify">center</property>
                    <property name="wrap">1</property>
                    <property name="wrap-mode">word-char</property>
                    <layout>
                      <property name="column">0</property>
                      <property name="row">2</property>
                    </layout>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="error_title_label">
                    <property name="justify">center</property>
                    <property name="wrap">1</property>
                    <style>
                      <class name="bold16"/>
                    </style>
                    <layout>
                      <property name="column">0</property>
                      <property name="row">1</property>
                    </layout>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkActionBar">
                <child type="end">
                  <object class="GtkButton" id="back_button">
                    <property name="label" translatable="yes">_Back</property>
                    <property name="focusable">1</property>
                    <property name="use-underline">1</property>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </object>
</interface>
