128 lines
5.8 KiB
XML
128 lines
5.8 KiB
XML
<?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="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">Show _Notifications on Lock Screen</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>
|