some fixes for issues reported by QA testing

This commit is contained in:
Michael Zanetti 2018-07-10 14:02:04 +02:00
parent 64d2178a3f
commit fd541e68dc
10 changed files with 21 additions and 11 deletions

View File

@ -24,7 +24,8 @@
<file>ui/devicelistpages/LightsDeviceListPage.qml</file>
<file>ui/customviews/ExtendedVolumeController.qml</file>
<file>ui/components/ColorIcon.qml</file>
<file>ui/images/torch-on.svg</file>
<file>ui/images/light-on.svg</file>
<file>ui/images/light-off.svg</file>
<file>ui/images/media-preview-start.svg</file>
<file>ui/MagicPage.qml</file>
<file>ui/images/mediaplayer-app-symbolic.svg</file>
@ -36,8 +37,8 @@
<file>ui/images/audio-speakers-muted-symbolic.svg</file>
<file>ui/images/audio-speakers-symbolic.svg</file>
<file>ui/images/media-playback-pause.svg</file>
<file alias="media-play">ui/images/media-playback-start.svg</file>
<file alias="media-stop">ui/images/media-playback-stop.svg</file>
<file>ui/images/media-playback-start.svg</file>
<file>ui/images/media-playback-stop.svg</file>
<file>ui/images/media-seek-backward.svg</file>
<file>ui/images/media-seek-forward.svg</file>
<file>ui/images/media-skip-backward.svg</file>
@ -59,7 +60,6 @@
<file>ui/images/weathericons/wind.svg</file>
<file>ui/devicepages/WeatherDevicePage.qml</file>
<file>ui/devicepages/ColorLightDevicePage.qml</file>
<file>ui/images/torch-off.svg</file>
<file>ui/components/ThrottledSlider.qml</file>
<file>ui/components/ColorPickerCt.qml</file>
<file>ui/images/navigation-menu.svg</file>
@ -130,7 +130,7 @@
<file>ui/PushButtonAuthPage.qml</file>
<file>ui/images/dialog-error-symbolic.svg</file>
<file>ui/images/send.svg</file>
<file>ui/images/mail-mark-important.svg</file>
<file>ui/images/attention.svg</file>
<file>ui/devicepages/InputTriggerDevicePage.qml</file>
<file>ui/images/clock-app-symbolic.svg</file>
<file>ui/devicepages/StateLogPage.qml</file>

View File

@ -185,7 +185,7 @@ ApplicationWindow {
case "light":
case "colorlight":
case "dimmablelight":
return Qt.resolvedUrl("images/torch-on.svg")
return Qt.resolvedUrl("images/light-on.svg")
case "sensor":
case "temperaturesensor":
case "humiditysensor":
@ -211,7 +211,7 @@ ApplicationWindow {
case "connectable":
return Qt.resolvedUrl("images/stock_link.svg")
case "inputtrigger":
return Qt.resolvedUrl("images/mail-mark-important.svg")
return Qt.resolvedUrl("images/attention.svg")
case "outputtrigger":
return Qt.resolvedUrl("images/send.svg")
case "shutter":

View File

@ -76,6 +76,8 @@ Item {
property int margins: 0
property alias status: image.status
Image {
id: image

View File

@ -24,6 +24,7 @@ ItemDelegate {
case "bool":
case "string":
case "qstring":
case "color":
return [qsTr("is"), qsTr("is not")];
case "int":
case "double":
@ -73,6 +74,7 @@ ItemDelegate {
return textFieldComponent;
case "string":
case "qstring":
case "color":
if (paramType.allowedValues.length > 0) {
return comboBoxComponent
}

View File

@ -28,7 +28,7 @@ DevicePageBase {
height: width
ColorIcon {
anchors.fill: parent
name: "../images/torch-off.svg"
name: "../images/light-off.svg"
color: powerRow.powerState.value === true ? keyColor : app.guhAccent
}
onClicked: {
@ -62,7 +62,7 @@ DevicePageBase {
height: width
ColorIcon {
anchors.fill: parent
name: "../images/torch-on.svg"
name: "../images/light-on.svg"
color: powerRow.powerState.value === true ? app.guhAccent : keyColor
}
onClicked: {

View File

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -335,8 +335,7 @@ Page {
}
}
Repeater {
model: ["light-on", "light-off", "alarm-clock", "media-play", "media-stop", "lock", "unlock", "notification", "sensors", "garage", "home", "warning", "eye"]
model: ["light-on", "light-off", "alarm-clock", "media-play", "network-secure", "notification", "sensors", "shutter-10", "attention", "eye"]
delegate: Item {
Layout.fillWidth: true
Layout.preferredHeight: app.iconSize + app.margins

View File

@ -63,6 +63,13 @@ Item {
Layout.alignment: Qt.AlignHCenter
name: scenesDelegate.iconTag ? "../images/" + scenesDelegate.iconTag.value + ".svg" : "../images/slideshow.svg";
color: scenesDelegate.colorTag ? scenesDelegate.colorTag.value : app.guhAccent;
ColorIcon {
anchors.fill: parent
name: "../images/slideshow.svg"
color: app.guhAccent
visible: parent.status === Image.Error
}
}
Label {