on xenial help sign in
Use ShaderEffectSource to correctly render the overlay rectangle.
commitd9fc73a1a13b7ba5019665a5645031ec1cf586da authorAndrea Azzarone <azzaronea@gmail.com> dateWed 28 Sep 2016, 17:19 (10 years ago) parent13979a7
1 file changed+10−8
qml/Stages/DesktopSpread.qml+10−8
qml/Stages/DesktopSpread.qml+10−8
@@ -314,15 +314,17 @@ FocusScope {
314314 UbuntuShape {
315315 Layout.preferredHeight: Math.min(units.gu(6), root.height * .05)
316316 Layout.preferredWidth: height * 8 / 7.6
317− source: Image {
318− anchors.fill: parent
319− source: model.application.icon
320− Rectangle {
317+ source: ShaderEffectSource {
318+ sourceItem: Image {
321319 anchors.fill: parent
322− color: "black"
323− opacity: clippedSpreadDelegate.highlightShown ? 0 : .1
324− Behavior on opacity {
325− UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration }
320+ source: model.application.icon
321+ Rectangle {
322+ anchors.fill: parent
323+ color: "black"
324+ opacity: clippedSpreadDelegate.highlightShown ? 0 : .1
325+ Behavior on opacity {
326+ UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration }
327+ }
326328 }
327329 }
328330 }