diff options
author | Philippe Lelong <lelong.ph@meltemus.com> | 2016-12-16 09:21:21 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-12-20 13:28:35 +0100 |
commit | 2a803ddcf479ba70b08b199e0448521969796a14 (patch) | |
tree | 72317f60f7b366a491506f94cb6499ac4aea34c5 /HomeScreen/qml | |
parent | 29be7bef7c0bb700af8992c73ab7a3c6d1fbdfce (diff) |
websockets mechanism implemented
Signed-off-by: Philippe Lelong <lelong.ph@meltemus.com>
Diffstat (limited to 'HomeScreen/qml')
-rw-r--r-- | HomeScreen/qml/Home.qml | 16 | ||||
-rw-r--r-- | HomeScreen/qml/MediaAreaBlank.qml | 4 | ||||
-rw-r--r-- | HomeScreen/qml/StatusArea.qml | 1 | ||||
-rw-r--r-- | HomeScreen/qml/images/Utility_Logo_Red-01.png | bin | 0 -> 7306 bytes | |||
-rw-r--r-- | HomeScreen/qml/images/images.qrc | 1 |
5 files changed, 20 insertions, 2 deletions
diff --git a/HomeScreen/qml/Home.qml b/HomeScreen/qml/Home.qml index 8753d29..63bb385 100644 --- a/HomeScreen/qml/Home.qml +++ b/HomeScreen/qml/Home.qml @@ -51,6 +51,17 @@ Item { anchors.topMargin: 20 source: './images/visa.png' visible: false + Label { + id: cardNumber + anchors.top: parent.bottom + anchors.topMargin: 10 + anchors.horizontalCenter: parent.horizontalCenter + horizontalAlignment: Text.AlignHCenter + color: "white" + text: "111" + font.pixelSize: 20 + font.family: "Roboto" + } } Item { id: hello @@ -62,7 +73,7 @@ Item { id: helloText anchors.centerIn: parent color: "white" - text: "Hello José!" + text: "" font.pixelSize: 40 font.family: "Roboto" SequentialAnimation on font.letterSpacing { @@ -95,8 +106,9 @@ Item { sign90.visible = show } - function showVisa(show) { + function showVisa(show, num) { visa.visible = show + cardNumber.text = num; } GridView { anchors.centerIn: parent diff --git a/HomeScreen/qml/MediaAreaBlank.qml b/HomeScreen/qml/MediaAreaBlank.qml index 3d53061..48595eb 100644 --- a/HomeScreen/qml/MediaAreaBlank.qml +++ b/HomeScreen/qml/MediaAreaBlank.qml @@ -23,7 +23,11 @@ Image { source: './images/Utility_Logo_Background-01.png' Image { + objectName: "Logo_colour" anchors.centerIn: parent source: './images/Utility_Logo_Colour-01.png' + function setImage(imagePath) { + source = imagePath + } } } diff --git a/HomeScreen/qml/StatusArea.qml b/HomeScreen/qml/StatusArea.qml index 12d0d46..3d55947 100644 --- a/HomeScreen/qml/StatusArea.qml +++ b/HomeScreen/qml/StatusArea.qml @@ -144,6 +144,7 @@ Item { } } } + Component.onCompleted: root.languageChanged("en") } ColumnLayout { id: icons diff --git a/HomeScreen/qml/images/Utility_Logo_Red-01.png b/HomeScreen/qml/images/Utility_Logo_Red-01.png Binary files differnew file mode 100644 index 0000000..8c49068 --- /dev/null +++ b/HomeScreen/qml/images/Utility_Logo_Red-01.png diff --git a/HomeScreen/qml/images/images.qrc b/HomeScreen/qml/images/images.qrc index 2d8e902..1323107 100644 --- a/HomeScreen/qml/images/images.qrc +++ b/HomeScreen/qml/images/images.qrc @@ -6,5 +6,6 @@ <file>Utility_Music_Background-01.png</file> <file>Utility_Radio_Background-01.png</file> <file>AGL_HMI_Background_NoCar-01.png</file> + <file>Utility_Logo_Red-01.png</file> </qresource> </RCC> |