summaryrefslogtreecommitdiffstats
path: root/gnome-initial-setup/pages/password/gis-password-page.ui
blob: 7345e0064554f7c47f2661592675ac002d8c9e2d (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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="GisPasswordPage" parent="GisPage">

    <child>
      <object class="AdwPreferencesPage">

        <child>
          <object class="AdwPreferencesGroup">
            <child>
              <object class="GisPageHeader" id="header">
                <property name="margin_top">24</property>
                <!-- title and subtitle are set in code, so are not set here -->
                <property name="icon_name">dialog-password-symbolic</property>
                <property name="show_icon" bind-source="GisPasswordPage" bind-property="small-screen" bind-flags="invert-boolean|sync-create"/>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup">
            <child>
              <object class="GtkGrid" id="secrets">
                <property name="column_spacing">12</property>
                <property name="row_spacing">6</property>
                <property name="margin_top">40</property>
                <child>
                  <object class="GtkLabel" id="password_label">
                    <property name="halign">end</property>
                    <property name="xalign">1</property>
                    <property name="label" translatable="yes">_Password</property>
                    <property name="use_underline">True</property>
                    <property name="mnemonic_widget">password_entry</property>
                    <layout>
                      <property name="column">0</property>
                      <property name="row">0</property>
                    </layout>
                  </object>
                </child>
                <child>
                  <object class="GtkPasswordEntry" id="password_entry">
                    <layout>
                      <property name="column">1</property>
                      <property name="row">0</property>
                    </layout>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="confirm_label">
                    <property name="halign">end</property>
                    <property name="xalign">1</property>
                    <property name="label" translatable="yes">_Confirm</property>
                    <property name="use_underline">True</property>
                    <property name="mnemonic_widget">confirm_entry</property>
                    <layout>
                      <property name="column">0</property>
                      <property name="row">3</property>
                    </layout>
                  </object>
                </child>
                <child>
                  <object class="GtkPasswordEntry" id="confirm_entry">
                    <layout>
                      <property name="column">1</property>
                      <property name="row">3</property>
                    </layout>
                  </object>
                </child>
                <child>
                  <object class="GtkLevelBar" id="password_strength">
                    <property name="halign">fill</property>
                    <property name="valign">center</property>
                    <property name="max-value">5</property>
                    <property name="mode">discrete</property>
                    <layout>
                      <property name="column">1</property>
                      <property name="row">1</property>
                    </layout>
                    <offsets>
                      <offset name="strength-weak" value="1"/>
                      <offset name="strength-low" value="2"/>
                      <offset name="strength-medium" value="3"/>
                      <offset name="strength-good" value="4"/>
                      <offset name="strength-high" value="5"/>
                    </offsets>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="password_explanation">
                    <property name="xalign">0</property>
                    <property name="yalign">0</property>
                    <property name="label" translatable="yes"></property>
                    <property name="width-chars">35</property>
                    <property name="max-width-chars">35</property>
                    <property name="height-request">50</property>
                    <property name="wrap">True</property>
                    <property name="hexpand">True</property>
                    <property name="wrap_mode">word-char</property>
                    <layout>
                      <property name="column">1</property>
                      <property name="row">2</property>
                    </layout>
                    <style>
                      <class name="dim-label"/>
                    </style>
                    <attributes>
                      <attribute name="scale" value="0.8"/>
                    </attributes>
                  </object>
                </child>
                <child>
                  <object class="GtkLabel" id="confirm_explanation">
                    <property name="xalign">0</property>
                    <property name="yalign">0</property>
                    <property name="label" translatable="yes"></property>
                    <property name="width-chars">35</property>
                    <property name="max-width-chars">35</property>
                    <property name="wrap">True</property>
                    <property name="hexpand">True</property>
                    <property name="wrap_mode">word-char</property>
                    <layout>
                      <property name="column">1</property>
                      <property name="row">4</property>
                    </layout>
                    <style>
                      <class name="dim-label"/>
                    </style>
                    <attributes>
                      <attribute name="scale" value="0.8"/>
                    </attributes>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>

      </object>
    </child>

  </template>
</interface>