summaryrefslogtreecommitdiffstats
path: root/panels/screen/cc-screen-panel.ui
diff options
context:
space:
mode:
Diffstat (limited to 'panels/screen/cc-screen-panel.ui')
-rw-r--r--panels/screen/cc-screen-panel.ui129
1 files changed, 129 insertions, 0 deletions
diff --git a/panels/screen/cc-screen-panel.ui b/panels/screen/cc-screen-panel.ui
new file mode 100644
index 0000000..2d58729
--- /dev/null
+++ b/panels/screen/cc-screen-panel.ui
@@ -0,0 +1,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>