summaryrefslogtreecommitdiffstats
path: root/homescreen/qml/IconItem.qml
diff options
context:
space:
mode:
Diffstat (limited to 'homescreen/qml/IconItem.qml')
-rw-r--r--homescreen/qml/IconItem.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/homescreen/qml/IconItem.qml b/homescreen/qml/IconItem.qml
index 59131c0..32d37b4 100644
--- a/homescreen/qml/IconItem.qml
+++ b/homescreen/qml/IconItem.qml
@@ -1,4 +1,5 @@
import QtQuick 2.0
+import QtQuick.Controls 2.0
Item {
id: main
@@ -6,6 +7,29 @@ Item {
id: item; parent: loc
x: main.x + 5; y: main.y + 5
width: main.width - 10; height: main.height - 10;
+
+ Label {
+ id: title
+ y: 60
+ font.pixelSize: 125
+ anchors.horizontalCenter: parent.horizontalCenter
+ color: "#5CFE96"
+ text: model.icon == 'Blank' ? model.name.substring(0,1).toUpperCase() : ''
+ }
+
+ Label {
+ id: name
+ y: 245
+ width: main.width - 10
+ font.pixelSize: 25
+ font.letterSpacing: 5
+ wrapMode: Text.WordWrap
+ anchors.horizontalCenter: parent.horizontalCenter
+ horizontalAlignment: Text.AlignHCenter
+ color: "white"
+ text: model.icon == 'Blank' ? model.name.toUpperCase() : ''
+ }
+
source: './images/HMI_AppLauncher_%1_%2-01.png'.arg(model.icon).arg(loc.pressed && (loc.index === model.index || loc.currentId === model.id) ? 'Active' : 'Inactive')
antialiasing: item.state !== ''
Behavior on x { enabled: item.state !== 'active'; NumberAnimation { duration: 400; easing.type: Easing.OutCubic } }