Skip to content
Snippets Groups Projects
window.ui 4.99 KiB
Newer Older
  • Learn to ignore specific revisions
  • Nico's avatar
    Nico committed
    <?xml version="1.0" encoding="UTF-8"?>
    <interface>
      <requires lib="gtk+" version="3.20"/>
    
      <template class="BriarGtkWindow" parent="GtkApplicationWindow">
    
    Nico's avatar
    Nico committed
        <property name="default-width">600</property>
        <property name="default-height">300</property>
        <child type="titlebar">
          <object class="GtkHeaderBar" id="header_bar">
            <property name="visible">True</property>
            <property name="show-close-button">True</property>
    
            <property name="title">Welcome to Briar</property>
    
    Nico's avatar
    Nico committed
          </object>
        </child>
        <child>
    
          <object class="GtkGrid">
    
    Nico's avatar
    Nico committed
            <property name="visible">True</property>
    
            <property name="can_focus">False</property>
            <property name="halign">center</property>
            <property name="valign">center</property>
            <property name="margin_left">18</property>
            <property name="margin_right">18</property>
            <property name="margin_top">18</property>
            <property name="margin_bottom">18</property>
            <child>
    
              <object class="GtkGrid" id="username_grid">
    
                <property name="visible">True</property>
    
                <property name="can_focus">False</property>
                <property name="row_spacing">6</property>
                <property name="column_spacing">12</property>
                <child>
                  <object class="GtkLabel" id="username-label">
                    <property name="visible">True</property>
                    <property name="halign">center</property>
                    <property name="label" translatable="yes">Nickname</property>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">0</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkEntry" id="username">
                    <property name="visible">True</property>
                    <property name="placeholder_text" translatable="yes">Choose your nickname</property>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">1</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkButton" id="username-next">
                    <property name="visible">True</property>
                    <property name="halign">center</property>
                    <property name="label" translatable="yes">Next</property>
                    <signal name="clicked" handler="on_username_button_clicked"/>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">2</property>
                  </packing>
                </child>
    
              </object>
            </child>
            <child>
    
              <object class="GtkGrid" id="password_grid">
                <property name="visible">False</property>
                <property name="can_focus">False</property>
                <property name="row_spacing">6</property>
                <property name="column_spacing">12</property>
                <child>
                  <object class="GtkLabel" id="password-label">
                    <property name="visible">True</property>
                    <property name="halign">center</property>
                    <property name="label" translatable="yes">Password</property>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">0</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkEntry" id="password">
                    <property name="visible">True</property>
                    <property name="placeholder_text" translatable="yes">Choose your password</property>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">1</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkEntry" id="password_confirm">
                    <property name="visible">True</property>
                    <property name="placeholder_text" translatable="yes">Confirm your password</property>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">2</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkButton" id="password-next">
                    <property name="visible">True</property>
                    <property name="halign">center</property>
                    <property name="label" translatable="yes">Next</property>
                    <signal name="clicked" handler="on_password_button_clicked"/>
                  </object>
                  <packing>
                    <property name="left_attach">1</property>
                    <property name="top_attach">3</property>
                  </packing>
                </child>
    
              </object>
            </child>
    
    Nico's avatar
    Nico committed
          </object>
        </child>
      </template>
    </interface>