on xenial help sign in
some optimisations

- make the shader source not rendered live as its a static item anyways - don't apply opacity on real item

commitae1a2e5a1b1febffc1638888b483c91bd3d662be authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 25 Jun 2013, 14:09 (13 years ago) parent96d5289
1 file changed+3−2
Launcher/LauncherDelegate.qml+3−2
Launcher/LauncherDelegate.qml+3−2
@@ -26,6 +26,7 @@ Item {
2626 property bool highlighted: false
2727 property real offset: 0
2828 property alias brightness: transformEffect.brightness
29+ property real itemOpacity: 1
2930
3031 property real maxAngle: 0
3132 property bool inverted: false
@@ -49,7 +50,6 @@ Item {
4950 anchors.centerIn: parent
5051
5152 UbuntuShape {
52− color: Qt.rgba(0, 0, 1, 0.5)
5353 width: parent.width - units.gu(1)
5454 height: parent.height - units.gu(1)
5555 anchors.centerIn: parent
@@ -91,7 +91,7 @@ Item {
9191 anchors.centerIn: parent
9292 width: parent.width
9393 height: parent.height
94− property real itemOpacity: root.opacity
94+ property real itemOpacity: root.itemOpacity
9595 property real brightness: 0
9696 property real angle: root.angle
9797 rotation: root.inverted ? 180 : 0
@@ -101,6 +101,7 @@ Item {
101101 property variant source: ShaderEffectSource {
102102 sourceItem: iconItem
103103 hideSource: true
104+ live: true
104105 }
105106
106107 transform: [