on xenial help sign in
scale tiles down to max 35% of scene height
400ef98Michael Zanetti
qml/Stages/DesktopStage.qml+1−1
@@ -183,7 +183,7 @@ FocusScope {
183 yScale: itemScale
183 yScale: itemScale
184 },
184 },
185 Rotation {
185 Rotation {
186− origin { x: 0; y: (appDelegate.height / 2) / itemScale }
186+ origin { x: 0; y: (appDelegate.height - (appDelegate.height * itemScale / 2)) }
187 axis { x: 0; y: 1; z: 0 }
187 axis { x: 0; y: 1; z: 0 }
188 angle: appDelegate.angle
188 angle: appDelegate.angle
189 }
189 }
qml/Stages/SpreadMaths.qml+1−6
@@ -5,12 +5,7 @@ QtObject {
5 id: root
5 id: root
6
6
7 function desktopX(index, totalWidth, flickableX) {
7 function desktopX(index, totalWidth, flickableX) {
8− // Uncomment this to keep linear x movement
9− // return (totalWidth / 5) * index - flickableX;
10 var distance = totalWidth / 5;
8 var distance = totalWidth / 5;
11− var minX = 0;
12− var startX = index * distance;
13−
14 var startProgress = 0;
9 var startProgress = 0;
15 var endProgress = 1;
10 var endProgress = 1;
16 var startValue = index * distance;
11 var startValue = index * distance;
@@ -31,7 +26,7 @@ QtObject {
31 }
26 }
32
27
33 function desktopScale(sceneHeight, itemHeight) {
28 function desktopScale(sceneHeight, itemHeight) {
34− var maxHeight = sceneHeight / 2;
29+ var maxHeight = sceneHeight * 0.35;
35 if (itemHeight > maxHeight) {
30 if (itemHeight > maxHeight) {
36 return maxHeight / itemHeight
31 return maxHeight / itemHeight
37 }
32 }
tests/qmltests/tst_DesktopShell.qml+1−1
@@ -128,7 +128,7 @@ Item {
128
128
129 Repeater {
129 Repeater {
130 id: apps
130 id: apps
131− model: ApplicationManager.availableApplications()
131+ model: ApplicationManager.availableApplications
132 anchors {
132 anchors {
133 left: parent.left
133 left: parent.left
134 right: parent.right
134 right: parent.right