blob: 572ef0e705a556beb2622d71ae04e269f7010840 (
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
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcWifiPanel" parent="CcPanel">
<child type="titlebar">
<object class="AdwHeaderBar" id="titlebar">
<property name="show-end-title-buttons">True</property>
<property name="show-start-title-buttons" bind-source="CcWifiPanel" bind-property="folded" bind-flags="default|sync-create" />
<child type="start">
<object class="GtkButton">
<property name="visible" bind-source="CcWifiPanel" bind-property="folded" bind-flags="default|sync-create" />
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">window.navigate</property>
<property name="action-target">0</property> <!-- 0: ADW_NAVIGATION_DIRECTION_BACK -->
<accessibility>
<property name="label" translatable="yes">Back</property>
</accessibility>
</object>
</child>
<!-- Center Widget -->
<property name="title-widget">
<object class="GtkStack" id="center_stack">
<property name="halign">center</property>
<property name="hhomogeneous">False</property>
<child>
<object class="GtkStackPage">
<property name="name">many</property>
<property name="child">
<object class="GtkStackSwitcher">
<property name="stack">stack</property>
</object>
</property>
</object>
</child>
</object>
</property>
<!-- End Stack -->
<child type="end">
<object class="GtkStack" id="header_stack">
<property name="halign">end</property>
</object>
</child>
</object>
</child>
<child type="content">
<object class="GtkScrolledWindow">
<property name="hscrollbar-policy">never</property>
<child>
<object class="AdwClamp">
<property name="margin_top">32</property>
<property name="margin_bottom">32</property>
<property name="margin_start">12</property>
<property name="margin_end">12</property>
<child>
<object class="GtkBox">
<property name="hexpand">True</property>
<property name="orientation">vertical</property>
<!-- Airplane Mode -->
<child>
<object class="GtkListBox" id="rfkill_widget">
<property name="margin_bottom">32</property>
<property name="selection-mode">none</property>
<style>
<class name="boxed-list"/>
</style>
<child>
<object class="CcListRow" id="rfkill_row">
<property name="show-switch">True</property>
<property name="title" translatable="yes">Airplane Mode</property>
<property name="subtitle" translatable="yes">Disables Wi-Fi, Bluetooth and mobile broadband</property>
<signal name="notify::active" handler="rfkill_switch_notify_activate_cb" object="CcWifiPanel" swapped="no" />
</object>
</child>
</object>
</child>
<child>
<object class="GtkStack" id="main_stack">
<property name="hhomogeneous">False</property>
<property name="vhomogeneous">False</property>
<property name="transition_type">crossfade</property>
<!-- "No Wi-Fi Adapter" page -->
<child>
<object class="GtkStackPage">
<property name="name">no-wifi-devices</property>
<property name="child">
<object class="GtkBox">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkImage">
<property name="icon_name">network-wireless-no-route-symbolic</property>
<property name="pixel_size">256</property>
<property name="margin-bottom">18</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="wrap">True</property>
<property name="label" translatable="yes">No Wi-Fi Adapter Found</property>
<attributes>
<attribute name="weight" value="bold" />
<attribute name="scale" value="1.2" />
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="wrap">True</property>
<property name="label" translatable="yes">Make sure you have a Wi-Fi adapter plugged and turned on</property>
</object>
</child>
</object>
</property>
</object>
</child>
<!-- "Airplane Mode" page -->
<child>
<object class="GtkStackPage">
<property name="name">airplane-mode</property>
<property name="child">
<object class="GtkBox">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkImage">
<property name="icon_name">airplane-mode-symbolic</property>
<property name="pixel_size">256</property>
<property name="margin-bottom">18</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="wrap">True</property>
<property name="label" translatable="yes">Airplane Mode On</property>
<attributes>
<attribute name="weight" value="bold" />
<attribute name="scale" value="1.2" />
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="wrap">True</property>
<property name="label" translatable="yes">Turn off to use Wi-Fi</property>
</object>
</child>
</object>
</property>
</object>
</child>
<!-- Wi-Fi connections and devices -->
<child>
<object class="GtkStackPage">
<property name="name">wifi-connections</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="hotspot_box">
<property name="orientation">vertical</property>
<!-- Hotspot QR code -->
<child>
<object class="GtkPicture" id="wifi_qr_image">
<property name="halign">center</property>
<property name="valign">center</property>
<property name="width-request">180</property>
<property name="height-request">180</property>
<style>
<class name="frame"/>
<class name="qr-image"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="margin-top">12</property>
<property name="label" translatable="yes">Wi-Fi Hotspot Active</property>
<attributes>
<attribute name="weight" value="bold" />
<attribute name="scale" value="1.8" />
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Mobile devices can scan the QR code to connect.</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="halign">center</property>
<property name="margin-top">12</property>
<property name="label" translatable="yes">Turn Off Hotspot…</property>
<signal name="clicked" handler="hotspot_stop_clicked_cb" swapped="yes"/>
<style>
<class name="destructive-action"/>
</style>
</object>
</child>
</object>
</child>
<!-- Visible Networks label & spinner -->
<child>
<object class="GtkBox">
<property name="hexpand">True</property>
<property name="halign">start</property>
<property name="spacing">6</property>
<property name="margin_bottom">12</property>
<child>
<object class="GtkLabel" id="list_label">
<property name="label" translatable="yes">Visible Networks</property>
<property name="xalign">0.0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkSpinner" id="spinner">
<property name="hexpand">True</property>
</object>
</child>
</object>
</child>
<!-- Stack with a listbox for each Wi-Fi device -->
<child>
<object class="GtkStack" id="stack">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="transition_type">crossfade</property>
<signal name="notify::visible-child-name" handler="on_stack_visible_child_changed_cb" object="CcWifiPanel" swapped="no" />
</object>
</child>
</object>
</property>
</object>
</child>
<!-- "NetworkManager Not Running" page -->
<child>
<object class="GtkStackPage">
<property name="name">nm-not-running</property>
<property name="child">
<object class="GtkCenterBox">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<property name="margin-top">18</property>
<property name="margin-bottom">18</property>
<property name="margin-start">18</property>
<property name="margin-end">18</property>
<child type="center">
<object class="GtkImage">
<property name="icon_name">face-sad-symbolic</property>
<property name="pixel_size">128</property>
<style>
<class name="dim-label" />
</style>
</object>
</child>
<child type="end">
<object class="GtkLabel">
<property name="wrap">True</property>
<property name="label" translatable="yes">NetworkManager needs to be running</property>
</object>
</child>
<child type="end">
<object class="GtkLabel">
<property name="wrap">True</property>
<property name="label" translatable="yes">Oops, something has gone wrong. Please contact your software vendor.</property>
<attributes>
<attribute name="scale" value="1.42" />
</attributes>
</object>
</child>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>
|