1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 00:04:06 +00:00
transmission/gtk/ui/gtk4/TorrentListItemFull.ui
Mike Gelfand f6e1bb2d70
GTK client accessibility improvements (#7119)
* Reformat GTK *.ui files

Remove useless comments since we're mostly editing those files by hand
now. Wrap multi-line text values in CDATA to avoid automated formatters
changing whitespace there in any way. Collapse empty elements.

* Switch from plain `GtkLabel`s to `GtkFrame`s for sections

Frames are reported as groupings by assistive technologies.

* Fix minor usability issues

* Make value labels labelled and selectable
2024-09-14 02:34:39 +01:00

102 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="GtkListItem">
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">6</property>
<binding name="sensitive">
<lookup name="sensitive" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
<binding name="css-classes">
<closure type="GStrv" function="gtr_strv_join">
<lookup name="css-classes" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
<constant type="GStrv">tr-list-item&#xA;tr-full</constant>
</closure>
</binding>
<child>
<object class="GtkImage">
<property name="pixel-size">32</property>
<property name="valign">0.5</property>
<property name="vexpand">1</property>
<binding name="gicon">
<lookup name="icon" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="hexpand">1</property>
<property name="spacing">3</property>
<child>
<object class="GtkLabel">
<property name="ellipsize">end</property>
<property name="valign">0.5</property>
<property name="xalign">0</property>
<binding name="label">
<lookup name="name" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="ellipsize">end</property>
<property name="valign">0.5</property>
<property name="xalign">0</property>
<binding name="label">
<lookup name="long-progress" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
<style>
<class name="tr-small"/>
</style>
</object>
</child>
<child>
<object class="GtkProgressBar">
<property name="valign">0.5</property>
<binding name="fraction">
<lookup name="percent-done" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
<style>
<class name="tr-status"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="ellipsize">end</property>
<property name="valign">0.5</property>
<property name="xalign">0</property>
<binding name="label">
<lookup name="long-status" type="gtkmm__CustomObject_7Torrent">
<lookup name="item">GtkListItem</lookup>
</lookup>
</binding>
<style>
<class name="tr-small"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</template>
</interface>