Fix height of thing/interface/time selection in rule creation
This commit is contained in:
parent
0a0710a6d3
commit
56ca06cd3b
@ -358,16 +358,12 @@ ApplicationWindow {
|
|||||||
return Qt.resolvedUrl("images/ev-charger.svg")
|
return Qt.resolvedUrl("images/ev-charger.svg")
|
||||||
case "doorbell":
|
case "doorbell":
|
||||||
return Qt.resolvedUrl("images/notification.svg")
|
return Qt.resolvedUrl("images/notification.svg")
|
||||||
case "connectable":
|
|
||||||
return Qt.resolvedUrl("images/stock_link.svg")
|
|
||||||
case "irrigation":
|
case "irrigation":
|
||||||
return Qt.resolvedUrl("images/irrigation.svg")
|
return Qt.resolvedUrl("images/irrigation.svg")
|
||||||
case "ventilation":
|
case "ventilation":
|
||||||
return Qt.resolvedUrl("images/ventilation.svg")
|
return Qt.resolvedUrl("images/ventilation.svg")
|
||||||
case "power":
|
case "power":
|
||||||
return Qt.resolvedUrl("images/system-shutdown.svg")
|
return Qt.resolvedUrl("images/system-shutdown.svg")
|
||||||
case "account":
|
|
||||||
return Qt.resolvedUrl("images/account.svg")
|
|
||||||
case "smartlock":
|
case "smartlock":
|
||||||
return Qt.resolvedUrl("images/smartlock.svg")
|
return Qt.resolvedUrl("images/smartlock.svg")
|
||||||
case "navigationpad":
|
case "navigationpad":
|
||||||
@ -383,6 +379,12 @@ ApplicationWindow {
|
|||||||
return Qt.resolvedUrl("images/qrcode.svg")
|
return Qt.resolvedUrl("images/qrcode.svg")
|
||||||
case "cleaningrobot":
|
case "cleaningrobot":
|
||||||
return Qt.resolvedUrl("images/cleaning-robot.svg")
|
return Qt.resolvedUrl("images/cleaning-robot.svg")
|
||||||
|
case "account":
|
||||||
|
return Qt.resolvedUrl("images/account.svg")
|
||||||
|
case "wirelessconnectable":
|
||||||
|
return Qt.resolvedUrl("images/connections/network-wifi.svg")
|
||||||
|
case "connectable":
|
||||||
|
return Qt.resolvedUrl("images/stock_link.svg")
|
||||||
default:
|
default:
|
||||||
console.warn("InterfaceToIcon: Unhandled interface", name)
|
console.warn("InterfaceToIcon: Unhandled interface", name)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,6 +26,7 @@ Item {
|
|||||||
|
|
||||||
readonly property int smallDelegateHeight: 50
|
readonly property int smallDelegateHeight: 50
|
||||||
readonly property int delegateHeight: 60
|
readonly property int delegateHeight: 60
|
||||||
|
readonly property int largeDelegateHeight: 80
|
||||||
|
|
||||||
readonly property int smallIconSize: 16
|
readonly property int smallIconSize: 16
|
||||||
readonly property int iconSize: 24
|
readonly property int iconSize: 24
|
||||||
|
|||||||
@ -752,6 +752,7 @@ Page {
|
|||||||
}
|
}
|
||||||
delegate: NymeaSwipeDelegate {
|
delegate: NymeaSwipeDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: Style.largeDelegateHeight
|
||||||
iconName: model.iconName
|
iconName: model.iconName
|
||||||
text: model.text
|
text: model.text
|
||||||
progressive: true
|
progressive: true
|
||||||
@ -802,6 +803,7 @@ Page {
|
|||||||
}
|
}
|
||||||
delegate: NymeaSwipeDelegate {
|
delegate: NymeaSwipeDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: Style.largeDelegateHeight
|
||||||
iconName: model.iconName
|
iconName: model.iconName
|
||||||
text: model.text
|
text: model.text
|
||||||
progressive: true
|
progressive: true
|
||||||
@ -865,6 +867,7 @@ Page {
|
|||||||
}
|
}
|
||||||
delegate: NymeaSwipeDelegate {
|
delegate: NymeaSwipeDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: Style.largeDelegateHeight
|
||||||
iconName: model.iconName
|
iconName: model.iconName
|
||||||
text: model.text
|
text: model.text
|
||||||
progressive: true
|
progressive: true
|
||||||
|
|||||||
@ -154,6 +154,7 @@ ItemDelegate {
|
|||||||
}
|
}
|
||||||
delegate: NymeaSwipeDelegate {
|
delegate: NymeaSwipeDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.preferredHeight: Style.largeDelegateHeight
|
||||||
iconName: model.iconName
|
iconName: model.iconName
|
||||||
text: model.text
|
text: model.text
|
||||||
progressive: true
|
progressive: true
|
||||||
|
|||||||
Reference in New Issue
Block a user