diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-12-14 10:43:15 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2017-12-14 10:46:11 +0900 |
commit | 96c3e6d3562556d9877e0ced5bd1ab9197502708 (patch) | |
tree | 0361275e791cff976925fd7668a3d8b33025c240 /homescreen/qml/ShortcutIcon.qml | |
parent | f756a01c3e78ebdb1ebe74efa52b8905a6a2c6b5 (diff) |
Display blank icon with first letter in new color scheme
For new color scheme, when icon file is not exist,
Display a blank icon with first letter.
Change-Id: Ifdb8254435d9ebbd93eca0005e088b99964e9187
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
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 |