File: window.ui

package info (click to toggle)
gnome-authenticator 4.6.2-10
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,624 kB
  • sloc: sql: 2,359; python: 147; xml: 34; makefile: 18; sh: 8
file content (254 lines) | stat: -rw-r--r-- 14,412 bytes parent folder | download | duplicates (2)
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <menu id="menu">
    <section>
      <item>
        <attribute name="label" translatable="yes">_Lock the Application</attribute>
        <attribute name="action">app.lock</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">P_roviders</attribute>
        <attribute name="action">app.providers</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Preferences</attribute>
        <attribute name="action">app.preferences</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_Backup &amp; Restore</attribute>
        <attribute name="action">app.show-backup-dialog</attribute>
      </item>
    </section>
    <section>
      <item>
        <attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
        <attribute name="action">win.show-help-overlay</attribute>
      </item>
      <item>
        <attribute name="label" translatable="yes">_About Authenticator</attribute>
        <attribute name="action">app.about</attribute>
      </item>
    </section>
  </menu>
  <template class="Window" parent="AdwApplicationWindow">
    <property name="default-width">720</property>
    <property name="default-height">600</property>
    <property name="width-request">360</property>
    <property name="height-request">294</property>
    <property name="title" translatable="yes">Authenticator</property>
    <child>
      <object class="GtkGestureClick" id="click_gesture">
        <signal handler="on_gesture_click_pressed" name="pressed" swapped="true" />
      </object>
    </child>
    <child>
      <object class="GtkEventControllerKey" id="key_gesture">
        <signal handler="on_key_pressed" name="key-pressed" swapped="true" />
      </object>
    </child>
    <child>
      <object class="AdwToastOverlay" id="toast_overlay">
        <property name="child">
          <object class="GtkStack" id="main_stack">
            <property name="transition-type">crossfade</property>
            <child>
              <object class="GtkStackPage">
                <property name="name">login</property>
                <property name="child">
                  <object class="GtkWindowHandle">
                    <child>
                      <object class="AdwToolbarView">
                        <child type="top">
                          <object class="AdwHeaderBar">
                            <property name="show-title">False</property>
                          </object>
                        </child>
                        <child>
                          <object class="AdwStatusPage" id="locked_status_page">
                            <property name="title" translatable="yes">Authenticator is Locked</property>
                            <style>
                              <class name="icon-dropshadow" />
                            </style>
                            <child>
                              <object class="GtkBox">
                                <property name="halign">center</property>
                                <property name="valign">start</property>
                                <property name="margin-top">24</property>
                                <property name="hexpand">True</property>
                                <property name="vexpand">True</property>
                                <property name="orientation">vertical</property>
                                <child>
                                  <object class="GtkPasswordEntry" id="password_entry">
                                    <property name="halign">center</property>
                                    <property name="show-peek-icon">True</property>
                                    <signal name="activate" handler="on_password_entry_activate" swapped="true" />
                                  </object>
                                </child>
                                <child>
                                  <object class="ErrorRevealer" id="error_revealer">
                                    <property name="margin-top">6</property>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkButton" id="unlock_button">
                                    <property name="label" translatable="yes">_Unlock</property>
                                    <property name="use-underline">True</property>
                                    <property name="action-name">win.unlock</property>
                                    <property name="receives-default">True</property>
                                    <property name="halign">center</property>
                                    <property name="margin-top">12</property>
                                    <style>
                                      <class name="suggested-action" />
                                      <class name="pill" />
                                    </style>
                                  </object>
                                </child>
                              </object>
                            </child>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkStackPage">
                <property name="name">unlocked</property>
                <property name="child">
                  <object class="AdwNavigationView" id="navigation_view">
                    <child>
                      <object class="AdwNavigationPage">
                        <property name="tag">accounts</property>
                        <property name="title" translatable="yes">Accounts</property>
                        <property name="child">
                          <object class="GtkStack" id="accounts_stack">
                            <property name="transition-type">crossfade</property>
                            <child>
                              <object class="GtkStackPage">
                                <property name="name">empty</property>
                                <property name="child">
                                  <object class="AdwToolbarView">
                                    <child type="top">
                                      <object class="AdwHeaderBar">
                                        <child type="start">
                                          <object class="GtkButton">
                                            <property name="action-name">win.add_account</property>
                                            <property name="icon-name">list-add-symbolic</property>
                                            <property name="tooltip-text" translatable="yes">New Account</property>
                                          </object>
                                        </child>
                                        <child type="end">
                                          <object class="GtkMenuButton">
                                            <property name="menu-model">menu</property>
                                            <property name="icon-name">open-menu-symbolic</property>
                                            <property name="primary">True</property>
                                            <property name="tooltip-text" translatable="yes">Main Menu</property>
                                          </object>
                                        </child>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="AdwStatusPage" id="empty_status_page">
                                        <property name="vexpand">True</property>
                                        <property name="title" translatable="yes">No Accounts</property>
                                        <property name="description" translatable="yes">Add an account or scan a QR code first.</property>
                                        <style>
                                          <class name="icon-dropshadow" />
                                        </style>
                                      </object>
                                    </child>
                                  </object>
                                </property>
                              </object>
                            </child>
                            <child>
                              <object class="GtkStackPage">
                                <property name="name">accounts</property>
                                <property name="child">
                                  <object class="AdwToolbarView">
                                    <child type="top">
                                      <object class="AdwHeaderBar">
                                        <child type="start">
                                          <object class="GtkButton">
                                            <property name="action-name">win.add_account</property>
                                            <property name="icon-name">list-add-symbolic</property>
                                            <property name="tooltip-text" translatable="yes">New Account</property>
                                          </object>
                                        </child>
                                        <property name="title-widget">
                                          <object class="AdwWindowTitle" id="window_title">
                                            <property name="title" bind-source="Window" bind-property="title" bind-flags="bidirectional|sync-create" />
                                          </object>
                                        </property>
                                        <child type="end">
                                          <object class="GtkMenuButton">
                                            <property name="menu-model">menu</property>
                                            <property name="icon-name">open-menu-symbolic</property>
                                            <property name="primary">True</property>
                                            <property name="tooltip-text" translatable="yes">Main Menu</property>
                                          </object>
                                        </child>
                                        <child type="end">
                                          <object class="GtkToggleButton" id="search_btn">
                                            <property name="icon-name">system-search-symbolic</property>
                                            <property name="tooltip-text" translatable="yes">Search</property>
                                            <property name="active" bind-source="search_bar" bind-property="search-mode-enabled" bind-flags="sync-create|bidirectional" />
                                          </object>
                                        </child>
                                      </object>
                                    </child>
                                    <child type="top">
                                      <object class="GtkSearchBar" id="search_bar">
                                        <child>
                                          <object class="AdwClamp">
                                            <property name="tightening-threshold">300</property>
                                            <property name="maximum-size">400</property>
                                            <child>
                                              <object class="GtkSearchEntry" id="search_entry">
                                                <property name="hexpand">True</property>
                                                <property name="placeholder-text" translatable="yes">Search…</property>
                                                <signal name="search-started" handler="on_search_started" swapped="true" />
                                                <signal name="search-changed" handler="on_search_changed" swapped="true" />
                                                <signal name="stop-search" handler="on_search_stopped" swapped="true" />
                                                <accessibility>
                                                  <property name="label" translatable="yes">Search</property>
                                                </accessibility>
                                              </object>
                                            </child>
                                          </object>
                                        </child>
                                      </object>
                                    </child>
                                    <child>
                                      <object class="ProvidersList" id="providers">
                                        <signal name="shared" handler="on_account_shared" swapped="true" />
                                      </object>
                                    </child>
                                  </object>
                                </property>
                              </object>
                            </child>
                          </object>
                        </property>
                      </object>
                    </child>
                    <child>
                      <object class="AccountDetailsPage" id="account_details">
                        <signal name="provider-changed" handler="on_provider_changed" swapped="true" />
                        <signal name="removed" handler="on_account_removed" swapped="true" />
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </template>
</interface>