gnome-control-center/panels/privacy/cc-screen-page.ui
2023-08-03 08:42:10 +00:00

130 lines
6.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcScreenPage" parent="AdwNavigationPage">
<property name="title" translatable="yes">Screen Lock</property>
<property name="tag">screen-page</property>
<property name="child">
<object class="AdwToolbarView">
<property name="top-bar-style">raised</property>
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage">
<property name="description" translatable="yes">Automatically locking the screen prevents others from accessing the computer while you're away.</property>
<child>
<object class="AdwPreferencesGroup">
<!-- 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 until screen blanks</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">CcScreenPageBlankScreenDelay</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="subtitle" translatable="yes">Locks the screen after it blanks</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>
</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">Time from screen blank to screen lock</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">CcScreenPageLockAfter</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>
</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>
</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>
</property>
</object>
</property>
</template>
</interface>