fix landscape views
This commit is contained in:
parent
78f015e80d
commit
e1b2642f64
@ -67,7 +67,8 @@ ListView {
|
|||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.rowSpan: 3
|
Layout.minimumWidth: app.iconSize * 5
|
||||||
|
Layout.rowSpan: app.landscape ? 5 : 1
|
||||||
ColorIcon {
|
ColorIcon {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
height: app.iconSize * 4
|
height: app.iconSize * 4
|
||||||
@ -76,6 +77,10 @@ ListView {
|
|||||||
color: device.states.getState(boolView.stateType.id).value === true ? app.interfaceToColor(boolView.interfaceName) : keyColor
|
color: device.states.getState(boolView.stateType.id).value === true ? app.interfaceToColor(boolView.interfaceName) : keyColor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Item {
|
||||||
|
Layout.fillHeight: true
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
RowLayout {
|
RowLayout {
|
||||||
Layout.fillWidth: false
|
Layout.fillWidth: false
|
||||||
Layout.alignment: Qt.AlignHCenter
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
|||||||
Reference in New Issue
Block a user