Update lit delegate
This commit is contained in:
parent
e84ff331fa
commit
fa2030dfef
@ -72,10 +72,12 @@ SwipeDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ColorIcon {
|
ColorIcon {
|
||||||
|
id: secondaryIcon
|
||||||
Layout.preferredHeight: app.iconSize * .6
|
Layout.preferredHeight: app.iconSize * .6
|
||||||
Layout.preferredWidth: height
|
Layout.preferredWidth: height
|
||||||
name: "../images/next.svg"
|
name: root.secondaryIconName.length > 0 ? root.secondaryIconName : "../images/next.svg"
|
||||||
visible: root.progressive
|
visible: root.progressive
|
||||||
|
color: root.secondaryIconColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -10,8 +10,8 @@ MeaListItemDelegate {
|
|||||||
iconName: deviceClass ? app.interfacesToIcon(deviceClass.interfaces) : ""
|
iconName: deviceClass ? app.interfacesToIcon(deviceClass.interfaces) : ""
|
||||||
text: device.name
|
text: device.name
|
||||||
progressive: true
|
progressive: true
|
||||||
batteryCritical: deviceClass && deviceClass.interfaces.indexOf("battery") >= 0 ? device.stateValue(deviceClass.stateTypes.findByName("batteryCritical").id) === true : false
|
property bool batteryCritical: deviceClass && deviceClass.interfaces.indexOf("battery") >= 0 ? device.stateValue(deviceClass.stateTypes.findByName("batteryCritical").id) === true : false
|
||||||
disconnected: deviceClass && deviceClass.interfaces.indexOf("connectable") >= 0 ? device.stateValue(deviceClass.stateTypes.findByName("connected").id) === false : false
|
property bool disconnected: deviceClass && deviceClass.interfaces.indexOf("connectable") >= 0 ? device.stateValue(deviceClass.stateTypes.findByName("connected").id) === false : false
|
||||||
|
|
||||||
property var device: null
|
property var device: null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user