- //if (applicationModel.appid(loc.index) === 'tbtnavi' ||
- // applicationModel.appid(loc.index) === 'hvac') {
- // output_screen = 'Virtual-1'
- //}
- if (currentId === '') {
- homescreenHandler.tapShortcut(applicationModel.appid(loc.index))
- } else {
- currentId = ''
+ Image {
+ id: myIcon
+ anchors.top: parent.top
+ anchors.topMargin: 20
+ anchors.horizontalCenter: parent.horizontalCenter
+ // make the image/icons smaller than the grid cell size as
+ // the text below/above current cell not be on top of the
+ // current icon
+ width: 220
+ height: 220
+ source: model.icon
+ antialiasing: true
+ property string initial: model.name.substring(0,1).toUpperCase()
+
+ Item {
+ id: title
+ width: 125
+ height: 125
+ anchors.centerIn: parent
+ Label {
+ style: Text.Outline
+ styleColor: '#00ADDC'
+ color: 'transparent'
+ font.pixelSize: 125
+ anchors.centerIn: parent
+ anchors.horizontalCenterOffset: model.index / 3 - 1
+ anchors.verticalCenterOffset: model.index % 3 - 1
+ text: model.icon === 'blank' ? myIcon.initial : ''
+ }
+
+ layer.enabled: true
+ layer.effect: LinearGradient {
+ gradient: Gradient {
+ GradientStop { position: -0.5; color: "#6BFBFF" }
+ GradientStop { position: +1.5; color: "#00ADDC" }
+ }
+ }
+ }
+ }
+
+ MouseArea {
+ id: loc
+ anchors.fill: parent
+ property string currentApp: ''
+ onClicked: {
+ parent.GridView.view.currentIndex = index
+ currentApp = applicationModel.appid(parent.GridView.view.currentIndex)
+ homescreenHandler.tapShortcut(currentApp)
+ }
+ }
+ }
+
+ Connections {
+ target: homescreenHandler
+ onAppListUpdate: {
+ console.warn("applist update in Launcher.qml")
+ applicationModel.updateApplist(info);