summaryrefslogtreecommitdiffstats
path: root/panels/common/cc-list-row.ui
diff options
context:
space:
mode:
Diffstat (limited to 'panels/common/cc-list-row.ui')
-rw-r--r--panels/common/cc-list-row.ui84
1 files changed, 84 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..730b8d9
--- /dev/null
+++ b/panels/common/cc-list-row.ui
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <template class="CcListRow" parent="GtkListBoxRow">
+ <property name="visible">1</property>
+ <child>
+ <object class="GtkBox" id="box">
+ <property name="visible">1</property>
+ <property name="margin">12</property>
+ <property name="spacing">12</property>
+
+ <child>
+ <object class="GtkBox">
+ <property name="visible">1</property>
+ <property name="valign">center</property>
+ <property name="orientation">vertical</property>
+
+ <!-- Title -->
+ <child>
+ <object class="GtkLabel" id="title">
+ <property name="visible">1</property>
+ <property name="hexpand">1</property>
+ <property name="xalign">0.0</property>
+ <property name="ellipsize">end</property>
+ </object>
+ </child>
+
+ <!-- Subtitle -->
+ <child>
+ <object class="GtkLabel" id="subtitle">
+ <property name="visible">0</property>
+ <property name="hexpand">1</property>
+ <property name="xalign">0.0</property>
+ <property name="wrap-mode">word</property>
+ <property name="max-width-chars">42</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ <attributes>
+ <attribute name="scale" value="0.83"/>
+ </attributes>
+ </object>
+ </child>
+
+ </object>
+ </child>
+
+ <!-- Secondary Label -->
+ <child>
+ <object class="GtkLabel" id="secondary_label">
+ <property name="visible">1</property>
+ <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>
+
+ <!-- Icon -->
+ <child>
+ <object class="GtkImage" id="icon">
+ <property name="visible">0</property>
+ <property name="valign">center</property>
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+
+ <!-- Switch -->
+ <child>
+ <object class="GtkSwitch" id="enable_switch">
+ <property name="visible">0</property>
+ <property name="can-focus">0</property>
+ <property name="valign">center</property>
+ <signal name="notify::active" handler="cc_list_row_switch_active_cb" swapped="yes"/>
+ </object>
+ </child>
+
+ </object>
+ </child>
+ </template>
+</interface>