@@ -19,6 +19,7 @@ import QtQuick.Layouts 1.1
19import Ubuntu.Components 1.3
19import Ubuntu.Components 1.3
20import Ubuntu.Gestures 0.1
20import Ubuntu.Gestures 0.1
21import Unity.Application 0.1
21import Unity.Application 0.1
22+import "../Components"
23FocusScope {
24FocusScope {
@@ -26,6 +27,7 @@ FocusScope {
26 property bool altTabPressed: false
27 property bool altTabPressed: false
27 property Item workspace: null
28 property Item workspace: null
30+ readonly property alias ready: blurLayer.ready
29 readonly property alias highlightedIndex: spreadRepeater.highlightedIndex
31 readonly property alias highlightedIndex: spreadRepeater.highlightedIndex
31 function show() {
33 function show() {
@@ -101,6 +103,31 @@ FocusScope {
101 state = ""
103 state = ""
108+ anchors.fill: parent
109+ source: root.workspace
114+ id: spreadBackground
115+ anchors.fill: parent
118+ opacity: visible ? 1 : 0
119+ Behavior on opacity {
120+ UbuntuNumberAnimation { duration: UbuntuAnimation.SnapDuration }
126+ anchors.fill: parent
127+ visible: spreadBackground.visible
105 id: spreadContainer
132 id: spreadContainer
106 objectName: "spreadContainer"
133 objectName: "spreadContainer"
@@ -234,6 +261,8 @@ FocusScope {
234 duration: spreadContainer.animateIn ? UbuntuAnimation.FastDuration :0
261 duration: spreadContainer.animateIn ? UbuntuAnimation.FastDuration :0
235 easing: UbuntuAnimation.StandardEasing
262 easing: UbuntuAnimation.StandardEasing
264+ UbuntuNumberAnimation { target: clippedSpreadDelegate; property: "shadowOpacity"; from: 0; to: spreadMaths.shadowOpacity; duration: spreadContainer.animateIn ? UbuntuAnimation.FastDuration : 0 }
265+ UbuntuNumberAnimation { target: tileInfo; property: "opacity"; from: 0; to: spreadMaths.tileInfoOpacity; duration: spreadContainer.animateIn ? UbuntuAnimation.FastDuration : 0 }
@@ -500,10 +529,7 @@ FocusScope {
500 PropertyAction { target: workspaceSelector; property: "visible" }
529 PropertyAction { target: workspaceSelector; property: "visible" }
501 PropertyAction { target: spreadContainer; property: "visible" }
530 PropertyAction { target: spreadContainer; property: "visible" }
502 ParallelAnimation {
531 ParallelAnimation {
503− UbuntuNumberAnimation {
504− target: blurLayer; properties: "saturation,blurRadius";
532+ UbuntuNumberAnimation { target: blurLayer; properties: "saturation,blurRadius"; duration: UbuntuAnimation.SnapDuration }
505− duration: spreadContainer.animateIn ? UbuntuAnimation.FastDuration : 0
507 PropertyAction { target: spreadFlickable; property: "visible" }
533 PropertyAction { target: spreadFlickable; property: "visible" }
508 PropertyAction { targets: [currentSelectedLabel,spreadBackground]; property: "visible" }
534 PropertyAction { targets: [currentSelectedLabel,spreadBackground]; property: "visible" }
509 PropertyAction { target: spreadFlickable; property: "contentX"; value: 0 }
535 PropertyAction { target: spreadFlickable; property: "contentX"; value: 0 }
@@ -518,6 +544,5 @@ FocusScope {
518 PropertyAction { target: spreadRepeater; property: "highlightedIndex"; value: -1 }
544 PropertyAction { target: spreadRepeater; property: "highlightedIndex"; value: -1 }
519 PropertyAction { target: spreadContainer; property: "animateIn"; value: false }
545 PropertyAction { target: spreadContainer; property: "animateIn"; value: false }