summaryrefslogtreecommitdiffstats
path: root/panels/screen/cc-screen-panel.ui
blob: 2d587291785fda9173cfa5ca608487470ca83d0a (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcScreenPanel" parent="CcPanel">
    <child type="content">
      <object class="AdwPreferencesPage">
        <child>
          <object class="AdwPreferencesGroup">
            <property name="title" translatable="yes">Screen Lock</property>
            <property name="description" translatable="yes">Automatically locking the screen prevents others from accessing the computer while you're away.</property>

            <!-- Blank Screen Delay row -->
            <child>
              <object class="AdwComboRow" id="blank_screen_row">
                <property name="title" translatable="yes">Blank Screen Delay</property>
                <property name="subtitle" translatable="yes">Period of inactivity after which the screen will go blank.</property>
                <property name="subtitle-lines">2</property>
                <property name="use-underline">true</property>
                <signal name="notify::selected-item" handler="on_blank_screen_delay_changed_cb"/>
                <property name="model">
                  <object class="AdwEnumListModel">
                    <property name="enum-type">CcScreenPanelBlankScreenDelay</property>
                  </object>
                </property>
                <property name="expression">
                  <closure type="gchararray" function="screen_delay_name_cb"/>
                </property>
              </object>
            </child>

            <!-- Automatic Screen Lock row -->
            <child>
              <object class="AdwActionRow">
                <property name="title" translatable="yes">Automatic Screen _Lock</property>
                <property name="activatable-widget">automatic_screen_lock_switch</property>
                <property name="use-underline">true</property>
                <child>
                  <object class="GtkSwitch" id="automatic_screen_lock_switch">
                    <property name="valign">center</property>
                    <accessibility>
                      <property name="label" translatable="yes">Enabled</property>
                    </accessibility>
                  </object>
                </child>
              </object>
            </child>

            <!-- Automatic Screen Lock Delay row -->
            <child>
              <object class="AdwComboRow" id="lock_after_row">
                <property name="title" translatable="yes">Automatic _Screen Lock Delay</property>
                <property name="subtitle" translatable="yes">Period after the screen blanks when the screen is automatically locked.</property>
                <property name="subtitle-lines">2</property>
                <property name="use-underline">true</property>
                <signal name="notify::selected-item" handler="on_lock_combo_changed_cb"/>
                <property name="model">
                  <object class="AdwEnumListModel">
                    <property name="enum-type">CcScreenPanelLockAfter</property>
                  </object>
                </property>
                <property name="expression">
                  <closure type="gchararray" function="lock_after_name_cb"/>
                </property>
              </object>
            </child>

            <!-- Show Notifications row -->
            <child>
              <object class="AdwActionRow">
                <property name="title" translatable="yes" comments="Translators: Whether to show notifications on the lock screen">_Lock Screen Notifications</property>
                <property name="activatable-widget">show_notifications_switch</property>
                <property name="use-underline">true</property>
                <child>
                  <object class="GtkSwitch" id="show_notifications_switch">
                    <property name="valign">center</property>
                    <accessibility>
                      <property name="label" translatable="yes">Enabled</property>
                    </accessibility>
                  </object>
                </child>
              </object>
            </child>

            <!-- USB protection row -->
            <child>
              <object class="AdwActionRow" id="usb_protection_row">
                <property name="visible">false</property>
                <property name="title" translatable="yes">Forbid new _USB devices</property>
                <property name="subtitle" translatable="yes">Prevent new USB devices from interacting with the system when the screen is locked.</property>
                <property name="subtitle-lines">2</property>
                <property name="activatable-widget">usb_protection_switch</property>
                <property name="use-underline">true</property>
                <child>
                  <object class="GtkSwitch" id="usb_protection_switch">
                    <property name="valign">center</property>
                    <accessibility>
                      <property name="label" translatable="yes">Enabled</property>
                    </accessibility>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup" id="screen_privacy_group">
            <property name="title" translatable="yes">Screen Privacy</property>

            <!-- Privacy Screen row -->
            <child>
              <object class="AdwActionRow">
                <property name="title" translatable="yes">Restrict Viewing Angle</property>
                <property name="activatable-widget">privacy_screen_switch</property>
                <property name="use-underline">true</property>
                <child>
                  <object class="GtkSwitch" id="privacy_screen_switch">
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>

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