@@ -54,10 +54,8 @@ Item {
5454
5555 image: Image {
5656 id: iconImage
57− sourceSize: {
58− width: parent.width
59− height: parent.height
60− }
57+ sourceSize.width: parent.width
58+ sourceSize.height: parent.height
6159 source: "../graphics/applicationIcons/" + root.iconName + ".png"
6260 }
6361
@@ -81,9 +79,11 @@ Item {
8179 id: overlayHighlight
8280 anchors.centerIn: iconItem
8381 rotation: inverted ? 180 : 0
84− source: root.highlighted || mouseArea.pressed ? "graphics/selected.sci" : "graphics/non-selected.sci"
82+ source: isSelected ? "graphics/selected.sci" : "graphics/non-selected.sci"
8583 width: root.width + units.gu(0.5)
8684 height: width
85+ property bool isSelected: root.highlighted || mouseArea.pressed
86+ onIsSelectedChanged: shaderEffectSource.scheduleUpdate();
8787 }
8888 }
8989
@@ -100,6 +100,7 @@ Item {
100100
101101
102102 property variant source: ShaderEffectSource {
103+ id: shaderEffectSource
103104 sourceItem: iconItem
104105 hideSource: true
105106 live: false