Fix height of thing/interface/time selection in rule creation

This commit is contained in:
Michael Zanetti 2021-05-29 01:03:15 +02:00
parent 0a0710a6d3
commit 56ca06cd3b
4 changed files with 11 additions and 4 deletions

View File

@ -358,16 +358,12 @@ ApplicationWindow {
return Qt.resolvedUrl("images/ev-charger.svg")
case "doorbell":
return Qt.resolvedUrl("images/notification.svg")
case "connectable":
return Qt.resolvedUrl("images/stock_link.svg")
case "irrigation":
return Qt.resolvedUrl("images/irrigation.svg")
case "ventilation":
return Qt.resolvedUrl("images/ventilation.svg")
case "power":
return Qt.resolvedUrl("images/system-shutdown.svg")
case "account":
return Qt.resolvedUrl("images/account.svg")
case "smartlock":
return Qt.resolvedUrl("images/smartlock.svg")
case "navigationpad":
@ -383,6 +379,12 @@ ApplicationWindow {
return Qt.resolvedUrl("images/qrcode.svg")
case "cleaningrobot":
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:
console.warn("InterfaceToIcon: Unhandled interface", name)
}

View File

@ -26,6 +26,7 @@ Item {
readonly property int smallDelegateHeight: 50
readonly property int delegateHeight: 60
readonly property int largeDelegateHeight: 80
readonly property int smallIconSize: 16
readonly property int iconSize: 24

View File

@ -752,6 +752,7 @@ Page {
}
delegate: NymeaSwipeDelegate {
Layout.fillWidth: true
Layout.preferredHeight: Style.largeDelegateHeight
iconName: model.iconName
text: model.text
progressive: true
@ -802,6 +803,7 @@ Page {
}
delegate: NymeaSwipeDelegate {
Layout.fillWidth: true
Layout.preferredHeight: Style.largeDelegateHeight
iconName: model.iconName
text: model.text
progressive: true
@ -865,6 +867,7 @@ Page {
}
delegate: NymeaSwipeDelegate {
Layout.fillWidth: true
Layout.preferredHeight: Style.largeDelegateHeight
iconName: model.iconName
text: model.text
progressive: true

View File

@ -154,6 +154,7 @@ ItemDelegate {
}
delegate: NymeaSwipeDelegate {
Layout.fillWidth: true
Layout.preferredHeight: Style.largeDelegateHeight
iconName: model.iconName
text: model.text
progressive: true