diff options
Diffstat (limited to 'HomeScreen/qml')
-rw-r--r-- | HomeScreen/qml/Home.qml | 25 | ||||
-rw-r--r-- | HomeScreen/qml/images/Home/home.qrc | 1 | ||||
-rw-r--r-- | HomeScreen/qml/images/Home/sign.png | bin | 0 -> 23369 bytes |
3 files changed, 24 insertions, 2 deletions
diff --git a/HomeScreen/qml/Home.qml b/HomeScreen/qml/Home.qml index 423c24c..6657d40 100644 --- a/HomeScreen/qml/Home.qml +++ b/HomeScreen/qml/Home.qml @@ -41,8 +41,20 @@ Item { anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.topMargin: 20 - source: './images/B14-90.png' + source: './images/sign.png' visible: false + Label { + id: speedLimit + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + horizontalAlignment: Text.AlignHCenter + color: "black" + text: "50" + font.pixelSize: 90 + font.family: "Roboto" + font.bold: true + visible: false + } } Image { id: flagLanguage @@ -119,8 +131,17 @@ Item { animation2.running = true; } - function showSign90(show) { + function showSign90(show, speed, unit) { sign90.visible = show + if(show) { + if(speed.length > 2) + speedLimit.font.pixelSize = 60 + else + speedLimit.font.pixelSize = 90 + speedLimit.text = speed + } + sign90.source = './images/B14-90.png' + speedLimit.visible = false } function showVisa(show, num) { diff --git a/HomeScreen/qml/images/Home/home.qrc b/HomeScreen/qml/images/Home/home.qrc index 4a02101..84639d3 100644 --- a/HomeScreen/qml/images/Home/home.qrc +++ b/HomeScreen/qml/images/Home/home.qrc @@ -28,5 +28,6 @@ <file>Open Trunk.png</file> <file>Install App.png</file> <file>View Online.png</file> + <file>sign.png</file> </qresource> </RCC> diff --git a/HomeScreen/qml/images/Home/sign.png b/HomeScreen/qml/images/Home/sign.png Binary files differnew file mode 100644 index 0000000..d0f7213 --- /dev/null +++ b/HomeScreen/qml/images/Home/sign.png |