gnome-control-center/panels/common/cc-list-row.ui
Sayan Bhattacharjee 0524a6eee6 info-overview: Show each GPU in it's own line
When having multiple GPUs, each GPUs are now seperated by a newline
instead of the previously used seperator: " / ".
This particular fix works ONLY for systems that use switcheroo-control.

Also, this commit allows the 'secondary_label' of 'CcListRow' to have
'lines' set to '4' and 'wrap' to 'True', along with 'hexpand'
and 'halign' set to 'True' to accommodate long strings on all labels
which previously suffered from a issue of getting truncated if
the strings are too long.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2125
2023-04-11 11:20:28 +00:00

41 lines
1.4 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>
<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>