summaryrefslogtreecommitdiffstats
path: root/panels/common/cc-list-row.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/common/cc-list-row.ui
parentInitial commit. (diff)
downloadgnome-control-center-upstream.tar.xz
gnome-control-center-upstream.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/common/cc-list-row.ui')
-rw-r--r--panels/common/cc-list-row.ui37
1 files changed, 37 insertions, 0 deletions
diff --git a/panels/common/cc-list-row.ui b/panels/common/cc-list-row.ui
new file mode 100644
index 0000000..f668a10
--- /dev/null
+++ b/panels/common/cc-list-row.ui
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <template class="CcListRow" parent="AdwActionRow">
+ <property name="activatable">True</property>
+
+ <!-- Secondary Label -->
+ <child type="suffix">
+ <object class="GtkLabel" id="secondary_label">
+ <property name="valign">center</property>
+ <property name="ellipsize">end</property>
+ <property name="selectable" bind-source="CcListRow" bind-property="activatable" bind-flags="sync-create|invert-boolean" />
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+
+ <!-- Switch -->
+ <child type="suffix">
+ <object class="GtkSwitch" id="enable_switch">
+ <property name="visible">False</property>
+ <property name="valign">center</property>
+ <signal name="notify::active" handler="cc_list_row_switch_active_cb" swapped="yes"/>
+ </object>
+ </child>
+
+ <!-- Arrow -->
+ <child type="suffix">
+ <object class="GtkImage" id="arrow">
+ <property name="visible" bind-source="CcListRow" bind-property="show-arrow" bind-flags="sync-create"/>
+ <property name="valign">center</property>
+ <property name="icon-name">go-next-symbolic</property>
+ </object>
+ </child>
+
+ </template>
+</interface>