on xenial help sign in
Use ShaderEffectSource to correctly render the overlay rectangle.
d9fc73aAndrea Azzarone
qml/Stages/DesktopSpread.qml+10−8
@@ -314,15 +314,17 @@ FocusScope {
314 UbuntuShape {
314 UbuntuShape {
315 Layout.preferredHeight: Math.min(units.gu(6), root.height * .05)
315 Layout.preferredHeight: Math.min(units.gu(6), root.height * .05)
316 Layout.preferredWidth: height * 8 / 7.6
316 Layout.preferredWidth: height * 8 / 7.6
317− source: Image {
317+ source: ShaderEffectSource {
318− anchors.fill: parent
318+ sourceItem: Image {
319− source: model.application.icon
320− Rectangle {
321 anchors.fill: parent
319 anchors.fill: parent
320+ source: model.application.icon
321+ Rectangle {
322+ anchors.fill: parent
322− color: "black"
323+ color: "black"
323− opacity: clippedSpreadDelegate.highlightShown ? 0 : .1
324+ opacity: clippedSpreadDelegate.highlightShown ? 0 : .1
324− Behavior on opacity {
325+ Behavior on opacity {
325− UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration }
326+ UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration }
327+ }
326 }
328 }
327 }
329 }
328 }
330 }