on xenial help sign in
make it scale better for different screen sizes
c83ac8bMichael Zanetti
qml/Stages/DesktopStage.qml+1−3
@@ -201,8 +201,6 @@ FocusScope {
201 itemIndex: index
201 itemIndex: index
202 totalItems: ApplicationManager.count
202 totalItems: ApplicationManager.count
203 sceneHeight: root.height
203 sceneHeight: root.height
204− spreadHeight: root.height * 0.35
205− spreadBottomOffset: sceneHeight * 0.2
206 itemHeight: appDelegate.height
204 itemHeight: appDelegate.height
207 }
205 }
208
206
@@ -292,7 +290,7 @@ FocusScope {
292 SpreadFlickable {
290 SpreadFlickable {
293 id: spreadFlickable
291 id: spreadFlickable
294 anchors.fill: parent
292 anchors.fill: parent
295− contentWidth: Math.max(6, ApplicationManager.count) * width / 5
293+ contentWidth: Math.max(6, ApplicationManager.count) * Math.min(height / 4, width / 5)
296 visible: false
294 visible: false
297 //boundsBehavior: Flickable.StopAtBounds
295 //boundsBehavior: Flickable.StopAtBounds
298
296
qml/Stages/SpreadMaths.qml+5−5
@@ -16,16 +16,16 @@ Item {
16 property int sceneHeight: units.gu(20)
16 property int sceneHeight: units.gu(20)
17
17
18 // Spread properties
18 // Spread properties
19− property real spreadHeight: units.gu(10)
19+ property real spreadHeight: sceneHeight * 0.35
20− property int spreadBottomOffset: units.gu(5)
20+ property int spreadBottomOffset: sceneHeight * 0.2
21− property int foldingAreaWidth: units.gu(20)
21+ property int foldingAreaWidth: flickableWidth * 0.2
22 property int maxVisibleItems: 7
22 property int maxVisibleItems: 7
23− property int margins: units.gu(5)
23+ property int margins: flickableWidth * 0.05
24 property real stackScale: 0.04
24 property real stackScale: 0.04
25 property int leftEndFoldedAngle: 70
25 property int leftEndFoldedAngle: 70
26 property int rightEndFoldedAngle: 65
26 property int rightEndFoldedAngle: 65
27 property int unfoldedAngle: 30
27 property int unfoldedAngle: 30
28− property int stackWidth: units.gu(1)
28+ property int stackWidth: flickableWidth * 0.01
29
29
30
30
31 // Internal
31 // Internal