From a4436f38be347ce6edf11ec1d1fd725ff8659d48 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Thu, 14 Dec 2017 10:43:15 +0900 Subject: Display default icon in new color scheme When HomeScreen don't have any built-in icon for an application, it displays icon which has initial letter of upper case of application name (returned by AGL appfw) with blue circle (looks like blank icon). In the future, displaying initial letter would be replaced by own icon for each application which is stored in .wgt package. Bug-AGL: SPEC-673 Change-Id: Ifdb8254435d9ebbd93eca0005e088b99964e9187 Signed-off-by: zheng_wenlong (cherry picked from commit 96c3e6d3562556d9877e0ced5bd1ab9197502708) --- homescreen/qml/ShortcutIcon.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'homescreen/qml/ShortcutIcon.qml') 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 -- cgit 1.2.3-korg