summaryrefslogtreecommitdiffstats
path: root/panels/screen/cc-screen-panel.ui
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:45:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:45:20 +0000
commitae1c76ff830d146d41e88d6fba724c0a54bce868 (patch)
tree3c354bec95af07be35fc71a4b738268496f1a1c4 /panels/screen/cc-screen-panel.ui
parentInitial commit. (diff)
downloadgnome-control-center-ae1c76ff830d146d41e88d6fba724c0a54bce868.tar.xz
gnome-control-center-ae1c76ff830d146d41e88d6fba724c0a54bce868.zip
Adding upstream version 1:43.6.upstream/1%43.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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>