<?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">12</property>
    <property name="hexpand">true</property>
    <property name="margin-top">18</property>
    <property name="margin-end">18</property>
    <property name="margin-bottom">18</property>
    <property name="margin-start">18</property>
    <child>
      <object class="GtkStack" id="stack">
        <property name="vexpand">1</property>
        <property name="transition-type">crossfade</property>
        <property name="interpolate-size">1</property>
        <child>
          <object class="GtkStackPage">
            <property name="name">progress-page</property>
            <property name="child">
              <object class="GtkBox">
                <property name="valign">center</property>
                <property name="orientation">vertical</property>
                <property name="spacing">18</property>
                <child>
                  <object class="GtkLabel" id="status_label">
                    <property name="label">0 %</property>
                    <property name="justify">center</property>
                    <property name="single-line-mode">1</property>
                    <property name="max-width-chars">10</property>
                    <attributes>
                      <attribute name="font-desc" value="Sans Bold 16"></attribute>
                    </attributes>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">Your chat history is being migrated.
This may take a while…</property>
                    <property name="justify">center</property>
                    <style>
                      <class name="dim-label"/>
                    </style>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>
        <child>
          <object class="GtkStackPage">
            <property name="name">error-page</property>
            <property name="child">
              <object class="GtkBox">
                <property name="orientation">vertical</property>
                <property name="spacing">18</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">dialog-error-symbolic</property>
                    <property name="pixel-size">32</property>
                    <style>
                      <class name="error-color"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="error_label">
                    <property name="label" translatable="yes">Database migration failed</property>
                    <property name="justify">center</property>
                    <property name="wrap">1</property>
                    <property name="max-width-chars">52</property>
                    <style>
                      <class name="bold"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkExpander">
                    <property name="focusable">1</property>
                    <property name="resize-toplevel">1</property>
                    <child>
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <child>
                          <object class="GtkScrolledWindow">
                            <property name="height-request">100</property>
                            <property name="focusable">1</property>
                            <property name="child">
                              <object class="GtkTextView" id="error_view">
                                <property name="focusable">1</property>
                                <property name="hexpand">1</property>
                                <property name="vexpand">1</property>
                                <property name="editable">0</property>
                                <property name="left-margin">4</property>
                                <property name="right-margin">4</property>
                                <property name="top-margin">4</property>
                                <property name="bottom-margin">4</property>
                                <property name="accepts-tab">0</property>
                                <property name="monospace">1</property>
                              </object>
                            </property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkBox">
                            <property name="css-classes">toolbar</property>
                            <property name="can-focus">0</property>
                            <child>
                              <object class="GtkButton" id="error_copy_button">
                                <property name="can-focus">0</property>
                                <property name="label" translatable="yes">C_opy</property>
                                <property name="use-underline">1</property>
                              </object>
                            </child>
                            <style>
                              <class name="inline-toolbar"/>
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                    <child type="label">
                      <object class="GtkLabel">
                        <property name="label" translatable="yes">Show Details</property>
                      </object>
                    </child>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="error_close_button">
                    <property name="label" translatable="yes">_Close</property>
                    <property name="focusable">1</property>
                    <property name="receives-default">1</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                    <property name="use-underline">1</property>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>
        <child>
          <object class="GtkStackPage">
            <property name="name">success-page</property>
            <property name="child">
              <object class="GtkBox">
                <property name="valign">center</property>
                <property name="orientation">vertical</property>
                <property name="spacing">18</property>
                <child>
                  <object class="GtkImage">
                    <property name="icon-name">feather-check-symbolic</property>
                    <property name="pixel-size">32</property>
                    <style>
                      <class name="success-color"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel">
                    <property name="label" translatable="yes">Your chat history database has been migrated successfully.</property>
                    <property name="justify">center</property>
                    <property name="wrap">1</property>
                    <property name="max-width-chars">52</property>
                  </object>
                </child>
                <child>
                  <object class="GtkButton" id="success_close_button">
                    <property name="label" translatable="yes">_Close</property>
                    <property name="focusable">1</property>
                    <property name="receives-default">1</property>
                    <property name="halign">center</property>
                    <property name="valign">center</property>
                    <property name="use-underline">1</property>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>
      </object>
    </child>
    <style>
      <class name="p-18"/>
    </style>
  </object>
</interface>
