summaryrefslogtreecommitdiff
path: root/data/ui/authorize-dialog.ui
blob: 729ddc3ee678210ada196b8223e09a41633b5f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <requires lib="libadwaita" version="1.0"/>
  <template class="AuthorizeDialog" parent="GtkWindow">
    <property name="modal">True</property>
    <property name="resizable">False</property>

    <property name="titlebar">
      <object class="GtkBox">
      </object>
    </property>

    <child>
      <object class="GtkWindowHandle">
        <child>
          <object class="GtkBox" id="dialog-vbox1">
            <property name="orientation">vertical</property>
            <property name="spacing">12</property>
            <property name="margin-start">20</property>
            <property name="margin-end">20</property>
            <property name="margin-top">18</property>
            <property name="margin-bottom">18</property>

            <child>
              <object class="AdwPreferencesGroup" id="preferences_group">
                <property name="title" comments="This label is set dynamically and is not translated">To connect to ? you need to authorize</property>

                <child>
                  <object class="AdwEntryRow" id="username_entry">
                    <property name="title" translatable="yes">_Username for resource</property>
                    <property name="use_underline">True</property>
                  </object>
                </child>

                <child>
                  <object class="AdwPasswordEntryRow" id="password_entry">
                    <property name="title" translatable="yes">_Password</property>
                    <property name="use_underline">True</property>
                  </object>
                </child>
              </object>
            </child>

            <child>
              <object class="GtkBox">
                <property name="orientation">horizontal</property>
                <property name="spacing">5</property>
                <property name="halign">end</property>

                <child>
                  <object class="GtkButton">
                    <property name="label" translatable="yes">_Cancel</property>
                    <property name="use_underline">True</property>
                    <signal name="clicked" handler="cancel_button_cb" swapped="no"/>
                  </object>
                </child>

                <child>
                  <object class="GtkButton" id="authorize_button">
                    <property name="label" translatable="yes" comments="Button to submit authorization dialog">_Authorize</property>
                    <property name="use_underline">True</property>
                    <signal name="clicked" handler="authorize_button_cb" swapped="no"/>

                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>
      </object>
    </child>
  </template>
</interface>