From 71859115ecb5defd82687a03fbbe56a6bc985255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kari=20Hautam=C3=A4ki?= Date: Wed, 1 Feb 2017 17:41:53 +0200 Subject: Background image added and humity chart tweaked - Blue background image added that is used in all UI variants - Readings in HumidityChart tweaked to show 0% when starting the app Change-Id: I8cca1cf4cafdd83063a6bcf9b98572839906dac3 Reviewed-by: Titta Heikkala --- tradeshow/iot-sensortag/base.qrc | 1 + .../iot-sensortag/resources/base/HumidityChart.qml | 5 ++--- .../iot-sensortag/resources/base/images/bg_blue.jpg | Bin 0 -> 96777 bytes tradeshow/iot-sensortag/resources/base/main.qml | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 tradeshow/iot-sensortag/resources/base/images/bg_blue.jpg diff --git a/tradeshow/iot-sensortag/base.qrc b/tradeshow/iot-sensortag/base.qrc index 3d99d9f..685269f 100644 --- a/tradeshow/iot-sensortag/base.qrc +++ b/tradeshow/iot-sensortag/base.qrc @@ -19,5 +19,6 @@ resources/base/fonts/titilliumweb/TitilliumWeb-Bold.ttf resources/base/fonts/titilliumweb/TitilliumWeb-Regular.ttf resources/base/fonts/titilliumweb/TitilliumWeb-SemiBold.ttf + resources/base/images/bg_blue.jpg diff --git a/tradeshow/iot-sensortag/resources/base/HumidityChart.qml b/tradeshow/iot-sensortag/resources/base/HumidityChart.qml index fdffc5a..c94448f 100644 --- a/tradeshow/iot-sensortag/resources/base/HumidityChart.qml +++ b/tradeshow/iot-sensortag/resources/base/HumidityChart.qml @@ -69,14 +69,12 @@ BaseChart { content: Item { anchors.fill: parent - property alias humiText: humidityMainText.text property real maxHumi: 0 - property real minHumi: 1000 + property real minHumi: 0 function getMaxOchMinHum() { humidityValue = sensor.relativeHumidity; - contentItem.humiText = humidityValue.toFixed(1) + " %"; if (humidityValue > contentItem.maxHumi) { @@ -105,6 +103,7 @@ BaseChart { anchors.centerIn: parent color: "white" + text: humidityValue.toFixed(1) + " %" } } diff --git a/tradeshow/iot-sensortag/resources/base/images/bg_blue.jpg b/tradeshow/iot-sensortag/resources/base/images/bg_blue.jpg new file mode 100644 index 0000000..bff57e8 Binary files /dev/null and b/tradeshow/iot-sensortag/resources/base/images/bg_blue.jpg differ diff --git a/tradeshow/iot-sensortag/resources/base/main.qml b/tradeshow/iot-sensortag/resources/base/main.qml index 8f092ba..679a8dc 100644 --- a/tradeshow/iot-sensortag/resources/base/main.qml +++ b/tradeshow/iot-sensortag/resources/base/main.qml @@ -63,6 +63,11 @@ Window { visible: true color: "black" + Image { + source: "images/bg_blue.jpg" + anchors.fill: parent + } + Loader { id: contentLoader -- cgit v1.2.3