1<?xml version="1.0" encoding="UTF-8"?>
2<interface>
3  <template class="CcNightLightPage" parent="GtkBin">
4    <property name="can_focus">False</property>
5    <child>
6      <object class="GtkBox">
7        <property name="visible">True</property>
8        <property name="can_focus">False</property>
9        <property name="halign">center</property>
10        <property name="valign">start</property>
11        <property name="orientation">vertical</property>
12        <child>
13          <object class="GtkInfoBar" id="infobar_disabled">
14            <property name="name">infobar_disabled</property>
15            <property name="visible">True</property>
16            <property name="can_focus">False</property>
17            <property name="border_width">0</property>
18            <property name="orientation">vertical</property>
19            <property name="spacing">12</property>
20            <child internal-child="action_area">
21              <object class="GtkButtonBox">
22                <property name="can_focus">False</property>
23                <property name="border_width">12</property>
24                <property name="spacing">6</property>
25                <property name="layout_style">end</property>
26                <child>
27                  <object class="GtkButton" id="button_undisable">
28                    <property name="label" translatable="yes" comments="This cancels the redshift inhibit.">Restart Filter</property>
29                    <property name="name">button_undisable</property>
30                    <property name="visible">True</property>
31                    <property name="can_focus">True</property>
32                    <property name="receives_default">True</property>
33                    <signal name="clicked" handler="dialog_undisable_clicked_cb" object="CcNightLightPage" swapped="no" />
34                  </object>
35                  <packing>
36                    <property name="expand">False</property>
37                    <property name="fill">False</property>
38                    <property name="pack_type">end</property>
39                    <property name="position">0</property>
40                  </packing>
41                </child>
42              </object>
43              <packing>
44                <property name="expand">False</property>
45                <property name="fill">False</property>
46                <property name="pack_type">end</property>
47                <property name="position">0</property>
48              </packing>
49            </child>
50            <child internal-child="content_area">
51              <object class="GtkBox">
52                <property name="can_focus">False</property>
53                <property name="spacing">16</property>
54                <child>
55                  <object class="GtkLabel">
56                    <property name="visible">True</property>
57                    <property name="can_focus">False</property>
58                    <property name="halign">start</property>
59                    <property name="margin_left">12</property>
60                    <property name="hexpand">False</property>
61                    <property name="label" translatable="yes" comments="Inhibit the redshift functionality until the next day starts">Temporarily Disabled Until Tomorrow</property>
62                    <attributes>
63                      <attribute name="weight" value="bold"/>
64                    </attributes>
65                  </object>
66                </child>
67              </object>
68            </child>
69          </object>
70        </child>
71
72        <child>
73          <object class="GtkBox">
74            <property name="visible">True</property>
75            <property name="can_focus">False</property>
76            <property name="margin_top">30</property>
77            <property name="margin_end">12</property>
78            <property name="margin_start">12</property>
79            <property name="margin_bottom">36</property>
80            <property name="orientation">vertical</property>
81            <property name="spacing">26</property>
82            <child>
83              <object class="GtkLabel">
84                <property name="visible">True</property>
85                <property name="can_focus">False</property>
86                <property name="halign">start</property>
87                <property name="valign">start</property>
88                <property name="label" translatable="yes">Night light makes the screen color warmer. This can help to prevent eye strain and sleeplessness.</property>
89                <property name="wrap">True</property>
90                <property name="max_width_chars">60</property>
91                <property name="xalign">0</property>
92                <style>
93                  <class name="dim-label"/>
94                </style>
95              </object>
96            </child>
97            <child>
98              <object class="GtkFrame">
99                <property name="visible">True</property>
100                <property name="can_focus">False</property>
101                <child>
102                  <object class="GtkListBox" id="listbox">
103                    <property name="visible">True</property>
104                    <property name="can_focus">False</property>
105                    <property name="selection-mode">none</property>
106
107                    <!-- Night Light -->
108                    <child>
109                      <object class="HdyActionRow">
110                        <property name="visible">True</property>
111                        <property name="title" translatable="yes">Night Light</property>
112                        <property name="activatable-widget">night_light_toggle_switch</property>
113
114                        <child>
115                          <object class="GtkSwitch" id="night_light_toggle_switch">
116                            <property name="visible">True</property>
117                            <property name="valign">center</property>
118                          </object>
119                        </child>
120                      </object>
121                    </child>
122
123                    <!-- Schedule -->
124                    <child>
125                      <object class="HdyActionRow">
126                        <property name="visible">True</property>
127                        <property name="title" translatable="yes">Schedule</property>
128                        <property name="sensitive" bind-source="night_light_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
129
130                        <child>
131                          <object class="GtkComboBoxText" id="schedule_type_combo">
132                            <property name="visible">True</property>
133                            <property name="valign">center</property>
134                            <signal name="notify::active" handler="on_schedule_type_combo_active_changed_cb" object="CcNightLightPage" swapped="no" />
135                            <items>
136                              <item translatable="yes" id="automatic">Sunset to Sunrise</item>
137                              <item translatable="yes" id="manual">Manual Schedule</item>
138                            </items>
139                          </object>
140                        </child>
141                      </object>
142                    </child>
143
144                    <!-- Time -->
145                    <child>
146                      <object class="HdyActionRow">
147                        <property name="visible">True</property>
148                        <property name="title" translatable="yes">Times</property>
149                        <property name="sensitive" bind-source="night_light_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
150
151                        <child>
152                          <object class="GtkBox" id="box_manual">
153                            <property name="visible">True</property>
154                            <property name="can_focus">False</property>
155                            <property name="spacing">6</property>
156                            <property name="margin-top">12</property>
157                            <property name="margin-bottom">12</property>
158                            <style>
159                              <class name="time-widget" />
160                            </style>
161                            <child>
162                              <object class="GtkLabel">
163                                <property name="visible">True</property>
164                                <property name="can_focus">False</property>
165                                <property name="label" translatable="yes">From</property>
166                                <property name="mnemonic_widget">spinbutton_from_hours</property>
167                                <style>
168                                  <class name="dim-label"/>
169                                </style>
170                              </object>
171                            </child>
172                            <child>
173                              <object class="GtkBox">
174                                <property name="visible">True</property>
175                                <property name="can_focus">False</property>
176                                <property name="spacing">4</property>
177                                <child>
178                                  <object class="GtkSpinButton" id="spinbutton_from_hours">
179                                    <property name="visible">True</property>
180                                    <property name="can_focus">True</property>
181                                    <property name="max_width_chars">2</property>
182                                    <property name="text">4</property>
183                                    <property name="orientation">vertical</property>
184                                    <property name="adjustment">adjustment_from_hours</property>
185                                    <property name="numeric">True</property>
186                                    <property name="wrap">True</property>
187                                    <property name="value">4</property>
188                                    <signal name="output" handler="dialog_format_hours_combobox" object="CcNightLightPage" swapped="no" />
189                                    <style>
190                                      <class name="padded-spinbutton"/>
191                                    </style>
192                                    <child internal-child="accessible">
193                                      <object class="AtkObject" id="from_h_spinbutton-atkobject">
194                                        <property name="AtkObject::accessible-description" translatable="yes">Hour</property>
195                                      </object>
196                                    </child>
197                                  </object>
198                                </child>
199                                <child>
200                                  <object class="GtkLabel">
201                                    <property name="visible">True</property>
202                                    <property name="can_focus">False</property>
203                                    <property name="label" translatable="yes">:</property>
204                                  </object>
205                                </child>
206                                <child>
207                                  <object class="GtkSpinButton" id="spinbutton_from_minutes">
208                                    <property name="visible">True</property>
209                                    <property name="can_focus">True</property>
210                                    <property name="max_width_chars">2</property>
211                                    <property name="text">0</property>
212                                    <property name="orientation">vertical</property>
213                                    <property name="adjustment">adjustment_from_minutes</property>
214                                    <property name="numeric">True</property>
215                                    <property name="wrap">True</property>
216                                    <signal name="output" handler="dialog_format_minutes_combobox" object="CcNightLightPage" swapped="no" />
217                                    <style>
218                                      <class name="padded-spinbutton"/>
219                                    </style>
220                                    <child internal-child="accessible">
221                                      <object class="AtkObject" id="from_m_spinbutton-atkobject">
222                                        <property name="AtkObject::accessible-description" translatable="yes">Minute</property>
223                                      </object>
224                                    </child>
225                                  </object>
226                                </child>
227                                <child>
228                                  <object class="GtkStack" id="stack_from">
229                                    <property name="visible">True</property>
230                                    <property name="can_focus">False</property>
231                                    <property name="homogeneous">False</property>
232                                    <child>
233                                      <object class="GtkButton" id="button_from_am">
234                                        <property name="label" translatable="yes" comments="This is the short form for the time period in the morning">AM</property>
235                                        <property name="visible">True</property>
236                                        <property name="can_focus">True</property>
237                                        <property name="receives_default">True</property>
238                                        <property name="valign">center</property>
239                                        <signal name="clicked" handler="dialog_am_pm_from_button_clicked_cb" object="CcNightLightPage" swapped="no" />
240                                        <style>
241                                          <class name="unpadded-button"/>
242                                        </style>
243                                      </object>
244                                    </child>
245                                    <child>
246                                      <object class="GtkButton" id="button_from_pm">
247                                        <property name="label" translatable="yes" comments="This is the short form for the time period in the afternoon">PM</property>
248                                        <property name="visible">True</property>
249                                        <property name="can_focus">True</property>
250                                        <property name="receives_default">True</property>
251                                        <property name="valign">center</property>
252                                        <signal name="clicked" handler="dialog_am_pm_from_button_clicked_cb" object="CcNightLightPage" swapped="no" />
253                                        <style>
254                                          <class name="unpadded-button"/>
255                                        </style>
256                                      </object>
257                                    </child>
258                                  </object>
259                                </child>
260                              </object>
261                            </child>
262                            <child>
263                              <object class="GtkLabel">
264                                <property name="visible">True</property>
265                                <property name="can_focus">False</property>
266                                <property name="margin-start">6</property>
267                                <property name="label" translatable="yes">To</property>
268                                <property name="mnemonic_widget">spinbutton_to_hours</property>
269                                <style>
270                                  <class name="dim-label"/>
271                                </style>
272                              </object>
273                            </child>
274                            <child>
275                              <object class="GtkBox">
276                                <property name="visible">True</property>
277                                <property name="can_focus">False</property>
278                                <property name="spacing">4</property>
279                                <child>
280                                  <object class="GtkSpinButton" id="spinbutton_to_hours">
281                                    <property name="visible">True</property>
282                                    <property name="can_focus">True</property>
283                                    <property name="max_width_chars">2</property>
284                                    <property name="text">4</property>
285                                    <property name="input_purpose">number</property>
286                                    <property name="orientation">vertical</property>
287                                    <property name="adjustment">adjustment_to_hours</property>
288                                    <property name="numeric">True</property>
289                                    <property name="wrap">True</property>
290                                    <property name="value">4</property>
291                                    <signal name="output" handler="dialog_format_hours_combobox" object="CcNightLightPage" swapped="no" />
292                                    <style>
293                                      <class name="padded-spinbutton"/>
294                                    </style>
295                                    <child internal-child="accessible">
296                                      <object class="AtkObject" id="to_h_spinbutton-atkobject">
297                                        <property name="AtkObject::accessible-description" translatable="yes">Hour</property>
298                                      </object>
299                                    </child>
300                                  </object>
301                                </child>
302                                <child>
303                                  <object class="GtkLabel">
304                                    <property name="visible">True</property>
305                                    <property name="can_focus">False</property>
306                                    <property name="label" translatable="yes">:</property>
307                                  </object>
308                                </child>
309                                <child>
310                                  <object class="GtkSpinButton" id="spinbutton_to_minutes">
311                                    <property name="visible">True</property>
312                                    <property name="can_focus">True</property>
313                                    <property name="max_width_chars">2</property>
314                                    <property name="text">0</property>
315                                    <property name="orientation">vertical</property>
316                                    <property name="adjustment">adjustment_to_minutes</property>
317                                    <property name="numeric">True</property>
318                                    <property name="wrap">True</property>
319                                    <signal name="output" handler="dialog_format_minutes_combobox" object="CcNightLightPage" swapped="no" />
320                                    <style>
321                                      <class name="padded-spinbutton"/>
322                                    </style>
323                                    <child internal-child="accessible">
324                                      <object class="AtkObject" id="to_m_spinbutton-atkobject">
325                                        <property name="AtkObject::accessible-description" translatable="yes">Minute</property>
326                                      </object>
327                                    </child>
328                                  </object>
329                                </child>
330                                <child>
331                                  <object class="GtkStack" id="stack_to">
332                                    <property name="visible">True</property>
333                                    <property name="can_focus">False</property>
334                                    <property name="homogeneous">False</property>
335                                    <child>
336                                      <object class="GtkButton" id="button_to_am">
337                                        <property name="label" translatable="yes">AM</property>
338                                        <property name="visible">True</property>
339                                        <property name="can_focus">True</property>
340                                        <property name="receives_default">True</property>
341                                        <property name="valign">center</property>
342                                        <signal name="clicked" handler="dialog_am_pm_to_button_clicked_cb" object="CcNightLightPage" swapped="no" />
343                                        <style>
344                                          <class name="unpadded-button"/>
345                                        </style>
346                                      </object>
347                                    </child>
348                                    <child>
349                                      <object class="GtkButton" id="button_to_pm">
350                                        <property name="label" translatable="yes">PM</property>
351                                        <property name="visible">True</property>
352                                        <property name="can_focus">True</property>
353                                        <property name="receives_default">True</property>
354                                        <property name="valign">center</property>
355                                        <signal name="clicked" handler="dialog_am_pm_to_button_clicked_cb" object="CcNightLightPage" swapped="no" />
356                                        <style>
357                                          <class name="unpadded-button"/>
358                                        </style>
359                                      </object>
360                                    </child>
361                                  </object>
362                                </child>
363                              </object>
364                            </child>
365                          </object>
366                        </child>
367                      </object>
368                    </child>
369
370                    <!-- Color Temperature -->
371                    <child>
372                      <object class="HdyActionRow">
373                        <property name="visible">True</property>
374                        <property name="title" translatable="yes">Color Temperature</property>
375                        <property name="sensitive" bind-source="night_light_toggle_switch" bind-property="active" bind-flags="default|sync-create" />
376
377                        <child>
378                          <object class="GtkScale" id="scale_color_temperature">
379                            <property name="visible">True</property>
380                            <property name="can_focus">True</property>
381                            <property name="hexpand">True</property>
382                            <property name="margin-top">12</property>
383                            <property name="margin-bottom">12</property>
384                            <property name="width-request">280</property>
385                            <property name="adjustment">adjustment_color_temperature</property>
386                            <property name="inverted">True</property>
387                            <property name="restrict_to_fill_level">False</property>
388                            <property name="fill_level">1</property>
389                            <property name="digits">0</property>
390                            <property name="draw_value">False</property>
391                            <property name="has_origin">False</property>
392                            <property name="value_pos">bottom</property>
393                            <style>
394                              <class name="night-light-temperature"/>
395                            </style>
396                          </object>
397                        </child>
398                      </object>
399                    </child>
400
401                  </object>
402                </child>
403              </object>
404            </child>
405
406          </object>
407        </child>
408      </object>
409    </child>
410  </template>
411
412  <object class="GtkAdjustment" id="adjustment_from_hours">
413    <property name="upper">23</property>
414    <property name="step_increment">1</property>
415    <property name="page_increment">10</property>
416    <signal name="value-changed" handler="dialog_time_from_value_changed_cb" object="CcNightLightPage" swapped="no" />
417  </object>
418  <object class="GtkAdjustment" id="adjustment_from_minutes">
419    <property name="upper">59</property>
420    <property name="step_increment">1</property>
421    <property name="page_increment">10</property>
422    <signal name="value-changed" handler="dialog_time_from_value_changed_cb" object="CcNightLightPage" swapped="no" />
423  </object>
424  <object class="GtkAdjustment" id="adjustment_to_hours">
425    <property name="upper">23</property>
426    <property name="step_increment">1</property>
427    <property name="page_increment">10</property>
428    <signal name="value-changed" handler="dialog_time_to_value_changed_cb" object="CcNightLightPage" swapped="no" />
429  </object>
430  <object class="GtkAdjustment" id="adjustment_to_minutes">
431    <property name="upper">59</property>
432    <property name="step_increment">1</property>
433    <property name="page_increment">10</property>
434    <signal name="value-changed" handler="dialog_time_to_value_changed_cb" object="CcNightLightPage" swapped="no" />
435  </object>
436  <object class="GtkAdjustment" id="adjustment_color_temperature">
437    <property name="lower">1700</property>
438    <property name="upper">4700</property>
439    <property name="step_increment">100</property>
440    <property name="page_increment">500</property>
441    <signal name="value-changed" handler="dialog_color_temperature_value_changed_cb" object="CcNightLightPage" swapped="no" />
442  </object>
443</interface>
444