@@ -47,6 +47,7 @@ FocusScope {
47 property int leftMargin: 0
47 property int leftMargin: 0
48 property bool oskEnabled: false
48 property bool oskEnabled: false
49 property rect inputMethodRect
49 property rect inputMethodRect
50+ property real rightEdgePushProgress: 0
51 // Configuration
52 // Configuration
52 property string mode: "staged"
53 property string mode: "staged"
@@ -126,9 +127,6 @@ FocusScope {
126 // functions to be called from outside
127 // functions to be called from outside
127 function updateFocusedAppOrientation() { /* TODO */ }
128 function updateFocusedAppOrientation() { /* TODO */ }
128 function updateFocusedAppOrientationAnimated() { /* TODO */}
129 function updateFocusedAppOrientationAnimated() { /* TODO */}
129− function pushRightEdge(amount) {
130− edgeBarrier.push(amount);
133 function closeSpread() {
131 function closeSpread() {
134 priv.goneToSpread = false;
132 priv.goneToSpread = false;
@@ -140,6 +138,12 @@ FocusScope {
141+ onRightEdgePushProgressChanged: {
142+ if (rightEdgePushProgress >= 1) {
143+ priv.goneToSpread = true
143 GSettings {
147 GSettings {
144 id: lifecycleExceptions
148 id: lifecycleExceptions
145 schema.id: "com.canonical.qtmir"
149 schema.id: "com.canonical.qtmir"
@@ -448,7 +452,7 @@ FocusScope {
448 PropertyChanges { target: wallpaper; visible: false }
452 PropertyChanges { target: wallpaper; visible: false }
451− name: "stagedRightEdge"; when: (rightEdgeDragArea.dragging || edgeBarrier.progress > 0) && root.mode == "staged"
455+ name: "stagedRightEdge"; when: (rightEdgeDragArea.dragging || rightEdgePushProgress > 0) && root.mode == "staged"
452 PropertyChanges {
456 PropertyChanges {
453 target: blurLayer;
457 target: blurLayer;
454 visible: true;
458 visible: true;
@@ -458,7 +462,7 @@ FocusScope {
461− name: "sideStagedRightEdge"; when: (rightEdgeDragArea.dragging || edgeBarrier.progress > 0) && root.mode == "stagedWithSideStage"
465+ name: "sideStagedRightEdge"; when: (rightEdgeDragArea.dragging || rightEdgePushProgress > 0) && root.mode == "stagedWithSideStage"
462 extend: "stagedRightEdge"
466 extend: "stagedRightEdge"
463 PropertyChanges {
467 PropertyChanges {
464 target: sideStage
468 target: sideStage
@@ -467,13 +471,13 @@ FocusScope {
470− name: "windowedRightEdge"; when: (rightEdgeDragArea.dragging || edgeBarrier.progress > 0) && root.mode == "windowed"
474+ name: "windowedRightEdge"; when: (rightEdgeDragArea.dragging || rightEdgePushProgress > 0) && root.mode == "windowed"
471 PropertyChanges {
475 PropertyChanges {
472 target: blurLayer;
476 target: blurLayer;
473 visible: true
477 visible: true
474 blurRadius: 32
478 blurRadius: 32
475 brightness: .65
479 brightness: .65
476− opacity: MathUtils.linearAnimation(spreadItem.rightEdgeBreakPoint, 1, 0, 1, Math.max(rightEdgeDragArea.dragging ? rightEdgeDragArea.progress : 0, edgeBarrier.progress))
480+ opacity: MathUtils.linearAnimation(spreadItem.rightEdgeBreakPoint, 1, 0, 1, Math.max(rightEdgeDragArea.dragging ? rightEdgeDragArea.progress : 0, rightEdgePushProgress))
@@ -1129,7 +1133,7 @@ FocusScope {
1129 when: (root.mode == "staged" || root.mode == "stagedWithSideStage") && (root.state == "sideStagedRightEdge" || root.state == "stagedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running)
1133 when: (root.mode == "staged" || root.mode == "stagedWithSideStage") && (root.state == "sideStagedRightEdge" || root.state == "stagedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running)
1130 PropertyChanges {
1134 PropertyChanges {
1131 target: stagedRightEdgeMaths
1135 target: stagedRightEdgeMaths
1132− progress: Math.max(edgeBarrier.progress, rightEdgeDragArea.draggedProgress)
1136+ progress: Math.max(rightEdgePushProgress, rightEdgeDragArea.draggedProgress)
1134 PropertyChanges {
1138 PropertyChanges {
1135 target: appDelegate
1139 target: appDelegate
@@ -1156,11 +1160,11 @@ FocusScope {
1158 name: "windowedRightEdge"
1162 name: "windowedRightEdge"
1159− when: root.mode == "windowed" && (root.state == "windowedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running || edgeBarrier.progress > 0)
1163+ when: root.mode == "windowed" && (root.state == "windowedRightEdge" || rightEdgeFocusAnimation.running || hidingAnimation.running || rightEdgePushProgress > 0)
1160 PropertyChanges {
1164 PropertyChanges {
1161 target: windowedRightEdgeMaths
1165 target: windowedRightEdgeMaths
1162 swipeProgress: rightEdgeDragArea.dragging ? rightEdgeDragArea.progress : 0
1166 swipeProgress: rightEdgeDragArea.dragging ? rightEdgeDragArea.progress : 0
1163− pushProgress: edgeBarrier.progress
1167+ pushProgress: rightEdgePushProgress
1165 PropertyChanges {
1169 PropertyChanges {
1166 target: appDelegate
1170 target: appDelegate
@@ -1675,30 +1679,6 @@ FocusScope {
1675 appContainerHeight: appContainer.height
1679 appContainerHeight: appContainer.height
1681− // NB: it does its own positioning according to the specified edge
1684− onPassed: priv.goneToSpread = true;
1686− material: Component {
1689− width: parent.height
1690− height: parent.width
1692− anchors.centerIn: parent
1693− gradient: Gradient {
1694− GradientStop { position: 0.0; color: Qt.rgba(0.16,0.16,0.16,0.5)}
1695− GradientStop { position: 1.0; color: Qt.rgba(0.16,0.16,0.16,0)}
1702 MouseArea {
1682 MouseArea {
1703 id: hoverMouseArea
1683 id: hoverMouseArea
1704 objectName: "hoverMouseArea"
1684 objectName: "hoverMouseArea"