summaryrefslogtreecommitdiffstats
path: root/panels/common/cc-list-row.ui
blob: f668a10e0bad14d6077eecf1a09d790ea6efbdf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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>