diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2017-12-16 19:41:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2017-12-16 19:41:21 +0000 |
commit | 31b54cb905670effcb65f97c535404fd0f653d9f (patch) | |
tree | a8c50334747bc9f6907142876cc7a2b3968e8f2e /homescreen/qml/ShortcutIcon.qml | |
parent | 9c10bd1f571c7888d565378a6dbf3eed7ff4eaa4 (diff) | |
parent | c43634c2eb0a25391f2975c61beb390589997782 (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.qml | 13 |
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 |