summaryrefslogtreecommitdiffstats
path: root/homescreen/qml/ShortcutIcon.qml
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2017-12-16 19:41:21 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2017-12-16 19:41:21 +0000
commit31b54cb905670effcb65f97c535404fd0f653d9f (patch)
treea8c50334747bc9f6907142876cc7a2b3968e8f2e /homescreen/qml/ShortcutIcon.qml
parent9c10bd1f571c7888d565378a6dbf3eed7ff4eaa4 (diff)
parentc43634c2eb0a25391f2975c61beb390589997782 (diff)
Merge "Revert "Revert "Display blank icon with first letter in new color scheme"""
Diffstat (limited to 'homescreen/qml/ShortcutIcon.qml')
-rw-r--r--homescreen/qml/ShortcutIcon.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/homescreen/qml/ShortcutIcon.qml b/homescreen/qml/ShortcutIcon.qml
index c6f5a4e..39931d1 100644
--- a/homescreen/qml/ShortcutIcon.qml
+++ b/homescreen/qml/ShortcutIcon.qml
@@ -16,6 +16,7 @@
*/
import QtQuick 2.2
+import QtQuick.Controls 2.0
MouseArea {
id: root
@@ -33,6 +34,18 @@ MouseArea {
source: './images/Shortcut/HMI_Shortcut_%1_Active-01.svg'.arg(root.name)
opacity: 1.0 - icon.opacity
}
+ Label {
+ id: name
+ y: 160
+ width: root.width - 10
+ font.pixelSize: 15
+ font.letterSpacing: 5
+ // wrapMode: Text.WordWrap
+ anchors.horizontalCenter: parent.horizontalCenter
+ horizontalAlignment: Text.AlignHCenter
+ color: "white"
+ text: qsTr(model.name.toUpperCase())
+ }
states: [
State {
when: root.active