Commit f8184f84 authored by Matthijs Tijink's avatar Matthijs Tijink

Make more of the device name/battery show up in the plasmoid

parent d712dbbd
Pipeline #4658 failed with stage
in 11 minutes and 54 seconds
......@@ -72,18 +72,12 @@ PlasmaComponents.ListItem
RowLayout
{
Item {
//spacer to make the label centre aligned in a row yet still elide and everything
implicitWidth: (ring.visible? ring.width : 0) + (browse.visible? browse.width : 0) + (shareFile.visible? shareFile.width : 0) + parent.spacing
}
Battery {
id: battery
device: root.device
}
PlasmaComponents.Label {
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
text: (battery.available && battery.charge > -1) ? i18n("%1 (%2)", display, battery.displayString) : display
Layout.fillWidth: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment