That allows the visually impaired user to get the information quicker, and, as a result of that, we can simplify the focus chain as well.
42 lines
1.5 KiB
XML
42 lines
1.5 KiB
XML
<?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="hexpand">True</property>
|
|
<property name="halign">end</property>
|
|
<property name="ellipsize">end</property>
|
|
<property name="wrap">True</property>
|
|
<property name="lines">4</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>
|
|
<property name="can-focus">false</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>
|