aboutsummaryrefslogtreecommitdiffstats
path: root/homescreen/qml/ShortcutIcon.qml
diff options
context:
space:
mode:
authorZheng Wenlong <wenlong_zheng@nexty-ele.com>2017-12-14 05:08:23 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2017-12-14 05:08:23 +0000
commite332c64be597445db4dfd475915765845649be49 (patch)
tree9d6717ed34d41623718fe07909e5ee1a47458b62 /homescreen/qml/ShortcutIcon.qml
parent228a3ff5d012c677a51aa3d5254a3cc0fa23049f (diff)
parent96c3e6d3562556d9877e0ced5bd1ab9197502708 (diff)
Merge "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