<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkStack" id="preview_stack">
    <property name="hhomogeneous">0</property>
    <property name="vhomogeneous">0</property>
    <property name="halign">start</property>
    <property name="transition-duration">50</property>
    <property name="transition-type">crossfade</property>
    <child>
      <object class="GtkStackPage">
        <property name="name">loading</property>
        <property name="child">
          <object class="GtkBox">
            <property name="width-request">300</property>
            <property name="height-request">200</property>
            <property name="orientation">vertical</property>
            <property name="spacing">12</property>
            <property name="homogeneous">1</property>
            <child>
              <object class="GtkSpinner">
                <property name="valign">end</property>
                <property name="spinning">1</property>
              </object>
            </child>
            <child>
              <object class="GtkLabel">
                <property name="valign">start</property>
                <property name="label" translatable="yes">Loading Preview…</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">preview</property>
        <property name="child">
          <object class="GtkBox" id="preview_box">
            <property name="spacing">12</property>
            <child>
              <object class="GtkBox" id="icon_event_box">
                <property name="can-focus">0</property>
                <property name="halign">start</property>
                <child>
                  <object class="GtkButton" id="icon_button">
                    <property name="focusable">1</property>
                    <child>
                      <placeholder/>
                    </child>
                    <style>
                      <class name="preview-image-button"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>
            <child>
              <object class="GtkBox" id="right_box">
                <property name="orientation">vertical</property>
                <property name="spacing">3</property>
                <child>
                  <object class="GtkBox" id="progress_box">
                    <property name="visible">0</property>
                    <property name="spacing">12</property>
                    <child>
                      <object class="GtkProgressBar" id="progressbar">
                        <property name="valign">center</property>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLabel" id="progress_text">
                        <property name="valign">center</property>
                        <property name="width-chars">4</property>
                        <property name="single-line-mode">1</property>
                        <style>
                          <class name="dim-label"/>
                          <class name="small-label"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkBox">
                        <property name="can-focus">0</property>
                        <property name="valign">end</property>
                        <child>
                          <object class="GtkButton" id="cancel_download_button">
                            <property name="focusable">1</property>
                            <property name="tooltip-text" translatable="yes">Cancel Download</property>
                            <child>
                              <object class="GtkImage">
                                <property name="icon-name">process-stop-symbolic</property>
                              </object>
                            </child>
                            <style>
                              <class name="border"/>
                              <class name="flat"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="GtkBox" id="content_box">
                    <property name="orientation">vertical</property>
                    <property name="spacing">6</property>
                    <child>
                      <object class="GtkBox">
                        <property name="can-focus">0</property>
                        <property name="halign">center</property>
                        <child>
                          <object class="GtkOverlay" id="content_overlay">
                            <property name="can-target">1</property>
                            <property name="can-focus">0</property>
                            <child>
                              <object class="GtkButton" id="image_button">
                                <property name="focusable">1</property>
                                <child>
                                  <placeholder/>
                                </child>
                                <style>
                                  <class name="preview-image-button"/>
                                </style>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="GtkLinkButton" id="link_button">
                        <property name="visible">0</property>
                        <property name="focusable">1</property>
                        <property name="halign">start</property>
                      </object>
                    </child>
                    <style>
                      <class name="preview-content-box"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkBox" id="button_box">
                    <property name="spacing">6</property>
                    <child>
                      <object class="GtkBox">
                        <property name="hexpand">1</property>
                        <property name="halign">start</property>
                        <property name="orientation">vertical</property>
                        <child>
                          <object class="GtkLabel" id="file_name">
                            <property name="focusable">1</property>
                            <property name="selectable">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="dim-label"/>
                              <class name="small-label"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel" id="file_size">
                            <property name="focusable">1</property>
                            <property name="selectable">1</property>
                            <property name="single-line-mode">1</property>
                            <property name="max-width-chars">30</property>
                            <property name="xalign">0</property>
                            <style>
                              <class name="dim-label"/>
                              <class name="small-label"/>
                            </style>
                          </object>
                        </child>
                        <child>
                          <object class="GtkLabel" id="info_message">
                            <property name="focusable">1</property>
                            <property name="selectable">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="dim-label"/>
                              <class name="small-label"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="open_folder_button">
                        <property name="visible">0</property>
                        <property name="valign">center</property>
                        <property name="focusable">1</property>
                        <property name="tooltip-text" translatable="yes">Open folder</property>
                        <child>
                          <object class="GtkImage">
                            <property name="icon-name">folder-symbolic</property>
                          </object>
                        </child>
                        <style>
                          <class name="border"/>
                          <class name="flat"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="save_as_button">
                        <property name="visible">0</property>
                        <property name="valign">center</property>
                        <property name="focusable">1</property>
                        <property name="tooltip-text" translatable="yes">Save as...</property>
                        <child>
                          <object class="GtkImage">
                            <property name="icon-name">document-save-as-symbolic</property>
                          </object>
                        </child>
                        <style>
                          <class name="border"/>
                          <class name="flat"/>
                        </style>
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="download_button">
                        <property name="visible">0</property>
                        <property name="valign">center</property>
                        <property name="focusable">1</property>
                        <property name="tooltip-text" translatable="yes">Download</property>
                        <child>
                          <object class="GtkImage">
                            <property name="icon-name">folder-download-symbolic</property>
                          </object>
                        </child>
                        <style>
                          <class name="border"/>
                          <class name="flat"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
    <style>
      <class name="preview-stack"/>
    </style>
  </object>
</interface>
