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/IconItem.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/IconItem.qml')
-rw-r--r-- | homescreen/qml/IconItem.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/homescreen/qml/IconItem.qml b/homescreen/qml/IconItem.qml index c616722..b0373d2 100644 --- a/homescreen/qml/IconItem.qml +++ b/homescreen/qml/IconItem.qml @@ -13,7 +13,7 @@ Item { y: 60 font.pixelSize: 125 anchors.horizontalCenter: parent.horizontalCenter - color: "#5CFE96" + color: "#00ADDC" text: model.icon == 'Blank' ? model.name.substring(0,1).toUpperCase() : '' } @@ -27,7 +27,7 @@ Item { anchors.horizontalCenter: parent.horizontalCenter horizontalAlignment: Text.AlignHCenter color: "white" - text: model.icon == 'Blank' ? model.name.toUpperCase() : '' + text: qsTr(model.name.toUpperCase()) } source: './images/HMI_AppLauncher_%1_%2-01.svg'.arg(model.icon).arg(loc.pressed && (loc.index === model.index || loc.currentId === model.id) ? 'Active' : 'Inactive') |